uboot-oxnas: switch to u-boot.mk
[openwrt/staging/yousong.git] / package / boot / uboot-oxnas / src / arch / arm / include / asm / arch-nas782x / timer.h
1 #ifndef _NAS782X_TIMER_H
2 #define _NAS782X_TIMER_H
3
4 #define TIMER1_BASE (RPSA_BASE + 0x200)
5 #define TIMER2_BASE (RPSA_BASE + 0x220)
6
7 #define TIMER_LOAD 0
8 #define TIMER_CURR 4
9 #define TIMER_CTRL 8
10 #define TIMER_INTR 0x0C
11
12 #define TIMER_PRESCALE_SHIFT 2
13 #define TIMER_PRESCALE_1 0
14 #define TIMER_PRESCALE_16 1
15 #define TIMER_PRESCALE_256 2
16 #define TIMER_MODE_SHIFT 6
17 #define TIMER_MODE_FREE_RUNNING 0
18 #define TIMER_MODE_PERIODIC 1
19 #define TIMER_ENABLE_SHIFT 7
20 #define TIMER_DISABLE 0
21 #define TIMER_ENABLE 1
22
23 #endif /* _NAS782X_TIMER_H */