[PATCH v14 11/28] drm/connector: hdmi: Calculate TMDS character rate
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Thu May 23 02:39:46 PDT 2024
On Tue, May 21, 2024 at 12:13:44PM +0200, Maxime Ripard wrote:
> Most HDMI drivers have some code to calculate the TMDS character rate,
> usually to adjust an internal clock to match what the mode requires.
>
> Since the TMDS character rates mostly depends on the resolution, whether
> we need to repeat pixels or not, the bpc count and the format, we can
> now derive it from the HDMI connector state that stores all those infos
> and remove the duplication from drivers.
>
> Reviewed-by: Dave Stevenson <dave.stevenson at raspberrypi.com>
> Signed-off-by: Maxime Ripard <mripard at kernel.org>
> ---
> drivers/gpu/drm/display/drm_hdmi_state_helper.c | 67 ++++++++++++++++++++++
> drivers/gpu/drm/drm_atomic.c | 1 +
> drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 3 +
> include/drm/drm_connector.h | 5 ++
> 4 files changed, 76 insertions(+)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the linux-arm-kernel
mailing list