Skip to contentSkip to conversation

timer: Add Atmel PIT timer driver

PATCH Superseded Wenyou Yang 1 participant 1 message Aug 2, 2017

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 timer: Add Atmel PIT timer driver

Add Atmel PIT timer driver, which supports the driver model and device tree.

---

 arch/arm/mach-at91/arm926ejs/Makefile |  2 +
 arch/arm/mach-at91/armv7/Makefile     |  2 +
 drivers/timer/Kconfig                 |  8 ++++
 drivers/timer/Makefile                |  1 +
 drivers/timer/atmel_pit_timer.c       | 90 +++++++++++++++++++++++++++++++++++
 5 files changed, 103 insertions(+)
 create mode 100644 drivers/timer/atmel_pit_timer.c
arch/arm/mach-at91/arm926ejs/Makefile +2 -0
index 624ccd7c2f..dc935fd9e5 100644
@@ -22,7 +22,9 @@ obj-y += cache.o
 obj-y += clock.o
 obj-y += cpu.o
 obj-y	+= reset.o
+ifeq ($(CONFIG_ATMEL_PIT_TIMER),)
 obj-y	+= timer.o
+endif
 
 ifndef CONFIG_SKIP_LOWLEVEL_INIT
 obj-y	+= lowlevel_init.o
arch/arm/mach-at91/armv7/Makefile +2 -0
index 9538bc1fad..1ede4cb10a 100644
@@ -14,4 +14,6 @@ obj-$(CONFIG_SAMA5D4)	+= sama5d4_devices.o
 obj-y += clock.o
 obj-y += cpu.o
 obj-y += reset.o
+ifeq ($(CONFIG_ATMEL_PIT_TIMER),)
 obj-y += timer.o
+endif
drivers/timer/Kconfig +8 -0
index 17e7dfe245..92c19495d6 100644
@@ -26,6 +26,14 @@ config ALTERA_TIMER
 	  Select this to enable a timer for Altera devices. Please find
 	  details on the "Embedded Peripherals IP User Guide" of Altera.
 
+config ATMEL_PIT_TIMER
+	bool "Atmel periodic interval timer support"
+	depends on TIMER
+	help
+	  Select this to enable a periodic interval timer for Atmel devices,
+	  it is designed to offer maximum accuracy and efficient management,
+	  even for systems with long response time.
+
 config SANDBOX_TIMER
 	bool "Sandbox timer support"
 	depends on SANDBOX && TIMER
drivers/timer/Makefile +1 -0
index ced7bd66bd..7db04fcdf8 100644
@@ -14,3 +14,4 @@ obj-$(CONFIG_STI_TIMER)		+= sti-timer.o
 obj-$(CONFIG_ARC_TIMER)	+= arc_timer.o
 obj-$(CONFIG_AG101P_TIMER) += ag101p_timer.o
 obj-$(CONFIG_AE3XX_TIMER) += ae3xx_timer.o
+obj-$(CONFIG_ATMEL_PIT_TIMER) += atmel_pit_timer.o
drivers/timer/atmel_pit_timer.c new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.13.0