OSDN Git Service

drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock
authorPhilippe CORNU <philippe.cornu@st.com>
Thu, 25 Jan 2018 16:01:01 +0000 (17:01 +0100)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 29 Jan 2018 10:07:16 +0000 (11:07 +0100)
commit1a32a938b6438afe70c0a2a6dd666f4a49f6c384
treed04395cac7edff153153d4a69ead2b2dbca7dff9
parent41d2f5fa89e3fa772ea27c0e1b7bf0e7c6f295b1
drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock

There is a difference between the panel/bridge requested pixel clock
value and the real one due to the hw platform clock preciseness (pll,
dividers...). This patch updates the adjusted_mode clock value with
the real hw clock value so then attached encoder & connector can use
it for precise timing computations.

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Yannick Fertré <yannick.fertre@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125160101.9102-1-philippe.cornu@st.com
drivers/gpu/drm/stm/ltdc.c