Go to the documentation of this file. 1 #ifndef _ASM_SCORE_SCOREREGS_H
2 #define _ASM_SCORE_SCOREREGS_H
4 #include <linux/linkage.h>
7 #define TIME0BASE 0x96080000
8 #define P_TIMER0_CTRL (TIME0BASE + 0x00)
9 #define P_TIMER0_CPP_CTRL (TIME0BASE + 0x04)
10 #define P_TIMER0_PRELOAD (TIME0BASE + 0x08)
11 #define P_TIMER0_CPP_REG (TIME0BASE + 0x0C)
12 #define P_TIMER0_UPCNT (TIME0BASE + 0x10)
16 #define TMR_DISABLE 0x0000
17 #define TMR_ENABLE 0x0001
20 #define TMR_IE_DISABLE 0x0000
21 #define TMR_IE_ENABLE 0x0002
24 #define TMR_OE_DISABLE 0x0004
25 #define TMR_OE_ENABLE 0x0000
28 #define TMR_UD_DOWN 0x0000
29 #define TMR_UD_UP 0x0010
32 #define TMR_UDS_UD 0x0000
33 #define TMR_UDS_EXTUD 0x0020
36 #define TMR_OM_TOGGLE 0x0000
37 #define TMR_OM_PILSE 0x0040
40 #define TMR_ES_PE 0x0000
41 #define TMR_ES_NE 0x0100
42 #define TMR_ES_BOTH 0x0200
45 #define TMR_M_FREE 0x0000
46 #define TMR_M_PERIODIC 0x0400
47 #define TMR_M_FC 0x0800
48 #define TMR_M_PC 0x0c00
50 #define SYSTEM_CLOCK (27*1000000/4)