Commit 8adbbb2e authored by Yannick Fertre's avatar Yannick Fertre Committed by Benjamin Gaignard

drm/stm: ltdc: rework reset sequence

Reset must be properly assert before deassert.
This is important if there is an early boot splash screen
before the kernel start up.
Signed-off-by: default avatarYannick Fertre <yannick.fertre@st.com>
Reviewed-by: default avatarPhilippe Cornu <philippe.cornu@st.com>
Tested-by: default avatarPhilippe Cornu <philippe.cornu@st.com>
Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1530271355-5608-1-git-send-email-yannick.fertre@st.com
parent 7868e507
...@@ -1082,8 +1082,11 @@ int ltdc_load(struct drm_device *ddev) ...@@ -1082,8 +1082,11 @@ int ltdc_load(struct drm_device *ddev)
} }
} }
if (!IS_ERR(rstc)) if (!IS_ERR(rstc)) {
reset_control_assert(rstc);
usleep_range(10, 20);
reset_control_deassert(rstc); reset_control_deassert(rstc);
}
/* Disable interrupts */ /* Disable interrupts */
reg_clear(ldev->regs, LTDC_IER, reg_clear(ldev->regs, LTDC_IER,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment