]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/bridge: lt9611: fix clock calculation
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 18 Jan 2023 08:16:50 +0000 (10:16 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 18 Jan 2023 14:27:06 +0000 (15:27 +0100)
commit2576eb26494eb0509dd9ceb0cd27771a7a5e3674
treea43b55d9a8d88c31fdad83906540c68055b2bcc9
parentad188aa47edaa033a270e1a3efae43836ff47569
drm/bridge: lt9611: fix clock calculation

Instead of having several fixed values for the pcr register, calculate
it before programming. This allows the bridge to support most of the
display modes.

Fixes: 23278bf54afe ("drm/bridge: Introduce LT9611 DSI to HDMI bridge")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230118081658.2198520-6-dmitry.baryshkov@linaro.org
drivers/gpu/drm/bridge/lontium-lt9611.c