summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2023-06-04 15:26:54 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-06-09 10:54:17 +0300
commitfc18139c28674688b36782fcafd6ba25c7013684 (patch)
treee173776a2bf0b819a53fd3b60639cef67500c82a /usr
parent50a1171d3bd1d0edd637b9fc5e81d842c5bc55c0 (diff)
downloadlinux-fc18139c28674688b36782fcafd6ba25c7013684.tar.xz
mips: ingenic: Enable EXT/2 divider on JZ4750/55/60 if EXT is 24 MHz
The JZ4750, JZ4755 and JZ4760 (non-B version) support using a 24 MHz external crystal oscillator instead of the typical 12 MHz one. However, most of the SoC's IP blocks only work with a 12 MHz clock. Thanksfully, there is a /2 divider we can enable when a 24 MHz external crystal is present. Force-enable this /2 divider when the oscillator is 24 MHz, so that the SoC always uses a 12 MHz clock internally. It is done here, and not in the clocks driver, because we need the EXT clock to be 12 MHz for the early console to work, and the clocks driver probes way too late. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions