Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / unicore32 / include / mach / regs-ost.h
blob7b91fe698eede079e15cf899695d847d25cb7b7e
1 /*
2 * PKUnity Operating System Timer (OST) Registers
3 */
4 /*
5 * Match Reg 0 OST_OSMR0
6 */
7 #define OST_OSMR0 (PKUNITY_OST_BASE + 0x0000)
8 /*
9 * Match Reg 1 OST_OSMR1
11 #define OST_OSMR1 (PKUNITY_OST_BASE + 0x0004)
13 * Match Reg 2 OST_OSMR2
15 #define OST_OSMR2 (PKUNITY_OST_BASE + 0x0008)
17 * Match Reg 3 OST_OSMR3
19 #define OST_OSMR3 (PKUNITY_OST_BASE + 0x000C)
21 * Counter Reg OST_OSCR
23 #define OST_OSCR (PKUNITY_OST_BASE + 0x0010)
25 * Status Reg OST_OSSR
27 #define OST_OSSR (PKUNITY_OST_BASE + 0x0014)
29 * Watchdog Enable Reg OST_OWER
31 #define OST_OWER (PKUNITY_OST_BASE + 0x0018)
33 * Interrupt Enable Reg OST_OIER
35 #define OST_OIER (PKUNITY_OST_BASE + 0x001C)
37 * PWM Pulse Width Control Reg OST_PWMPWCR
39 #define OST_PWMPWCR (PKUNITY_OST_BASE + 0x0080)
41 * PWM Duty Cycle Control Reg OST_PWMDCCR
43 #define OST_PWMDCCR (PKUNITY_OST_BASE + 0x0084)
45 * PWM Period Control Reg OST_PWMPCR
47 #define OST_PWMPCR (PKUNITY_OST_BASE + 0x0088)
50 * Match detected 0 OST_OSSR_M0
52 #define OST_OSSR_M0 FIELD(1, 1, 0)
54 * Match detected 1 OST_OSSR_M1
56 #define OST_OSSR_M1 FIELD(1, 1, 1)
58 * Match detected 2 OST_OSSR_M2
60 #define OST_OSSR_M2 FIELD(1, 1, 2)
62 * Match detected 3 OST_OSSR_M3
64 #define OST_OSSR_M3 FIELD(1, 1, 3)
67 * Interrupt enable 0 OST_OIER_E0
69 #define OST_OIER_E0 FIELD(1, 1, 0)
71 * Interrupt enable 1 OST_OIER_E1
73 #define OST_OIER_E1 FIELD(1, 1, 1)
75 * Interrupt enable 2 OST_OIER_E2
77 #define OST_OIER_E2 FIELD(1, 1, 2)
79 * Interrupt enable 3 OST_OIER_E3
81 #define OST_OIER_E3 FIELD(1, 1, 3)
84 * Watchdog Match Enable OST_OWER_WME
86 #define OST_OWER_WME FIELD(1, 1, 0)
89 * PWM Full Duty Cycle OST_PWMDCCR_FDCYCLE
91 #define OST_PWMDCCR_FDCYCLE FIELD(1, 1, 10)