Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9387d426 authored by Siddharth Zaveri's avatar Siddharth Zaveri
Browse files

msm: mdss: Enable continuous splash on bridge chip



If continuous splash has been enabled from bootloader,
then we need to skip the call to power on the bridge chip.
This will reset the bridge chip and break continuous splash
use case.

Change-Id: I7109d45f1f613f064c86d07f6adae39eb310d5a5
Signed-off-by: default avatarSiddharth Zaveri <szaveri@codeaurora.org>
parent 2ac9699b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -707,7 +707,7 @@ void *mdss_dba_utils_init(struct mdss_dba_utils_init_data *uid)
		 * this explicit calls to bridge chip driver.
		 */
		if (!uid->pinfo->is_pluggable) {
			if (udata->ops.power_on)
			if (udata->ops.power_on && !(uid->cont_splash_enabled))
				udata->ops.power_on(udata->dba_data, true, 0);
			if (udata->ops.check_hpd)
				udata->ops.check_hpd(udata->dba_data, 0);
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -24,6 +24,7 @@
 * @chip_name: Name of the device registered with DBA
 * @client_name: Name of the client registering with DBA
 * @pinfo: Detailed panel information
 * @cont_splash_enabled: Flag to check if cont splash was enabled on bridge
 *
 * This structure's instance is needed to be passed as parameter
 * to register API to let the DBA utils module configure and
@@ -36,6 +37,7 @@ struct mdss_dba_utils_init_data {
	char *chip_name;
	char *client_name;
	struct mdss_panel_info *pinfo;
	bool cont_splash_enabled;
};

int mdss_dba_utils_video_on(void *data, struct mdss_panel_info *pinfo);
+7 −0
Original line number Diff line number Diff line
@@ -2269,6 +2269,13 @@ static void mdss_dsi_dba_work(struct work_struct *work)
	utils_init_data.fb_node = ctrl_pdata->fb_node;
	utils_init_data.kobj = ctrl_pdata->kobj;
	utils_init_data.pinfo = pinfo;
	if (ctrl_pdata->mdss_util)
		utils_init_data.cont_splash_enabled =
			ctrl_pdata->mdss_util->panel_intf_status(
			ctrl_pdata->panel_data.panel_info.pdest,
			MDSS_PANEL_INTF_DSI) ? true : false;
	else
		utils_init_data.cont_splash_enabled = false;

	pinfo->dba_data = mdss_dba_utils_init(&utils_init_data);