mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
The LCD controller's CSn/WEn/RDn strobes count bus clocks, set once for 1-4-1 clocks: a 120 ns write cycle at the 50 MHz bus clock, but 60 ns when the CPU is boosted and the bus runs at 100 MHz. That is too fast for the Samsung YP-CP3's panel: with the CPU boosted it showed stray pixels, and partial updates left tearing behind moving things - the boot logo too, as the firmware boosts before lcd_init(). Double the clocks while boosted, 2-8-2, which keeps the write cycle at 120 ns: set_cpu_frequency() switches them before raising the clock and after lowering it, and lcd init picks them for the clock it runs at - the bootloader stays at crt0's CPUFREQ_MAX. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Change-Id: I482073c16af39c6b1856a0e18d19a747c78975f0 |
||
|---|---|---|
| .. | ||
| arm | ||
| coldfire | ||
| hosted | ||
| mips | ||