]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:14 +0000 (09:33 +0100)
commit6722bd3623963df363cfea5347371532f4df7274
treeb3f308c44b2ce6deb718f1d7d7bbd0b4f46ee53e
parentd522312c5c8d8f0613f127884604d659e0146012
drm/bridge: lt9611: fix clock calculation

[ Upstream commit d7e20fb3e7db4acd45375dbf750907e3ff4bd52e ]

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: 4e9e2250396c ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/lontium-lt9611.c