diff options
author | Romain Perier <romain.perier@gmail.com> | 2021-12-17 20:57:23 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2021-12-20 13:28:39 +0100 |
commit | e64da64f410cf4f9697e25ab76cdfc679f4fb6db (patch) | |
tree | 300eda8345517bc140b286939b93839c86924db8 /kernel/time | |
parent | 5fc1f93f69989e72be7a84ded6ee867d6415f690 (diff) | |
download | linux-stable-e64da64f410cf4f9697e25ab76cdfc679f4fb6db.tar.gz linux-stable-e64da64f410cf4f9697e25ab76cdfc679f4fb6db.tar.bz2 linux-stable-e64da64f410cf4f9697e25ab76cdfc679f4fb6db.zip |
clocksource/drivers/msc313e: Add support for ssd20xd-based platforms
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 do not know exactly where
the 432MHz clock comes from but it is 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.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Link: https://lore.kernel.org/r/20211217195727.8955-3-romain.perier@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions