summaryrefslogtreecommitdiff
path: root/sys/src/9/imx8/lcd.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-06-12 00:21:28 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-06-12 00:21:28 +0000
commit1d81f7eacbe2db017f49cf5646c7671f0581f170 (patch)
treee22eb5c325355bad8208a1e609375aaaf79ba9e5 /sys/src/9/imx8/lcd.c
parent931ae0cfebeb46892406efc7468636e59f8110a9 (diff)
imx8/lcd: silly work around for display instability
running at the actual pixel clock causes the screen to shift horizontally after a while. using 60% seems to fix it - for now.
Diffstat (limited to 'sys/src/9/imx8/lcd.c')
-rw-r--r--sys/src/9/imx8/lcd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/9/imx8/lcd.c b/sys/src/9/imx8/lcd.c
index d54d667b6..661585eee 100644
--- a/sys/src/9/imx8/lcd.c
+++ b/sys/src/9/imx8/lcd.c
@@ -930,8 +930,12 @@ lcdinit(void)
goto out;
}
- /* start the pixel clock */
- setclkrate("lcdif.pix_clk", "system_pll1_clk", mode.pixclk);
+ /*
+ * start the pixel clock. running at the actual pixel clock
+ * causes the screen to shift horizontally after a while.
+ * using 60% seems to fix it - for now.
+ */
+ setclkrate("lcdif.pix_clk", "system_pll1_clk", (mode.pixclk*6)/10);
dpiinit(&mode);
/* release dpi reset */