U-Boot: retune CPLL to 900 MHz for the 30 MHz panel mode
ci / test (push) Successful in 14s
ci / bench (push) Successful in 12s
ci / mcdc (push) Successful in 27s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / patches-apply (push) Successful in 1m39s
ci / kernel-symbols (push) Successful in 5m17s
ci / qemu-tools (push) Successful in 6m11s
ci / quality (push) Successful in 51s
ci / badges (push) Skipped

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qGNpGNtFT7nhShpH56
This commit is contained in:
BFE Engineering
2026-11-15 21:04:25 -06:00
co-authored by Claude Haiku 5.5
parent 9705273f92
commit a1bb3b4436
@@ -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],