realtek: refresh patches for Kernel 5.10
[openwrt/openwrt.git] / target / linux / realtek / patches-5.10 / 302-clocksource-add-rtl9300-driver.patch
1 --- a/drivers/clocksource/Kconfig
2 +++ b/drivers/clocksource/Kconfig
3 @@ -126,6 +126,15 @@ config RDA_TIMER
4 help
5 Enables the support for the RDA Micro timer driver.
6
7 +config RTL9300_TIMER
8 + bool "Clocksource/timer for the Realtek RTL9300 family of SoCs"
9 + depends on MIPS
10 + select COMMON_CLK
11 + select TIMER_OF
12 + select CLKSRC_MMIO
13 + help
14 + Enables support for the Realtek RTL9300 timer driver.
15 +
16 config SUN4I_TIMER
17 bool "Sun4i timer driver" if COMPILE_TEST
18 depends on HAS_IOMEM
19 --- a/drivers/clocksource/Makefile
20 +++ b/drivers/clocksource/Makefile
21 @@ -63,6 +63,7 @@ obj-$(CONFIG_MILBEAUT_TIMER) += timer-mi
22 obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o
23 obj-$(CONFIG_NPCM7XX_TIMER) += timer-npcm7xx.o
24 obj-$(CONFIG_RDA_TIMER) += timer-rda.o
25 +obj-$(CONFIG_RTL9300_TIMER) += timer-rtl9300.o
26
27 obj-$(CONFIG_ARC_TIMERS) += arc_timer.o
28 obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o