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)
commita7ad38b0dd3c1ba8d6e5a55241e875e9db8331ab
tree0f483b5ab011fdfd20ba675d0a67100c5ad171fa
parent291d0e5d81e101392379217b06251fe8c27f1f80
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