summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorSiddhartha Agrawal <agrawals@codeaurora.org>2013-03-07 10:07:01 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:15:25 -0700
commit01d412171663d6dfabe6befe8533cbf547edbee4 (patch)
treed4ded5f5275649a3ec83becc5965e76188e83eb5 /drivers/video
parent8ee7156cf1dd855aa8dd759bf3ec5220c81fd3cf (diff)
mdss: Support continuous splash for 8974 V2
The interface offsets for MDSS MDP have changed from V1 and V2. Adding check to determine the correct offset address. Change-Id: I395b8f8ffa26b2cfb652b9688f982c0dfe7965b2 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_overlay.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
index 98a8202ace58..c6b347276152 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
@@ -564,6 +564,8 @@ int mdss_mdp_reconfigure_splash_done(struct mdss_mdp_ctl *ctl)
struct ion_client *iclient = mdss_get_ionclient();
struct mdss_panel_data *pdata;
int ret = 0, off;
+ int mdss_mdp_rev = MDSS_MDP_REG_READ(MDSS_MDP_REG_HW_VERSION);
+ int mdss_v2_intf_off = 0;
off = 0;
@@ -576,9 +578,13 @@ int mdss_mdp_reconfigure_splash_done(struct mdss_mdp_ctl *ctl)
mdss_mdp_ctl_write(ctl, 0, MDSS_MDP_LM_BORDER_COLOR);
off = MDSS_MDP_REG_INTF_OFFSET(ctl->intf_num);
+ if (mdss_mdp_rev == MDSS_MDP_HW_REV_102)
+ mdss_v2_intf_off = 0xEC00;
+
/* wait for 1 VSYNC for the pipe to be unstaged */
msleep(20);
- MDSS_MDP_REG_WRITE(off + MDSS_MDP_REG_INTF_TIMING_ENGINE_EN, 0);
+ MDSS_MDP_REG_WRITE(off + MDSS_MDP_REG_INTF_TIMING_ENGINE_EN -
+ mdss_v2_intf_off, 0);
ret = mdss_mdp_ctl_intf_event(ctl, MDSS_EVENT_CONT_SPLASH_FINISH,
NULL);
mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF, false);