Skip to content

Commit

Permalink
drm/exynos: exynos7_drm_decon: fix ideal_clk by converting it to Hz
Browse files Browse the repository at this point in the history
The clkdiv values are incorrect as ideal_clk is in kHz and the clock
rate of vclk is in Hz. Multiply 1000 to ideal_clk to bring it to Hz.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Kaustabh Chakraborty authored and Inki Dae committed Nov 4, 2024
1 parent d31bbac commit f3cb045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos7_drm_decon.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void decon_ctx_remove(struct decon_context *ctx)
static u32 decon_calc_clkdiv(struct decon_context *ctx,
const struct drm_display_mode *mode)
{
unsigned long ideal_clk = mode->clock;
unsigned long ideal_clk = mode->clock * 1000;
u32 clkdiv;

/* Find the clock divider value that gets us closest to ideal_clk */
Expand Down

0 comments on commit f3cb045

Please sign in to comment.