[Letux-kernel] LX20 prototype is booting

Paul Boddie paul at boddie.org.uk
Mon May 12 01:00:45 CEST 2025


On Tuesday, 6 May 2025 22:38:52 CEST H. Nikolaus Schaller wrote:
> 
> Last remaining bug with U-Boot seems to be why it needs so much time to load
> the 5MB uImage (takes 5 seconds). Or is the clock initialized for 2.4 MHz
> instead of 24.
> 
> Maybe something broken in jz_set_mmc_clk() or clk_set_rate()

I can't really comment about U-Boot, but reviewing the manual, I see that the 
dividers for the MSC devices are defined as...

(MSCnCDR + 1) * 4

For the X1600 and JZ4780, the multiplier in the above is 2, not 4.

I see that the Linux CGU driver code in x2000-cgu.c seems to use 2 instead of 
4, so maybe this needs fixing.

Paul




More information about the Letux-kernel mailing list