From 771a93f3b7e8f18ac81c9c54152605214f82ff10 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 12 Jun 2022 16:15:55 +0000 Subject: [PATCH] imx8/lcd: reduce flicker increasing the pixel clock to 80% of the edid clock value reduces flicker and also seems to not trigger the shifting issue. --- sys/src/9/imx8/lcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/9/imx8/lcd.c b/sys/src/9/imx8/lcd.c index 661585eee..c3ab44a37 100644 --- a/sys/src/9/imx8/lcd.c +++ b/sys/src/9/imx8/lcd.c @@ -933,9 +933,9 @@ lcdinit(void) /* * 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. + * using 80% seems to fix it - for now. */ - setclkrate("lcdif.pix_clk", "system_pll1_clk", (mode.pixclk*6)/10); + setclkrate("lcdif.pix_clk", "system_pll1_clk", (mode.pixclk*8)/10); dpiinit(&mode); /* release dpi reset */