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>
Showing
- drivers/clocksource/Kconfig 10 additions, 0 deletionsdrivers/clocksource/Kconfig
- drivers/clocksource/Makefile 1 addition, 0 deletionsdrivers/clocksource/Makefile
- drivers/clocksource/timer-mp-csky.c 173 additions, 0 deletionsdrivers/clocksource/timer-mp-csky.c
- include/linux/cpuhotplug.h 1 addition, 0 deletionsinclude/linux/cpuhotplug.h
Loading
Please register or sign in to comment