From 1d81f7eacbe2db017f49cf5646c7671f0581f170 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 12 Jun 2022 00:21:28 +0000 Subject: [PATCH] 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. --- sys/src/9/imx8/lcd.c | 8 ++++++-- 1 file 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 */