diff options
author | Fu Wei <fu.wei@linaro.org> | 2017-01-18 21:25:29 +0800 |
---|---|---|
committer | Mark Rutland <mark.rutland@arm.com> | 2017-04-10 14:29:54 +0100 |
commit | 097cd143dd871bfceacf4ed252b177cf515a1888 (patch) | |
tree | 8d70718d78f916c8dac17c952429c94c6afe17ba /include/clocksource | |
parent | 831610c08e63b69b141c446c78eb9e9315660a5d (diff) |
clocksource: arm_arch_timer: add a new enum for spi type
This patch add a new enum "arch_timer_spi_nr" and use it in the driver.
Just for code's readability, no functional change.
Signed-off-by: Fu Wei <fu.wei@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'include/clocksource')
-rw-r--r-- | include/clocksource/arm_arch_timer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clocksource/arm_arch_timer.h b/include/clocksource/arm_arch_timer.h index b8986371159c..4a98c060d80a 100644 --- a/include/clocksource/arm_arch_timer.h +++ b/include/clocksource/arm_arch_timer.h @@ -46,6 +46,12 @@ enum arch_timer_ppi_nr { ARCH_TIMER_MAX_TIMER_PPI }; +enum arch_timer_spi_nr { + ARCH_TIMER_PHYS_SPI, + ARCH_TIMER_VIRT_SPI, + ARCH_TIMER_MAX_TIMER_SPI +}; + #define ARCH_TIMER_PHYS_ACCESS 0 #define ARCH_TIMER_VIRT_ACCESS 1 #define ARCH_TIMER_MEM_PHYS_ACCESS 2 |