@@ -3,9 +3,9 @@ menuconfig ARCH_MOXART
depends on ARCH_MULTI_V4
select CPU_FA526
select ARM_DMA_MEM_BUFFERABLE
- select CLKSRC_MMIO
select GENERIC_IRQ_CHIP
select ARCH_REQUIRE_GPIOLIB
+ select MOXART_TIMER
select PHYLIB if NETDEVICES
help
Say Y here if you want to run your kernel on hardware with a
@@ -411,4 +411,13 @@ config CLKSRC_ST_LPC
Enable this option to use the Low Power controller timer
as clocksource.
+config MOXART_TIMER
+ bool "Moxart timer" if COMPILE_TEST
+ depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
+ select CLKSRC_OF
+ select CLKSRC_MMIO
+ help
+ Enables the support for the timer used in the Moxart and Aspeed
+ system on chips.
+
endmenu
@@ -22,7 +22,7 @@ obj-$(CONFIG_ORION_TIMER) += time-orion.o
obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o
obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o
obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o
-obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o
+obj-$(CONFIG_MOXART_TIMER) += moxart_timer.o
obj-$(CONFIG_ARCH_MXS) += mxs_timer.o
obj-$(CONFIG_CLKSRC_PXA) += pxa_timer.o
obj-$(CONFIG_ARCH_PRIMA2) += timer-prima2.o
Add a Kconfig entry for this driver so other SoCs can select it. This updates the moxart Kconfig in order to select the symbol. Signed-off-by: Joel Stanley <joel@jms.id.au> --- arch/arm/mach-moxart/Kconfig | 2 +- drivers/clocksource/Kconfig | 9 +++++++++ drivers/clocksource/Makefile | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-)