[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFr9PXkvJzpFU5x=syR8dXwOuLXPurQoTnDEvmJ-+FrWn5F+ZA@mail.gmail.com>
Date: Fri, 17 Dec 2021 18:00:00 +0900
From: Daniel Palmer <daniel@...f.com>
To: Romain Perier <romain.perier@...il.com>
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Rob Herring <robh+dt@...nel.org>,
Russell King <linux@...linux.org.uk>,
DTML <devicetree@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/6] clocksource: msc313e: Add support for
ssd20xd-based platforms
Hi Romain,
On Fri, 17 Dec 2021 at 03:18, Romain Perier <romain.perier@...il.com> wrote:
>
> Hi Daniel,
>
> What do you think about the following description ? : "
> clocksource: msc313e: Add support for ssd20xd-based platforms
>
>
> Signed-off-by: Romain Perier <romain.perier@...il.com>
I looked at the disassembly of the bootrom again and it doesn't look
like it's set there.
I think it's the hardware default for the register.
I'm thinking something like this:
On SSD20X family SoCs the timers are connected to a 432MHz clock
instead of 12MHz that all the previous chips used.
There is no way to reduce or divide these clocks in the clktree yet as
we don't know exactly where the 432MHz clock comes from but it's
enabled at boot.
The SSD20X timers have an input clock divider within the timer itself
to configure the frequency.
timer0 is preconfigured at power up to run at 12MHz so it is backwards
compatible and doesn't need special handling right now.
timer1 and timer2 run at 432Mhz at power up so are not backward compatible.
This commit adds support for the input clock divider register and sets
timer1 and timer2 to run at 48Mhz for clockevents.
Cheers,
Daniel
Powered by blists - more mailing lists