fb1f464356123fb2b3f75de4c06dadea57b7413f
[openwrt/staging/jow.git] / target / linux / realtek / patches-5.15 / 302-clocksource-add-otto-driver.patch
1 --- a/drivers/clocksource/Kconfig
2 +++ b/drivers/clocksource/Kconfig
3 @@ -127,6 +127,17 @@ config RDA_TIMER
4 help
5 Enables the support for the RDA Micro timer driver.
6
7 +config REALTEK_OTTO_TIMER
8 + bool "Clocksource/timer for the Realtek Otto platform"
9 + select COMMON_CLK
10 + select TIMER_OF
11 + help
12 + This driver adds support for the timers found in the Realtek RTL83xx
13 + and RTL93xx SoCs series. This includes chips such as RTL8380, RTL8381
14 + and RTL832, as well as chips from the RTL839x series, such as RTL8390
15 + RT8391, RTL8392, RTL8393 and RTL8396 and chips of the RTL930x series
16 + such as RTL9301, RTL9302 or RTL9303.
17 +
18 config SUN4I_TIMER
19 bool "Sun4i timer driver" if COMPILE_TEST
20 depends on HAS_IOMEM
21 --- a/drivers/clocksource/Makefile
22 +++ b/drivers/clocksource/Makefile
23 @@ -58,6 +58,7 @@ obj-$(CONFIG_MILBEAUT_TIMER) += timer-mi
24 obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o
25 obj-$(CONFIG_NPCM7XX_TIMER) += timer-npcm7xx.o
26 obj-$(CONFIG_RDA_TIMER) += timer-rda.o
27 +obj-$(CONFIG_REALTEK_OTTO_TIMER) += timer-rtl-otto.o
28
29 obj-$(CONFIG_ARC_TIMERS) += arc_timer.o
30 obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o
31 --- a/include/linux/cpuhotplug.h
32 +++ b/include/linux/cpuhotplug.h
33 @@ -177,6 +177,7 @@ enum cpuhp_state {
34 CPUHP_AP_MARCO_TIMER_STARTING,
35 CPUHP_AP_MIPS_GIC_TIMER_STARTING,
36 CPUHP_AP_ARC_TIMER_STARTING,
37 + CPUHP_AP_REALTEK_TIMER_STARTING,
38 CPUHP_AP_RISCV_TIMER_STARTING,
39 CPUHP_AP_CLINT_TIMER_STARTING,
40 CPUHP_AP_CSKY_TIMER_STARTING,