]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/c-sky: Add C-SKY SMP timer
authorGuo Ren <ren_guo@c-sky.com>
Fri, 2 Nov 2018 16:51:28 +0000 (00:51 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 2 Nov 2018 18:39:54 +0000 (19:39 +0100)
commitf79e2b048d001c6efcf510c7bbc312a49688a242
tree0f483b5ab011fdfd20ba675d0a67100c5ad171fa
parentf4b30e458011c82ceb2a0490969315ad74e9f8ba
clocksource/drivers/c-sky: Add C-SKY SMP timer

The driver is for C-SKY SMP timer. It only supports oneshot event
and 32bit overflow for clocksource. Per cpu core has one timer and
all timers share one clock-counter-input from the same clocksource.

This use mfcr&mtcr instructions to access the regs.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/timer-mp-csky.c [new file with mode: 0644]
include/linux/cpuhotplug.h