shithub: riscv

Download patch

ref: 771a93f3b7e8f18ac81c9c54152605214f82ff10
parent: 306e7ca618cec67d780cee0ddf9160a1245d5925
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jun 12 12:15:55 EDT 2022

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.

--- a/sys/src/9/imx8/lcd.c
+++ b/sys/src/9/imx8/lcd.c
@@ -933,9 +933,9 @@
 	/*
 	 * 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 */