drivers: timer: Move Dual Timer API to unified interface
The CMSDK Dual Timer can be used as a timer or as a counter. The unified interface proposed in #8340 unifies counter.h and rtc.h to provide a common interface. This patch modifies the timer implementation of the dual timer to make it compliant with the new proposed interface. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
6fca18de60
commit
36427f8bbb
7 changed files with 68 additions and 250 deletions
|
@ -23,13 +23,6 @@ config TIMER_DTMR_CMSDK_APB_0
|
|||
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
|
||||
|
@ -39,29 +32,4 @@ config TIMER_DTMR_CMSDK_APB_0_IRQ_PRI
|
|||
|
||||
endif # TIMER_DTMR_CMSDK_APB
|
||||
|
||||
config COUNTER_DTMR_CMSDK_APB
|
||||
bool "ARM CMSDK (Cortex-M System Design Kit) DTMR Counter driver"
|
||||
help
|
||||
The dualtimer (DTMR) present in the platform is used as a counter.
|
||||
This option enables the support for the counter.
|
||||
|
||||
if COUNTER_DTMR_CMSDK_APB
|
||||
|
||||
# ---------- Counter 0 ----------
|
||||
|
||||
config COUNTER_DTMR_CMSDK_APB_0
|
||||
bool "Counter 0 driver"
|
||||
depends on !TIMER_DTMR_CMSDK_APB_0
|
||||
help
|
||||
Enable support for Counter 0.
|
||||
|
||||
config COUNTER_DTMR_CMSDK_APB_0_DEV_NAME
|
||||
string "Counter 0 Device Name"
|
||||
depends on COUNTER_DTMR_CMSDK_APB_0
|
||||
default "COUNTER_0"
|
||||
help
|
||||
Specify the device name for Counter 0 driver.
|
||||
|
||||
endif # COUNTER_DTMR_CMSDK_APB
|
||||
|
||||
endif # SOC_FAMILY_ARM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue