diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2015-07-27 15:12:39 +0100 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-08-15 18:27:26 -0400 |
commit | 095022b9aa0546a0f3d3fb5f42c82b4004103864 (patch) | |
tree | 799ce6421d043f76e9963b107719cebc3f7a61d2 /drivers/gpu/drm/msm/mdp | |
parent | 09992e4d46935798b4a1cf3a734e6a0f3470f107 (diff) | |
download | blackbird-op-linux-095022b9aa0546a0f3d3fb5f42c82b4004103864.tar.gz blackbird-op-linux-095022b9aa0546a0f3d3fb5f42c82b4004103864.zip |
drm/msm: add calls to prepare and unprepare panel
Prepare the panel before it's enabled and un-prepare after disable, this
will make sure that the regulators are switched on and off correctly.
Tested it on APQ8064 based IFC6410 with panel.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/mdp')
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp4/mdp4_lcdc_encoder.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_lcdc_encoder.c b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_lcdc_encoder.c index c04843376c54..4cd6e721aa0a 100644 --- a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_lcdc_encoder.c +++ b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_lcdc_encoder.c @@ -346,8 +346,10 @@ static void mdp4_lcdc_encoder_disable(struct drm_encoder *encoder) mdp4_write(mdp4_kms, REG_MDP4_LCDC_ENABLE, 0); - if (panel) + if (panel) { drm_panel_disable(panel); + drm_panel_unprepare(panel); + } /* * Wait for a vsync so we know the ENABLE=0 latched before @@ -412,8 +414,10 @@ static void mdp4_lcdc_encoder_enable(struct drm_encoder *encoder) if (ret) dev_err(dev->dev, "failed to enable lcdc_clk: %d\n", ret); - if (panel) + if (panel) { + drm_panel_prepare(panel); drm_panel_enable(panel); + } setup_phy(encoder); |