hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm/mach-at91/Kconfig
....@@ -107,6 +107,31 @@
107107 AT91SAM9X35
108108 AT91SAM9XE
109109
110
+comment "Clocksource driver selection"
111
+
112
+config 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
+
122
+config ATMEL_CLOCKSOURCE_TCB
123
+ bool "Timer Counter Blocks (TCB) support"
124
+ depends on SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5 || COMPILE_TEST
125
+ default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5
126
+ depends on !ATMEL_TCLIB
127
+ select ATMEL_ARM_TCB_CLKSRC
128
+ help
129
+ Select this to get a high precision clocksource based on a
130
+ TC block with a 5+ MHz base clock rate.
131
+ On platforms with 16-bit counters, two timer channels are combined
132
+ to make a single 32-bit timer.
133
+ It can also be used as a clock event device supporting oneshot mode.
134
+
110135 config HAVE_AT91_UTMI
111136 bool
112137