Re: [PATCH v2 03/18] drm/tidss: Adjust the pclk based on the HW capabilities
From: Aradhya Bhatia
Date: Mon Apr 07 2025 - 13:20:36 EST
On 02/04/25 19:00, Tomi Valkeinen wrote:
> At the moment the driver just sets the clock rate with clk_set_rate(),
> and if the resulting rate is not the same as requested, prints a debug
> print, but nothing else.
>
> Add functionality to atomic_check(), in which the clk_round_rate() is
> used to get the "rounded" rate, and set that to the adjusted_mode.
>
> In practice, with the current K3 SoCs, the display PLL is capable of
> producing very exact clocks, so most likely the rounded rate is the same
> as the original one.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@xxxxxxxxxxxxxxxx>
> ---
> drivers/gpu/drm/tidss/tidss_crtc.c | 23 +++++++++++++++++++----
> drivers/gpu/drm/tidss/tidss_dispc.c | 6 ++++++
> drivers/gpu/drm/tidss/tidss_dispc.h | 2 ++
> 3 files changed, 27 insertions(+), 4 deletions(-)
>
Reviewed-by: Aradhya Bhatia <aradhya.bhatia@xxxxxxxxx>
--
Regards
Aradhya