summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/Kconfig
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-10-31 16:46:38 -0400
committerVineet Gupta <vgupta@synopsys.com>2016-11-30 14:54:25 -0500
commitc4c9a040ecb7297e011e579f5a9cc280e42d725f (patch)
treea62aff3aba526fea0ccbff23f76bfa88f319dd8d /drivers/clocksource/Kconfig
parentb26c2e3823bae6ba43a2b263d9bb75a3efd39b6a (diff)
clocksource: import ARC timer driver
This adds support for - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP from @CNT to @LIMIT, before optionally triggering an interrupt. These are programmed using ARC auxiliary register interface. These are present in all ARC cores (ARC700 and ARC HS38) TIMER0 serves as clockevent for all ARC linux builds. TIMER1 is used for clocksource in arc700 builds. - CONFIG_ARC_TIMERS_64BIT: 64-bit counters, RTC and GFRC found in ARC HS38 cores. These are independnet IP blocks with different programming model respectively. Link: http://lkml.kernel.org/r/20161111231132.GA4186@mai Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'drivers/clocksource/Kconfig')
-rw-r--r--drivers/clocksource/Kconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index e2c6e43cf8ca..4866f7aa32e6 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -282,6 +282,26 @@ config CLKSRC_MPS2
282 select CLKSRC_MMIO 282 select CLKSRC_MMIO
283 select CLKSRC_OF 283 select CLKSRC_OF
284 284
285config ARC_TIMERS
286 bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
287 depends on GENERIC_CLOCKEVENTS
288 select CLKSRC_OF
289 help
290 These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
291 (ARC700 as well as ARC HS38).
292 TIMER0 serves as clockevent while TIMER1 provides clocksource
293
294config ARC_TIMERS_64BIT
295 bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
296 depends on GENERIC_CLOCKEVENTS
297 depends on ARC_TIMERS
298 select CLKSRC_OF
299 help
300 This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP)
301 RTC is implemented inside the core, while GFRC sits outside the core in
302 ARConnect IP block. Driver automatically picks one of them for clocksource
303 as appropriate.
304
285config ARM_ARCH_TIMER 305config ARM_ARCH_TIMER
286 bool 306 bool
287 select CLKSRC_OF if OF 307 select CLKSRC_OF if OF