8359dfdcbc152092b1f814a11ceebe29b1c0d4e9
[openwrt/staging/hauke.git] / target / linux / realtek / patches-5.4 / 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 @@ -695,5 +704,4 @@ config INGENIC_TIMER
20 select IRQ_DOMAIN
21 help
22 Support for the timer/counter unit of the Ingenic JZ SoCs.
23 -
24 endmenu
25 --- a/drivers/clocksource/Makefile
26 +++ b/drivers/clocksource/Makefile
27 @@ -61,6 +61,7 @@ obj-$(CONFIG_MILBEAUT_TIMER) += timer-mi
28 obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o
29 obj-$(CONFIG_NPCM7XX_TIMER) += timer-npcm7xx.o
30 obj-$(CONFIG_RDA_TIMER) += timer-rda.o
31 +obj-$(CONFIG_RTL9300_TIMER) += timer-rtl9300.o
32
33 obj-$(CONFIG_ARC_TIMERS) += arc_timer.o
34 obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o