From a1bb3b4436fd3ae23ac3d385bc1cda0eeca95ec7 Mon Sep 17 00:00:00 2001 From: BFE Engineering Date: Sun, 15 Nov 2026 21:04:25 -0600 Subject: [PATCH] U-Boot: retune CPLL to 900 MHz for the 30 MHz panel mode The dclk retune in 0001-display-and-boot-timing.patch used rate * 32 (960 MHz for a 30 MHz mode). Align it to 900 MHz so that the /30 divider gives the exact mode clock, as decided for SDK-vop-dclk-43 (pass 3). The retune still runs only when neither CPLL nor GPLL divides the pixel clock exactly. The image built from this commit has a new uboot digest and is not yet bench-gated or written. Refs: flare-edge#3118 (cause 3), SDK-vop-dclk-43. Co-Authored-By: Claude Haiku 5.5 Claude-Session: https://claude.ai/code/session_01B1W6qGNpGNtFT7nhShpH56 --- .../uboot/patches/0001-display-and-boot-timing.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luckfox-sdk-patches/uboot/patches/0001-display-and-boot-timing.patch b/luckfox-sdk-patches/uboot/patches/0001-display-and-boot-timing.patch index 8b9dc09..3aca790 100644 --- a/luckfox-sdk-patches/uboot/patches/0001-display-and-boot-timing.patch +++ b/luckfox-sdk-patches/uboot/patches/0001-display-and-boot-timing.patch @@ -372,7 +372,7 @@ index a99846f4e..4fc64f33d 100644 + * by this point, so nothing puts it back underneath us. + */ + if ((priv->cpll_hz % rate) && (priv->gpll_hz % rate)) { -+ ulong want = rate * 32; ++ ulong want = 900 * MHz; + + if (want >= 300 * MHz && want <= 1200 * MHz && + !rockchip_pll_set_rate(&rv1106_pll_clks[CPLL],