[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230609082314.GI8160@alpha.franken.de>
Date: Fri, 9 Jun 2023 10:23:14 +0200
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Paul Cercueil <paul@...pouillou.net>
Cc: Paul Burton <paulburton@...nel.org>,
Siarhei Volkau <lis8215@...il.com>, linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org, list@...ndingux.net
Subject: Re: [PATCH 3/4] mips: ingenic: Enable EXT/2 divider on JZ4750/55/60
if EXT is 24 MHz
On Sun, Jun 04, 2023 at 02:26:54PM +0200, Paul Cercueil wrote:
> 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@...pouillou.net>
> ---
> arch/mips/generic/board-ingenic.c | 57 +++++++++++++++++++++++++++++++
> 1 file changed, 57 insertions(+)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
Powered by blists - more mailing lists