2019-04-08 23:49:20 +00:00
|
|
|
From c508ebe2604e0acd904da4940c042924ed2f19a8 Mon Sep 17 00:00:00 2001
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
|
2018-11-15 07:47:09 +00:00
|
|
|
Date: Thu, 13 Sep 2018 13:30:22 +0200
|
2019-04-08 23:49:20 +00:00
|
|
|
Subject: [PATCH 005/266] ARM: at91: Implement clocksource selection
|
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.31-rt18.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
Allow selecting and unselecting the PIT clocksource driver so it doesn't
|
|
|
|
have to be compile when unused.
|
|
|
|
|
|
|
|
Tested-by: Alexander Dahl <ada@thorsis.com>
|
|
|
|
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
arch/arm/mach-at91/Kconfig | 25 +++++++++++++++++++++++++
|
2018-08-27 14:32:32 +00:00
|
|
|
1 file changed, 25 insertions(+)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
|
|
|
|
index 903f23c309df..fa493a86e2bb 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/arch/arm/mach-at91/Kconfig
|
|
|
|
+++ b/arch/arm/mach-at91/Kconfig
|
2018-10-30 12:40:05 +00:00
|
|
|
@@ -107,6 +107,31 @@ config SOC_AT91SAM9
|
2018-08-27 14:32:32 +00:00
|
|
|
AT91SAM9X35
|
|
|
|
AT91SAM9XE
|
|
|
|
|
|
|
|
+comment "Clocksource driver selection"
|
|
|
|
+
|
|
|
|
+config ATMEL_CLOCKSOURCE_PIT
|
|
|
|
+ bool "Periodic Interval Timer (PIT) support"
|
|
|
|
+ depends on SOC_AT91SAM9 || SOC_SAMA5
|
|
|
|
+ default SOC_AT91SAM9 || SOC_SAMA5
|
|
|
|
+ select ATMEL_PIT
|
|
|
|
+ help
|
|
|
|
+ Select this to get a clocksource based on the Atmel Periodic Interval
|
|
|
|
+ Timer. It has a relatively low resolution and the TC Block clocksource
|
|
|
|
+ should be preferred.
|
|
|
|
+
|
|
|
|
+config ATMEL_CLOCKSOURCE_TCB
|
|
|
|
+ bool "Timer Counter Blocks (TCB) support"
|
|
|
|
+ depends on SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5 || COMPILE_TEST
|
|
|
|
+ default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5
|
|
|
|
+ depends on !ATMEL_TCLIB
|
|
|
|
+ select ATMEL_ARM_TCB_CLKSRC
|
|
|
|
+ help
|
|
|
|
+ Select this to get a high precision clocksource based on a
|
|
|
|
+ TC block with a 5+ MHz base clock rate.
|
|
|
|
+ On platforms with 16-bit counters, two timer channels are combined
|
|
|
|
+ to make a single 32-bit timer.
|
|
|
|
+ It can also be used as a clock event device supporting oneshot mode.
|
|
|
|
+
|
|
|
|
config HAVE_AT91_UTMI
|
|
|
|
bool
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|