1
2
3
4
5
6
7
8 #define OST_OSMR0 (PKUNITY_OST_BASE + 0x0000)
9
10
11
12 #define OST_OSMR1 (PKUNITY_OST_BASE + 0x0004)
13
14
15
16 #define OST_OSMR2 (PKUNITY_OST_BASE + 0x0008)
17
18
19
20 #define OST_OSMR3 (PKUNITY_OST_BASE + 0x000C)
21
22
23
24 #define OST_OSCR (PKUNITY_OST_BASE + 0x0010)
25
26
27
28 #define OST_OSSR (PKUNITY_OST_BASE + 0x0014)
29
30
31
32 #define OST_OWER (PKUNITY_OST_BASE + 0x0018)
33
34
35
36 #define OST_OIER (PKUNITY_OST_BASE + 0x001C)
37
38
39
40
41
42
43
44 #define OST_PWM_PWCR (0x00)
45 #define OST_PWM_DCCR (0x04)
46 #define OST_PWM_PCR (0x08)
47
48
49
50
51 #define OST_OSSR_M0 FIELD(1, 1, 0)
52
53
54
55 #define OST_OSSR_M1 FIELD(1, 1, 1)
56
57
58
59 #define OST_OSSR_M2 FIELD(1, 1, 2)
60
61
62
63 #define OST_OSSR_M3 FIELD(1, 1, 3)
64
65
66
67
68 #define OST_OIER_E0 FIELD(1, 1, 0)
69
70
71
72 #define OST_OIER_E1 FIELD(1, 1, 1)
73
74
75
76 #define OST_OIER_E2 FIELD(1, 1, 2)
77
78
79
80 #define OST_OIER_E3 FIELD(1, 1, 3)
81
82
83
84
85 #define OST_OWER_WME FIELD(1, 1, 0)
86
87
88
89
90 #define OST_PWMDCCR_FDCYCLE FIELD(1, 1, 10)
91