msm: sde: move early splash's node parsing code for msm8996 auto

This change is to move specific node parsing code to other place
for early splash feature on auto platform, not impacting kernel
booting process of other platforms.

Change-Id: I6deed1a75545c82ee777d9b4269f1420ab2eb07a
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
This commit is contained in:
Guchun Chen 2017-08-02 09:44:40 +08:00
parent 03f28c162d
commit 56f9b76a53

View file

@ -1260,12 +1260,6 @@ static int sde_kms_hw_init(struct msm_kms *kms)
goto power_error;
}
rc = sde_splash_parse_dt(dev);
if (rc) {
SDE_ERROR("parse dt for splash info failed: %d\n", rc);
goto power_error;
}
/*
* Read the DISP_INTF_SEL register to check
* whether early display is enabled in LK.
@ -1277,15 +1271,23 @@ static int sde_kms_hw_init(struct msm_kms *kms)
}
/*
* when LK has enabled early display, sde_splash_init should be
* called first. This function will first do bandwidth voting job
* because display hardware is accessing AHB data bus, otherwise
* device reboot will happen. Second is to check if the memory is
* reserved.
* when LK has enabled early display, sde_splash_parse_dt and
* sde_splash_init must be called. The first function is to parse the
* mandatory memory node for splash function, and the second function
* will first do bandwidth voting job, because display hardware is now
* accessing AHB data bus, otherwise device reboot will happen, and then
* to check if the memory is reserved.
*/
sinfo = &sde_kms->splash_info;
if (sinfo->handoff)
if (sinfo->handoff) {
rc = sde_splash_parse_dt(dev);
if (rc) {
SDE_ERROR("parse dt for splash info failed: %d\n", rc);
goto power_error;
}
sde_splash_init(&priv->phandle, kms);
}
for (i = 0; i < sde_kms->catalog->vbif_count; i++) {
u32 vbif_idx = sde_kms->catalog->vbif[i].id;