From 93a816fb4700b75051754beab65d772a7da0e8aa Mon Sep 17 00:00:00 2001 From: pitts-mo Date: Sat, 17 Oct 2026 12:39:10 -0400 Subject: [PATCH] Update it66021.c -restore HDMI input function This restores HDMI input function to Goggle v1 and BoxPro after it was broken by #610 commit d2dea35. While researching this I found https://github.com/LVTY-AI/hdzero-goggle/commit/954a93002f590791c6cf6087452c1cc684a6b76f The LVTY-AI/hdzero-goggle repo has many other fixes and improvements that appear desirable for backporting. --- src/driver/it66021.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/it66021.c b/src/driver/it66021.c index 61484ba90..16c12f73c 100644 --- a/src/driver/it66021.c +++ b/src/driver/it66021.c @@ -372,7 +372,7 @@ void IT66021_edid() { void IT66021_Set_Pclk(int inv, int dly) { IT66021_Mask_WR(0, 0x0f, 0x03, 0x00); if (inv) - I2C_L_Write(ADDR_IT66021, 0x50, 0xB2); + I2C_L_Write(ADDR_IT66021, 0x50, 0xA0 + dly); else - I2C_L_Write(ADDR_IT66021, 0x50, 0xA1); + I2C_L_Write(ADDR_IT66021, 0x50, 0xB0 + dly); }