]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/c-sky: Add gx6605s SOC system timer
authorGuo Ren <ren_guo@c-sky.com>
Fri, 2 Nov 2018 16:51:30 +0000 (00:51 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 2 Nov 2018 18:41:12 +0000 (19:41 +0100)
commit993cf10f12b18c98c3ce963fcef08d637bc718ee
tree67a720120dd1a692f1973b9701f5c254deb62e05
parent415e3ac4a4428fc3d3038f6c2fe650462645f32b
clocksource/drivers/c-sky: Add gx6605s SOC system timer

The driver is for gx6605s SOC system timer and there are two
same timers in gx6605s. We use one for clkevt and another one for
clksrc.

The timer is mmio map to access, so we need give mmio address in dts.

The counter at 0x0  offset is clock event.
The counter at 0x40 offset is clock source.

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-gx6605s.c [new file with mode: 0644]