Go to the documentation of this file.
11 #ifndef __ARCH_ARM_MACH_DAVINCI_TIME_H
12 #define __ARCH_ARM_MACH_DAVINCI_TIME_H
14 #define DAVINCI_TIMER0_BASE (IO_PHYS + 0x21400)
15 #define DAVINCI_TIMER1_BASE (IO_PHYS + 0x21800)
16 #define DAVINCI_WDOG_BASE (IO_PHYS + 0x21C00)
26 #define IS_TIMER1(id) (id & 0x2)
27 #define IS_TIMER0(id) (!IS_TIMER1(id))
28 #define IS_TIMER_TOP(id) ((id & 0x1))
29 #define IS_TIMER_BOT(id) (!IS_TIMER_TOP(id))
31 #define ID_TO_TIMER(id) (IS_TIMER1(id) != 0)