counter: cmsdk: Add Dualtimer as a Timer

This patch adds Dualtimer support to be used as a Timer.

Jira: ZEP-1300
Change-Id: If13143c8a8bdb07210daca66deca44710a18406f
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
Vincenzo Frascino 2016-12-13 15:40:53 +00:00 committed by Kumar Gala
commit a93b88789b
3 changed files with 244 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# Kconfig - counter configuration options
# Kconfig - counter and timer configuration options
#
#
# Copyright (c) 2016 Linaro Limited
@ -8,6 +8,41 @@
if SOC_FAMILY_ARM
config TIMER_DTMR_CMSDK_APB
bool
prompt "ARM CMSDK (Cortex-M System Design Kit) DTMR Timer driver"
default n
help
The dualtimer (DTMR) present in the platform is used as a timer.
This option enables the support for the timer.
if TIMER_DTMR_CMSDK_APB
# ---------- Timer 0 ----------
config TIMER_DTMR_CMSDK_APB_0
bool
prompt "Timer 0 driver"
default n
help
Enable support for Timer 0.
config TIMER_DTMR_CMSDK_APB_0_DEV_NAME
string "Timer 0 Device Name"
depends on TIMER_DTMR_CMSDK_APB_0
default "TIMER_0"
help
Specify the device name for Timer 0 driver.
config TIMER_DTMR_CMSDK_APB_0_IRQ_PRI
int "Interrupt Priority for Timer 0"
depends on TIMER_DTMR_CMSDK_APB_0
default 3
help
Interrupt priority for Timer 0.
endif # TIMER_DTMR_CMSDK_APB
config COUNTER_DTMR_CMSDK_APB
bool
prompt "ARM CMSDK (Cortex-M System Design Kit) DTMR Counter driver"
@ -23,6 +58,7 @@ if COUNTER_DTMR_CMSDK_APB
config COUNTER_DTMR_CMSDK_APB_0
bool
prompt "Counter 0 driver"
depends on !TIMER_DTMR_CMSDK_APB_0
default n
help
Enable support for Counter 0.