timer: Add Atmel PIT timer driver
PATCH 1/1 timer: Add Atmel PIT timer driver
Add Atmel PIT timer driver, which supports the driver model and device tree.
Signed-off-by Wenyou Yang <[email protected]>
---
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
@@ -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
@@ -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
@@ -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
@@ -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