37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From 29533cb13f24e26e7ddbc044597a3020437352e2 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman
|
|
Date: Thu, 29 Oct 2020 01:13:49 +0100
|
|
Subject: drm/sun4i: Fix mipi-dsi panel framerate being 2/3 of the expected
|
|
value
|
|
|
|
This happens on Pinephone and on Pinetab. Both use MIPI-DSI panels.
|
|
|
|
On Pinephone framerate is 36.6 instead of expected 55.
|
|
On Pinetab the similar 2/3 ratio holds.
|
|
|
|
Myabe there's a bug in BSP and dclk_div should really be 6 instead of 4.
|
|
|
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
|
---
|
|
drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
|
|
index ab06f5e1fc95..1c56b4fb9ac8 100644
|
|
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
|
|
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
|
|
@@ -398,8 +398,8 @@ static void sun4i_tcon0_mode_set_cpu(struct sun4i_tcon *tcon,
|
|
u32 block_space, start_delay;
|
|
u32 tcon_div;
|
|
|
|
- tcon->dclk_min_div = SUN6I_DSI_TCON_DIV;
|
|
- tcon->dclk_max_div = SUN6I_DSI_TCON_DIV;
|
|
+ tcon->dclk_min_div = 6;
|
|
+ tcon->dclk_max_div = 6;
|
|
|
|
sun4i_tcon0_mode_set_common(tcon, mode);
|
|
|
|
--
|
|
cgit v1.2.3
|
|
|