aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-26 17:47:13 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2019-05-02 15:55:58 -0400
commit7803dc865bd2963192c623546fb240d01e3e7aa0 (patch)
treedd469391e630a8e9d4ce9b4f7ed7b3851c59c4a2
parentf712a1e8e59e8f42b5a9ec3887a4ad079bb18175 (diff)
ARM: at91: Implement clocksource selection
Allow selecting and unselecting the PIT clocksource driver so it doesn't have to be compiled when unused. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--arch/arm/mach-at91/Kconfig23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 903f23c309df..da1d97a06c53 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -107,6 +107,29 @@ config SOC_AT91SAM9
107 AT91SAM9X35 107 AT91SAM9X35
108 AT91SAM9XE 108 AT91SAM9XE
109 109
110comment "Clocksource driver selection"
111
112config ATMEL_CLOCKSOURCE_PIT
113 bool "Periodic Interval Timer (PIT) support"
114 depends on SOC_AT91SAM9 || SOC_SAMA5
115 default SOC_AT91SAM9 || SOC_SAMA5
116 select ATMEL_PIT
117 help
118 Select this to get a clocksource based on the Atmel Periodic Interval
119 Timer. It has a relatively low resolution and the TC Block clocksource
120 should be preferred.
121
122config ATMEL_CLOCKSOURCE_TCB
123 bool "Timer Counter Blocks (TCB) support"
124 default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5
125 select ATMEL_TCB_CLKSRC
126 help
127 Select this to get a high precision clocksource based on a
128 TC block with a 5+ MHz base clock rate.
129 On platforms with 16-bit counters, two timer channels are combined
130 to make a single 32-bit timer.
131 It can also be used as a clock event device supporting oneshot mode.
132
110config HAVE_AT91_UTMI 133config HAVE_AT91_UTMI
111 bool 134 bool
112 135