arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / unicore32 / include / mach / regs-ost.h
blob6c63e7b7569ed9b962bdb90af6048fa5796f026f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * PKUnity Operating System Timer (OST) Registers
4 */
5 /*
6 * Match Reg 0 OST_OSMR0
7 */
8 #define OST_OSMR0 (PKUNITY_OST_BASE + 0x0000)
9 /*
10 * Match Reg 1 OST_OSMR1
12 #define OST_OSMR1 (PKUNITY_OST_BASE + 0x0004)
14 * Match Reg 2 OST_OSMR2
16 #define OST_OSMR2 (PKUNITY_OST_BASE + 0x0008)
18 * Match Reg 3 OST_OSMR3
20 #define OST_OSMR3 (PKUNITY_OST_BASE + 0x000C)
22 * Counter Reg OST_OSCR
24 #define OST_OSCR (PKUNITY_OST_BASE + 0x0010)
26 * Status Reg OST_OSSR
28 #define OST_OSSR (PKUNITY_OST_BASE + 0x0014)
30 * Watchdog Enable Reg OST_OWER
32 #define OST_OWER (PKUNITY_OST_BASE + 0x0018)
34 * Interrupt Enable Reg OST_OIER
36 #define OST_OIER (PKUNITY_OST_BASE + 0x001C)
39 * PWM Registers: IO base address: PKUNITY_OST_BASE + 0x80
40 * PWCR: Pulse Width Control Reg
41 * DCCR: Duty Cycle Control Reg
42 * PCR: Period Control Reg
44 #define OST_PWM_PWCR (0x00)
45 #define OST_PWM_DCCR (0x04)
46 #define OST_PWM_PCR (0x08)
49 * Match detected 0 OST_OSSR_M0
51 #define OST_OSSR_M0 FIELD(1, 1, 0)
53 * Match detected 1 OST_OSSR_M1
55 #define OST_OSSR_M1 FIELD(1, 1, 1)
57 * Match detected 2 OST_OSSR_M2
59 #define OST_OSSR_M2 FIELD(1, 1, 2)
61 * Match detected 3 OST_OSSR_M3
63 #define OST_OSSR_M3 FIELD(1, 1, 3)
66 * Interrupt enable 0 OST_OIER_E0
68 #define OST_OIER_E0 FIELD(1, 1, 0)
70 * Interrupt enable 1 OST_OIER_E1
72 #define OST_OIER_E1 FIELD(1, 1, 1)
74 * Interrupt enable 2 OST_OIER_E2
76 #define OST_OIER_E2 FIELD(1, 1, 2)
78 * Interrupt enable 3 OST_OIER_E3
80 #define OST_OIER_E3 FIELD(1, 1, 3)
83 * Watchdog Match Enable OST_OWER_WME
85 #define OST_OWER_WME FIELD(1, 1, 0)
88 * PWM Full Duty Cycle OST_PWMDCCR_FDCYCLE
90 #define OST_PWMDCCR_FDCYCLE FIELD(1, 1, 10)