EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
efm32g_cmu.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t HFCORECLKDIV;
45  __IOM uint32_t HFPERCLKDIV;
46  __IOM uint32_t HFRCOCTRL;
47  __IOM uint32_t LFRCOCTRL;
48  __IOM uint32_t AUXHFRCOCTRL;
49  __IOM uint32_t CALCTRL;
50  __IOM uint32_t CALCNT;
51  __IOM uint32_t OSCENCMD;
52  __IOM uint32_t CMD;
53  __IOM uint32_t LFCLKSEL;
54  __IM uint32_t STATUS;
55  __IM uint32_t IF;
56  __IOM uint32_t IFS;
57  __IOM uint32_t IFC;
58  __IOM uint32_t IEN;
59  __IOM uint32_t HFCORECLKEN0;
60  __IOM uint32_t HFPERCLKEN0;
61  uint32_t RESERVED0[2];
62  __IM uint32_t SYNCBUSY;
63  __IOM uint32_t FREEZE;
64  __IOM uint32_t LFACLKEN0;
65  uint32_t RESERVED1[1];
66  __IOM uint32_t LFBCLKEN0;
67  uint32_t RESERVED2[1];
68  __IOM uint32_t LFAPRESC0;
69  uint32_t RESERVED3[1];
70  __IOM uint32_t LFBPRESC0;
71  uint32_t RESERVED4[1];
72  __IOM uint32_t PCNTCTRL;
73  __IOM uint32_t LCDCTRL;
74  __IOM uint32_t ROUTE;
75  __IOM uint32_t LOCK;
76 } CMU_TypeDef;
78 /**************************************************************************/
83 /* Bit fields for CMU CTRL */
84 #define _CMU_CTRL_RESETVALUE 0x000C262CUL
85 #define _CMU_CTRL_MASK 0x00FE3EEFUL
86 #define _CMU_CTRL_HFXOMODE_SHIFT 0
87 #define _CMU_CTRL_HFXOMODE_MASK 0x3UL
88 #define _CMU_CTRL_HFXOMODE_DEFAULT 0x00000000UL
89 #define _CMU_CTRL_HFXOMODE_XTAL 0x00000000UL
90 #define _CMU_CTRL_HFXOMODE_BUFEXTCLK 0x00000001UL
91 #define _CMU_CTRL_HFXOMODE_DIGEXTCLK 0x00000002UL
92 #define CMU_CTRL_HFXOMODE_DEFAULT (_CMU_CTRL_HFXOMODE_DEFAULT << 0)
93 #define CMU_CTRL_HFXOMODE_XTAL (_CMU_CTRL_HFXOMODE_XTAL << 0)
94 #define CMU_CTRL_HFXOMODE_BUFEXTCLK (_CMU_CTRL_HFXOMODE_BUFEXTCLK << 0)
95 #define CMU_CTRL_HFXOMODE_DIGEXTCLK (_CMU_CTRL_HFXOMODE_DIGEXTCLK << 0)
96 #define _CMU_CTRL_HFXOBOOST_SHIFT 2
97 #define _CMU_CTRL_HFXOBOOST_MASK 0xCUL
98 #define _CMU_CTRL_HFXOBOOST_50PCENT 0x00000000UL
99 #define _CMU_CTRL_HFXOBOOST_70PCENT 0x00000001UL
100 #define _CMU_CTRL_HFXOBOOST_80PCENT 0x00000002UL
101 #define _CMU_CTRL_HFXOBOOST_DEFAULT 0x00000003UL
102 #define _CMU_CTRL_HFXOBOOST_100PCENT 0x00000003UL
103 #define CMU_CTRL_HFXOBOOST_50PCENT (_CMU_CTRL_HFXOBOOST_50PCENT << 2)
104 #define CMU_CTRL_HFXOBOOST_70PCENT (_CMU_CTRL_HFXOBOOST_70PCENT << 2)
105 #define CMU_CTRL_HFXOBOOST_80PCENT (_CMU_CTRL_HFXOBOOST_80PCENT << 2)
106 #define CMU_CTRL_HFXOBOOST_DEFAULT (_CMU_CTRL_HFXOBOOST_DEFAULT << 2)
107 #define CMU_CTRL_HFXOBOOST_100PCENT (_CMU_CTRL_HFXOBOOST_100PCENT << 2)
108 #define _CMU_CTRL_HFXOBUFCUR_SHIFT 5
109 #define _CMU_CTRL_HFXOBUFCUR_MASK 0x60UL
110 #define _CMU_CTRL_HFXOBUFCUR_DEFAULT 0x00000001UL
111 #define CMU_CTRL_HFXOBUFCUR_DEFAULT (_CMU_CTRL_HFXOBUFCUR_DEFAULT << 5)
112 #define CMU_CTRL_HFXOGLITCHDETEN (0x1UL << 7)
113 #define _CMU_CTRL_HFXOGLITCHDETEN_SHIFT 7
114 #define _CMU_CTRL_HFXOGLITCHDETEN_MASK 0x80UL
115 #define _CMU_CTRL_HFXOGLITCHDETEN_DEFAULT 0x00000000UL
116 #define CMU_CTRL_HFXOGLITCHDETEN_DEFAULT (_CMU_CTRL_HFXOGLITCHDETEN_DEFAULT << 7)
117 #define _CMU_CTRL_HFXOTIMEOUT_SHIFT 9
118 #define _CMU_CTRL_HFXOTIMEOUT_MASK 0x600UL
119 #define _CMU_CTRL_HFXOTIMEOUT_8CYCLES 0x00000000UL
120 #define _CMU_CTRL_HFXOTIMEOUT_256CYCLES 0x00000001UL
121 #define _CMU_CTRL_HFXOTIMEOUT_1KCYCLES 0x00000002UL
122 #define _CMU_CTRL_HFXOTIMEOUT_DEFAULT 0x00000003UL
123 #define _CMU_CTRL_HFXOTIMEOUT_16KCYCLES 0x00000003UL
124 #define CMU_CTRL_HFXOTIMEOUT_8CYCLES (_CMU_CTRL_HFXOTIMEOUT_8CYCLES << 9)
125 #define CMU_CTRL_HFXOTIMEOUT_256CYCLES (_CMU_CTRL_HFXOTIMEOUT_256CYCLES << 9)
126 #define CMU_CTRL_HFXOTIMEOUT_1KCYCLES (_CMU_CTRL_HFXOTIMEOUT_1KCYCLES << 9)
127 #define CMU_CTRL_HFXOTIMEOUT_DEFAULT (_CMU_CTRL_HFXOTIMEOUT_DEFAULT << 9)
128 #define CMU_CTRL_HFXOTIMEOUT_16KCYCLES (_CMU_CTRL_HFXOTIMEOUT_16KCYCLES << 9)
129 #define _CMU_CTRL_LFXOMODE_SHIFT 11
130 #define _CMU_CTRL_LFXOMODE_MASK 0x1800UL
131 #define _CMU_CTRL_LFXOMODE_DEFAULT 0x00000000UL
132 #define _CMU_CTRL_LFXOMODE_XTAL 0x00000000UL
133 #define _CMU_CTRL_LFXOMODE_BUFEXTCLK 0x00000001UL
134 #define _CMU_CTRL_LFXOMODE_DIGEXTCLK 0x00000002UL
135 #define CMU_CTRL_LFXOMODE_DEFAULT (_CMU_CTRL_LFXOMODE_DEFAULT << 11)
136 #define CMU_CTRL_LFXOMODE_XTAL (_CMU_CTRL_LFXOMODE_XTAL << 11)
137 #define CMU_CTRL_LFXOMODE_BUFEXTCLK (_CMU_CTRL_LFXOMODE_BUFEXTCLK << 11)
138 #define CMU_CTRL_LFXOMODE_DIGEXTCLK (_CMU_CTRL_LFXOMODE_DIGEXTCLK << 11)
139 #define CMU_CTRL_LFXOBOOST (0x1UL << 13)
140 #define _CMU_CTRL_LFXOBOOST_SHIFT 13
141 #define _CMU_CTRL_LFXOBOOST_MASK 0x2000UL
142 #define _CMU_CTRL_LFXOBOOST_70PCENT 0x00000000UL
143 #define _CMU_CTRL_LFXOBOOST_DEFAULT 0x00000001UL
144 #define _CMU_CTRL_LFXOBOOST_100PCENT 0x00000001UL
145 #define CMU_CTRL_LFXOBOOST_70PCENT (_CMU_CTRL_LFXOBOOST_70PCENT << 13)
146 #define CMU_CTRL_LFXOBOOST_DEFAULT (_CMU_CTRL_LFXOBOOST_DEFAULT << 13)
147 #define CMU_CTRL_LFXOBOOST_100PCENT (_CMU_CTRL_LFXOBOOST_100PCENT << 13)
148 #define CMU_CTRL_LFXOBUFCUR (0x1UL << 17)
149 #define _CMU_CTRL_LFXOBUFCUR_SHIFT 17
150 #define _CMU_CTRL_LFXOBUFCUR_MASK 0x20000UL
151 #define _CMU_CTRL_LFXOBUFCUR_DEFAULT 0x00000000UL
152 #define CMU_CTRL_LFXOBUFCUR_DEFAULT (_CMU_CTRL_LFXOBUFCUR_DEFAULT << 17)
153 #define _CMU_CTRL_LFXOTIMEOUT_SHIFT 18
154 #define _CMU_CTRL_LFXOTIMEOUT_MASK 0xC0000UL
155 #define _CMU_CTRL_LFXOTIMEOUT_8CYCLES 0x00000000UL
156 #define _CMU_CTRL_LFXOTIMEOUT_1KCYCLES 0x00000001UL
157 #define _CMU_CTRL_LFXOTIMEOUT_16KCYCLES 0x00000002UL
158 #define _CMU_CTRL_LFXOTIMEOUT_DEFAULT 0x00000003UL
159 #define _CMU_CTRL_LFXOTIMEOUT_32KCYCLES 0x00000003UL
160 #define CMU_CTRL_LFXOTIMEOUT_8CYCLES (_CMU_CTRL_LFXOTIMEOUT_8CYCLES << 18)
161 #define CMU_CTRL_LFXOTIMEOUT_1KCYCLES (_CMU_CTRL_LFXOTIMEOUT_1KCYCLES << 18)
162 #define CMU_CTRL_LFXOTIMEOUT_16KCYCLES (_CMU_CTRL_LFXOTIMEOUT_16KCYCLES << 18)
163 #define CMU_CTRL_LFXOTIMEOUT_DEFAULT (_CMU_CTRL_LFXOTIMEOUT_DEFAULT << 18)
164 #define CMU_CTRL_LFXOTIMEOUT_32KCYCLES (_CMU_CTRL_LFXOTIMEOUT_32KCYCLES << 18)
165 #define _CMU_CTRL_CLKOUTSEL0_SHIFT 20
166 #define _CMU_CTRL_CLKOUTSEL0_MASK 0x700000UL
167 #define _CMU_CTRL_CLKOUTSEL0_DEFAULT 0x00000000UL
168 #define _CMU_CTRL_CLKOUTSEL0_HFRCO 0x00000000UL
169 #define _CMU_CTRL_CLKOUTSEL0_HFXO 0x00000001UL
170 #define _CMU_CTRL_CLKOUTSEL0_HFCLK2 0x00000002UL
171 #define _CMU_CTRL_CLKOUTSEL0_HFCLK4 0x00000003UL
172 #define _CMU_CTRL_CLKOUTSEL0_HFCLK8 0x00000004UL
173 #define _CMU_CTRL_CLKOUTSEL0_HFCLK16 0x00000005UL
174 #define _CMU_CTRL_CLKOUTSEL0_ULFRCO 0x00000006UL
175 #define CMU_CTRL_CLKOUTSEL0_DEFAULT (_CMU_CTRL_CLKOUTSEL0_DEFAULT << 20)
176 #define CMU_CTRL_CLKOUTSEL0_HFRCO (_CMU_CTRL_CLKOUTSEL0_HFRCO << 20)
177 #define CMU_CTRL_CLKOUTSEL0_HFXO (_CMU_CTRL_CLKOUTSEL0_HFXO << 20)
178 #define CMU_CTRL_CLKOUTSEL0_HFCLK2 (_CMU_CTRL_CLKOUTSEL0_HFCLK2 << 20)
179 #define CMU_CTRL_CLKOUTSEL0_HFCLK4 (_CMU_CTRL_CLKOUTSEL0_HFCLK4 << 20)
180 #define CMU_CTRL_CLKOUTSEL0_HFCLK8 (_CMU_CTRL_CLKOUTSEL0_HFCLK8 << 20)
181 #define CMU_CTRL_CLKOUTSEL0_HFCLK16 (_CMU_CTRL_CLKOUTSEL0_HFCLK16 << 20)
182 #define CMU_CTRL_CLKOUTSEL0_ULFRCO (_CMU_CTRL_CLKOUTSEL0_ULFRCO << 20)
183 #define CMU_CTRL_CLKOUTSEL1 (0x1UL << 23)
184 #define _CMU_CTRL_CLKOUTSEL1_SHIFT 23
185 #define _CMU_CTRL_CLKOUTSEL1_MASK 0x800000UL
186 #define _CMU_CTRL_CLKOUTSEL1_DEFAULT 0x00000000UL
187 #define _CMU_CTRL_CLKOUTSEL1_LFRCO 0x00000000UL
188 #define _CMU_CTRL_CLKOUTSEL1_LFXO 0x00000001UL
189 #define CMU_CTRL_CLKOUTSEL1_DEFAULT (_CMU_CTRL_CLKOUTSEL1_DEFAULT << 23)
190 #define CMU_CTRL_CLKOUTSEL1_LFRCO (_CMU_CTRL_CLKOUTSEL1_LFRCO << 23)
191 #define CMU_CTRL_CLKOUTSEL1_LFXO (_CMU_CTRL_CLKOUTSEL1_LFXO << 23)
193 /* Bit fields for CMU HFCORECLKDIV */
194 #define _CMU_HFCORECLKDIV_RESETVALUE 0x00000000UL
195 #define _CMU_HFCORECLKDIV_MASK 0x0000000FUL
196 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT 0
197 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK 0xFUL
198 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT 0x00000000UL
199 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK 0x00000000UL
200 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 0x00000001UL
201 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 0x00000002UL
202 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 0x00000003UL
203 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 0x00000004UL
204 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 0x00000005UL
205 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 0x00000006UL
206 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 0x00000007UL
207 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 0x00000008UL
208 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 0x00000009UL
209 #define CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT (_CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT << 0)
210 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK << 0)
211 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 << 0)
212 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 << 0)
213 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 << 0)
214 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 << 0)
215 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 << 0)
216 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 << 0)
217 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 << 0)
218 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 << 0)
219 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 << 0)
221 /* Bit fields for CMU HFPERCLKDIV */
222 #define _CMU_HFPERCLKDIV_RESETVALUE 0x00000100UL
223 #define _CMU_HFPERCLKDIV_MASK 0x0000010FUL
224 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT 0
225 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_MASK 0xFUL
226 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT 0x00000000UL
227 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK 0x00000000UL
228 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 0x00000001UL
229 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 0x00000002UL
230 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 0x00000003UL
231 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 0x00000004UL
232 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 0x00000005UL
233 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 0x00000006UL
234 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 0x00000007UL
235 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 0x00000008UL
236 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 0x00000009UL
237 #define CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT (_CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT << 0)
238 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK << 0)
239 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 << 0)
240 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 << 0)
241 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 << 0)
242 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 << 0)
243 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 << 0)
244 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 << 0)
245 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 << 0)
246 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 << 0)
247 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 << 0)
248 #define CMU_HFPERCLKDIV_HFPERCLKEN (0x1UL << 8)
249 #define _CMU_HFPERCLKDIV_HFPERCLKEN_SHIFT 8
250 #define _CMU_HFPERCLKDIV_HFPERCLKEN_MASK 0x100UL
251 #define _CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT 0x00000001UL
252 #define CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT (_CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT << 8)
254 /* Bit fields for CMU HFRCOCTRL */
255 #define _CMU_HFRCOCTRL_RESETVALUE 0x00000380UL
256 #define _CMU_HFRCOCTRL_MASK 0x0001F7FFUL
257 #define _CMU_HFRCOCTRL_TUNING_SHIFT 0
258 #define _CMU_HFRCOCTRL_TUNING_MASK 0xFFUL
259 #define _CMU_HFRCOCTRL_TUNING_DEFAULT 0x00000080UL
260 #define CMU_HFRCOCTRL_TUNING_DEFAULT (_CMU_HFRCOCTRL_TUNING_DEFAULT << 0)
261 #define _CMU_HFRCOCTRL_BAND_SHIFT 8
262 #define _CMU_HFRCOCTRL_BAND_MASK 0x700UL
263 #define _CMU_HFRCOCTRL_BAND_1MHZ 0x00000000UL
264 #define _CMU_HFRCOCTRL_BAND_7MHZ 0x00000001UL
265 #define _CMU_HFRCOCTRL_BAND_11MHZ 0x00000002UL
266 #define _CMU_HFRCOCTRL_BAND_DEFAULT 0x00000003UL
267 #define _CMU_HFRCOCTRL_BAND_14MHZ 0x00000003UL
268 #define _CMU_HFRCOCTRL_BAND_21MHZ 0x00000004UL
269 #define _CMU_HFRCOCTRL_BAND_28MHZ 0x00000005UL
270 #define CMU_HFRCOCTRL_BAND_1MHZ (_CMU_HFRCOCTRL_BAND_1MHZ << 8)
271 #define CMU_HFRCOCTRL_BAND_7MHZ (_CMU_HFRCOCTRL_BAND_7MHZ << 8)
272 #define CMU_HFRCOCTRL_BAND_11MHZ (_CMU_HFRCOCTRL_BAND_11MHZ << 8)
273 #define CMU_HFRCOCTRL_BAND_DEFAULT (_CMU_HFRCOCTRL_BAND_DEFAULT << 8)
274 #define CMU_HFRCOCTRL_BAND_14MHZ (_CMU_HFRCOCTRL_BAND_14MHZ << 8)
275 #define CMU_HFRCOCTRL_BAND_21MHZ (_CMU_HFRCOCTRL_BAND_21MHZ << 8)
276 #define CMU_HFRCOCTRL_BAND_28MHZ (_CMU_HFRCOCTRL_BAND_28MHZ << 8)
277 #define _CMU_HFRCOCTRL_SUDELAY_SHIFT 12
278 #define _CMU_HFRCOCTRL_SUDELAY_MASK 0x1F000UL
279 #define _CMU_HFRCOCTRL_SUDELAY_DEFAULT 0x00000000UL
280 #define CMU_HFRCOCTRL_SUDELAY_DEFAULT (_CMU_HFRCOCTRL_SUDELAY_DEFAULT << 12)
282 /* Bit fields for CMU LFRCOCTRL */
283 #define _CMU_LFRCOCTRL_RESETVALUE 0x00000040UL
284 #define _CMU_LFRCOCTRL_MASK 0x0000007FUL
285 #define _CMU_LFRCOCTRL_TUNING_SHIFT 0
286 #define _CMU_LFRCOCTRL_TUNING_MASK 0x7FUL
287 #define _CMU_LFRCOCTRL_TUNING_DEFAULT 0x00000040UL
288 #define CMU_LFRCOCTRL_TUNING_DEFAULT (_CMU_LFRCOCTRL_TUNING_DEFAULT << 0)
290 /* Bit fields for CMU AUXHFRCOCTRL */
291 #define _CMU_AUXHFRCOCTRL_RESETVALUE 0x00000080UL
292 #define _CMU_AUXHFRCOCTRL_MASK 0x000000FFUL
293 #define _CMU_AUXHFRCOCTRL_TUNING_SHIFT 0
294 #define _CMU_AUXHFRCOCTRL_TUNING_MASK 0xFFUL
295 #define _CMU_AUXHFRCOCTRL_TUNING_DEFAULT 0x00000080UL
296 #define CMU_AUXHFRCOCTRL_TUNING_DEFAULT (_CMU_AUXHFRCOCTRL_TUNING_DEFAULT << 0)
298 /* Bit fields for CMU CALCTRL */
299 #define _CMU_CALCTRL_RESETVALUE 0x00000000UL
300 #define _CMU_CALCTRL_MASK 0x00000007UL
301 #define _CMU_CALCTRL_UPSEL_SHIFT 0
302 #define _CMU_CALCTRL_UPSEL_MASK 0x7UL
303 #define _CMU_CALCTRL_UPSEL_DEFAULT 0x00000000UL
304 #define _CMU_CALCTRL_UPSEL_HFXO 0x00000000UL
305 #define _CMU_CALCTRL_UPSEL_LFXO 0x00000001UL
306 #define _CMU_CALCTRL_UPSEL_HFRCO 0x00000002UL
307 #define _CMU_CALCTRL_UPSEL_LFRCO 0x00000003UL
308 #define _CMU_CALCTRL_UPSEL_AUXHFRCO 0x00000004UL
309 #define CMU_CALCTRL_UPSEL_DEFAULT (_CMU_CALCTRL_UPSEL_DEFAULT << 0)
310 #define CMU_CALCTRL_UPSEL_HFXO (_CMU_CALCTRL_UPSEL_HFXO << 0)
311 #define CMU_CALCTRL_UPSEL_LFXO (_CMU_CALCTRL_UPSEL_LFXO << 0)
312 #define CMU_CALCTRL_UPSEL_HFRCO (_CMU_CALCTRL_UPSEL_HFRCO << 0)
313 #define CMU_CALCTRL_UPSEL_LFRCO (_CMU_CALCTRL_UPSEL_LFRCO << 0)
314 #define CMU_CALCTRL_UPSEL_AUXHFRCO (_CMU_CALCTRL_UPSEL_AUXHFRCO << 0)
316 /* Bit fields for CMU CALCNT */
317 #define _CMU_CALCNT_RESETVALUE 0x00000000UL
318 #define _CMU_CALCNT_MASK 0x000FFFFFUL
319 #define _CMU_CALCNT_CALCNT_SHIFT 0
320 #define _CMU_CALCNT_CALCNT_MASK 0xFFFFFUL
321 #define _CMU_CALCNT_CALCNT_DEFAULT 0x00000000UL
322 #define CMU_CALCNT_CALCNT_DEFAULT (_CMU_CALCNT_CALCNT_DEFAULT << 0)
324 /* Bit fields for CMU OSCENCMD */
325 #define _CMU_OSCENCMD_RESETVALUE 0x00000000UL
326 #define _CMU_OSCENCMD_MASK 0x000003FFUL
327 #define CMU_OSCENCMD_HFRCOEN (0x1UL << 0)
328 #define _CMU_OSCENCMD_HFRCOEN_SHIFT 0
329 #define _CMU_OSCENCMD_HFRCOEN_MASK 0x1UL
330 #define _CMU_OSCENCMD_HFRCOEN_DEFAULT 0x00000000UL
331 #define CMU_OSCENCMD_HFRCOEN_DEFAULT (_CMU_OSCENCMD_HFRCOEN_DEFAULT << 0)
332 #define CMU_OSCENCMD_HFRCODIS (0x1UL << 1)
333 #define _CMU_OSCENCMD_HFRCODIS_SHIFT 1
334 #define _CMU_OSCENCMD_HFRCODIS_MASK 0x2UL
335 #define _CMU_OSCENCMD_HFRCODIS_DEFAULT 0x00000000UL
336 #define CMU_OSCENCMD_HFRCODIS_DEFAULT (_CMU_OSCENCMD_HFRCODIS_DEFAULT << 1)
337 #define CMU_OSCENCMD_HFXOEN (0x1UL << 2)
338 #define _CMU_OSCENCMD_HFXOEN_SHIFT 2
339 #define _CMU_OSCENCMD_HFXOEN_MASK 0x4UL
340 #define _CMU_OSCENCMD_HFXOEN_DEFAULT 0x00000000UL
341 #define CMU_OSCENCMD_HFXOEN_DEFAULT (_CMU_OSCENCMD_HFXOEN_DEFAULT << 2)
342 #define CMU_OSCENCMD_HFXODIS (0x1UL << 3)
343 #define _CMU_OSCENCMD_HFXODIS_SHIFT 3
344 #define _CMU_OSCENCMD_HFXODIS_MASK 0x8UL
345 #define _CMU_OSCENCMD_HFXODIS_DEFAULT 0x00000000UL
346 #define CMU_OSCENCMD_HFXODIS_DEFAULT (_CMU_OSCENCMD_HFXODIS_DEFAULT << 3)
347 #define CMU_OSCENCMD_AUXHFRCOEN (0x1UL << 4)
348 #define _CMU_OSCENCMD_AUXHFRCOEN_SHIFT 4
349 #define _CMU_OSCENCMD_AUXHFRCOEN_MASK 0x10UL
350 #define _CMU_OSCENCMD_AUXHFRCOEN_DEFAULT 0x00000000UL
351 #define CMU_OSCENCMD_AUXHFRCOEN_DEFAULT (_CMU_OSCENCMD_AUXHFRCOEN_DEFAULT << 4)
352 #define CMU_OSCENCMD_AUXHFRCODIS (0x1UL << 5)
353 #define _CMU_OSCENCMD_AUXHFRCODIS_SHIFT 5
354 #define _CMU_OSCENCMD_AUXHFRCODIS_MASK 0x20UL
355 #define _CMU_OSCENCMD_AUXHFRCODIS_DEFAULT 0x00000000UL
356 #define CMU_OSCENCMD_AUXHFRCODIS_DEFAULT (_CMU_OSCENCMD_AUXHFRCODIS_DEFAULT << 5)
357 #define CMU_OSCENCMD_LFRCOEN (0x1UL << 6)
358 #define _CMU_OSCENCMD_LFRCOEN_SHIFT 6
359 #define _CMU_OSCENCMD_LFRCOEN_MASK 0x40UL
360 #define _CMU_OSCENCMD_LFRCOEN_DEFAULT 0x00000000UL
361 #define CMU_OSCENCMD_LFRCOEN_DEFAULT (_CMU_OSCENCMD_LFRCOEN_DEFAULT << 6)
362 #define CMU_OSCENCMD_LFRCODIS (0x1UL << 7)
363 #define _CMU_OSCENCMD_LFRCODIS_SHIFT 7
364 #define _CMU_OSCENCMD_LFRCODIS_MASK 0x80UL
365 #define _CMU_OSCENCMD_LFRCODIS_DEFAULT 0x00000000UL
366 #define CMU_OSCENCMD_LFRCODIS_DEFAULT (_CMU_OSCENCMD_LFRCODIS_DEFAULT << 7)
367 #define CMU_OSCENCMD_LFXOEN (0x1UL << 8)
368 #define _CMU_OSCENCMD_LFXOEN_SHIFT 8
369 #define _CMU_OSCENCMD_LFXOEN_MASK 0x100UL
370 #define _CMU_OSCENCMD_LFXOEN_DEFAULT 0x00000000UL
371 #define CMU_OSCENCMD_LFXOEN_DEFAULT (_CMU_OSCENCMD_LFXOEN_DEFAULT << 8)
372 #define CMU_OSCENCMD_LFXODIS (0x1UL << 9)
373 #define _CMU_OSCENCMD_LFXODIS_SHIFT 9
374 #define _CMU_OSCENCMD_LFXODIS_MASK 0x200UL
375 #define _CMU_OSCENCMD_LFXODIS_DEFAULT 0x00000000UL
376 #define CMU_OSCENCMD_LFXODIS_DEFAULT (_CMU_OSCENCMD_LFXODIS_DEFAULT << 9)
378 /* Bit fields for CMU CMD */
379 #define _CMU_CMD_RESETVALUE 0x00000000UL
380 #define _CMU_CMD_MASK 0x0000000FUL
381 #define _CMU_CMD_HFCLKSEL_SHIFT 0
382 #define _CMU_CMD_HFCLKSEL_MASK 0x7UL
383 #define _CMU_CMD_HFCLKSEL_DEFAULT 0x00000000UL
384 #define _CMU_CMD_HFCLKSEL_HFRCO 0x00000001UL
385 #define _CMU_CMD_HFCLKSEL_HFXO 0x00000002UL
386 #define _CMU_CMD_HFCLKSEL_LFRCO 0x00000003UL
387 #define _CMU_CMD_HFCLKSEL_LFXO 0x00000004UL
388 #define CMU_CMD_HFCLKSEL_DEFAULT (_CMU_CMD_HFCLKSEL_DEFAULT << 0)
389 #define CMU_CMD_HFCLKSEL_HFRCO (_CMU_CMD_HFCLKSEL_HFRCO << 0)
390 #define CMU_CMD_HFCLKSEL_HFXO (_CMU_CMD_HFCLKSEL_HFXO << 0)
391 #define CMU_CMD_HFCLKSEL_LFRCO (_CMU_CMD_HFCLKSEL_LFRCO << 0)
392 #define CMU_CMD_HFCLKSEL_LFXO (_CMU_CMD_HFCLKSEL_LFXO << 0)
393 #define CMU_CMD_CALSTART (0x1UL << 3)
394 #define _CMU_CMD_CALSTART_SHIFT 3
395 #define _CMU_CMD_CALSTART_MASK 0x8UL
396 #define _CMU_CMD_CALSTART_DEFAULT 0x00000000UL
397 #define CMU_CMD_CALSTART_DEFAULT (_CMU_CMD_CALSTART_DEFAULT << 3)
399 /* Bit fields for CMU LFCLKSEL */
400 #define _CMU_LFCLKSEL_RESETVALUE 0x00000005UL
401 #define _CMU_LFCLKSEL_MASK 0x0000000FUL
402 #define _CMU_LFCLKSEL_LFA_SHIFT 0
403 #define _CMU_LFCLKSEL_LFA_MASK 0x3UL
404 #define _CMU_LFCLKSEL_LFA_DISABLED 0x00000000UL
405 #define _CMU_LFCLKSEL_LFA_DEFAULT 0x00000001UL
406 #define _CMU_LFCLKSEL_LFA_LFRCO 0x00000001UL
407 #define _CMU_LFCLKSEL_LFA_LFXO 0x00000002UL
408 #define _CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 0x00000003UL
409 #define CMU_LFCLKSEL_LFA_DISABLED (_CMU_LFCLKSEL_LFA_DISABLED << 0)
410 #define CMU_LFCLKSEL_LFA_DEFAULT (_CMU_LFCLKSEL_LFA_DEFAULT << 0)
411 #define CMU_LFCLKSEL_LFA_LFRCO (_CMU_LFCLKSEL_LFA_LFRCO << 0)
412 #define CMU_LFCLKSEL_LFA_LFXO (_CMU_LFCLKSEL_LFA_LFXO << 0)
413 #define CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 (_CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 << 0)
414 #define _CMU_LFCLKSEL_LFB_SHIFT 2
415 #define _CMU_LFCLKSEL_LFB_MASK 0xCUL
416 #define _CMU_LFCLKSEL_LFB_DISABLED 0x00000000UL
417 #define _CMU_LFCLKSEL_LFB_DEFAULT 0x00000001UL
418 #define _CMU_LFCLKSEL_LFB_LFRCO 0x00000001UL
419 #define _CMU_LFCLKSEL_LFB_LFXO 0x00000002UL
420 #define _CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 0x00000003UL
421 #define CMU_LFCLKSEL_LFB_DISABLED (_CMU_LFCLKSEL_LFB_DISABLED << 2)
422 #define CMU_LFCLKSEL_LFB_DEFAULT (_CMU_LFCLKSEL_LFB_DEFAULT << 2)
423 #define CMU_LFCLKSEL_LFB_LFRCO (_CMU_LFCLKSEL_LFB_LFRCO << 2)
424 #define CMU_LFCLKSEL_LFB_LFXO (_CMU_LFCLKSEL_LFB_LFXO << 2)
425 #define CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 (_CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 << 2)
427 /* Bit fields for CMU STATUS */
428 #define _CMU_STATUS_RESETVALUE 0x00000403UL
429 #define _CMU_STATUS_MASK 0x00007FFFUL
430 #define CMU_STATUS_HFRCOENS (0x1UL << 0)
431 #define _CMU_STATUS_HFRCOENS_SHIFT 0
432 #define _CMU_STATUS_HFRCOENS_MASK 0x1UL
433 #define _CMU_STATUS_HFRCOENS_DEFAULT 0x00000001UL
434 #define CMU_STATUS_HFRCOENS_DEFAULT (_CMU_STATUS_HFRCOENS_DEFAULT << 0)
435 #define CMU_STATUS_HFRCORDY (0x1UL << 1)
436 #define _CMU_STATUS_HFRCORDY_SHIFT 1
437 #define _CMU_STATUS_HFRCORDY_MASK 0x2UL
438 #define _CMU_STATUS_HFRCORDY_DEFAULT 0x00000001UL
439 #define CMU_STATUS_HFRCORDY_DEFAULT (_CMU_STATUS_HFRCORDY_DEFAULT << 1)
440 #define CMU_STATUS_HFXOENS (0x1UL << 2)
441 #define _CMU_STATUS_HFXOENS_SHIFT 2
442 #define _CMU_STATUS_HFXOENS_MASK 0x4UL
443 #define _CMU_STATUS_HFXOENS_DEFAULT 0x00000000UL
444 #define CMU_STATUS_HFXOENS_DEFAULT (_CMU_STATUS_HFXOENS_DEFAULT << 2)
445 #define CMU_STATUS_HFXORDY (0x1UL << 3)
446 #define _CMU_STATUS_HFXORDY_SHIFT 3
447 #define _CMU_STATUS_HFXORDY_MASK 0x8UL
448 #define _CMU_STATUS_HFXORDY_DEFAULT 0x00000000UL
449 #define CMU_STATUS_HFXORDY_DEFAULT (_CMU_STATUS_HFXORDY_DEFAULT << 3)
450 #define CMU_STATUS_AUXHFRCOENS (0x1UL << 4)
451 #define _CMU_STATUS_AUXHFRCOENS_SHIFT 4
452 #define _CMU_STATUS_AUXHFRCOENS_MASK 0x10UL
453 #define _CMU_STATUS_AUXHFRCOENS_DEFAULT 0x00000000UL
454 #define CMU_STATUS_AUXHFRCOENS_DEFAULT (_CMU_STATUS_AUXHFRCOENS_DEFAULT << 4)
455 #define CMU_STATUS_AUXHFRCORDY (0x1UL << 5)
456 #define _CMU_STATUS_AUXHFRCORDY_SHIFT 5
457 #define _CMU_STATUS_AUXHFRCORDY_MASK 0x20UL
458 #define _CMU_STATUS_AUXHFRCORDY_DEFAULT 0x00000000UL
459 #define CMU_STATUS_AUXHFRCORDY_DEFAULT (_CMU_STATUS_AUXHFRCORDY_DEFAULT << 5)
460 #define CMU_STATUS_LFRCOENS (0x1UL << 6)
461 #define _CMU_STATUS_LFRCOENS_SHIFT 6
462 #define _CMU_STATUS_LFRCOENS_MASK 0x40UL
463 #define _CMU_STATUS_LFRCOENS_DEFAULT 0x00000000UL
464 #define CMU_STATUS_LFRCOENS_DEFAULT (_CMU_STATUS_LFRCOENS_DEFAULT << 6)
465 #define CMU_STATUS_LFRCORDY (0x1UL << 7)
466 #define _CMU_STATUS_LFRCORDY_SHIFT 7
467 #define _CMU_STATUS_LFRCORDY_MASK 0x80UL
468 #define _CMU_STATUS_LFRCORDY_DEFAULT 0x00000000UL
469 #define CMU_STATUS_LFRCORDY_DEFAULT (_CMU_STATUS_LFRCORDY_DEFAULT << 7)
470 #define CMU_STATUS_LFXOENS (0x1UL << 8)
471 #define _CMU_STATUS_LFXOENS_SHIFT 8
472 #define _CMU_STATUS_LFXOENS_MASK 0x100UL
473 #define _CMU_STATUS_LFXOENS_DEFAULT 0x00000000UL
474 #define CMU_STATUS_LFXOENS_DEFAULT (_CMU_STATUS_LFXOENS_DEFAULT << 8)
475 #define CMU_STATUS_LFXORDY (0x1UL << 9)
476 #define _CMU_STATUS_LFXORDY_SHIFT 9
477 #define _CMU_STATUS_LFXORDY_MASK 0x200UL
478 #define _CMU_STATUS_LFXORDY_DEFAULT 0x00000000UL
479 #define CMU_STATUS_LFXORDY_DEFAULT (_CMU_STATUS_LFXORDY_DEFAULT << 9)
480 #define CMU_STATUS_HFRCOSEL (0x1UL << 10)
481 #define _CMU_STATUS_HFRCOSEL_SHIFT 10
482 #define _CMU_STATUS_HFRCOSEL_MASK 0x400UL
483 #define _CMU_STATUS_HFRCOSEL_DEFAULT 0x00000001UL
484 #define CMU_STATUS_HFRCOSEL_DEFAULT (_CMU_STATUS_HFRCOSEL_DEFAULT << 10)
485 #define CMU_STATUS_HFXOSEL (0x1UL << 11)
486 #define _CMU_STATUS_HFXOSEL_SHIFT 11
487 #define _CMU_STATUS_HFXOSEL_MASK 0x800UL
488 #define _CMU_STATUS_HFXOSEL_DEFAULT 0x00000000UL
489 #define CMU_STATUS_HFXOSEL_DEFAULT (_CMU_STATUS_HFXOSEL_DEFAULT << 11)
490 #define CMU_STATUS_LFRCOSEL (0x1UL << 12)
491 #define _CMU_STATUS_LFRCOSEL_SHIFT 12
492 #define _CMU_STATUS_LFRCOSEL_MASK 0x1000UL
493 #define _CMU_STATUS_LFRCOSEL_DEFAULT 0x00000000UL
494 #define CMU_STATUS_LFRCOSEL_DEFAULT (_CMU_STATUS_LFRCOSEL_DEFAULT << 12)
495 #define CMU_STATUS_LFXOSEL (0x1UL << 13)
496 #define _CMU_STATUS_LFXOSEL_SHIFT 13
497 #define _CMU_STATUS_LFXOSEL_MASK 0x2000UL
498 #define _CMU_STATUS_LFXOSEL_DEFAULT 0x00000000UL
499 #define CMU_STATUS_LFXOSEL_DEFAULT (_CMU_STATUS_LFXOSEL_DEFAULT << 13)
500 #define CMU_STATUS_CALBSY (0x1UL << 14)
501 #define _CMU_STATUS_CALBSY_SHIFT 14
502 #define _CMU_STATUS_CALBSY_MASK 0x4000UL
503 #define _CMU_STATUS_CALBSY_DEFAULT 0x00000000UL
504 #define CMU_STATUS_CALBSY_DEFAULT (_CMU_STATUS_CALBSY_DEFAULT << 14)
506 /* Bit fields for CMU IF */
507 #define _CMU_IF_RESETVALUE 0x00000001UL
508 #define _CMU_IF_MASK 0x0000003FUL
509 #define CMU_IF_HFRCORDY (0x1UL << 0)
510 #define _CMU_IF_HFRCORDY_SHIFT 0
511 #define _CMU_IF_HFRCORDY_MASK 0x1UL
512 #define _CMU_IF_HFRCORDY_DEFAULT 0x00000001UL
513 #define CMU_IF_HFRCORDY_DEFAULT (_CMU_IF_HFRCORDY_DEFAULT << 0)
514 #define CMU_IF_HFXORDY (0x1UL << 1)
515 #define _CMU_IF_HFXORDY_SHIFT 1
516 #define _CMU_IF_HFXORDY_MASK 0x2UL
517 #define _CMU_IF_HFXORDY_DEFAULT 0x00000000UL
518 #define CMU_IF_HFXORDY_DEFAULT (_CMU_IF_HFXORDY_DEFAULT << 1)
519 #define CMU_IF_LFRCORDY (0x1UL << 2)
520 #define _CMU_IF_LFRCORDY_SHIFT 2
521 #define _CMU_IF_LFRCORDY_MASK 0x4UL
522 #define _CMU_IF_LFRCORDY_DEFAULT 0x00000000UL
523 #define CMU_IF_LFRCORDY_DEFAULT (_CMU_IF_LFRCORDY_DEFAULT << 2)
524 #define CMU_IF_LFXORDY (0x1UL << 3)
525 #define _CMU_IF_LFXORDY_SHIFT 3
526 #define _CMU_IF_LFXORDY_MASK 0x8UL
527 #define _CMU_IF_LFXORDY_DEFAULT 0x00000000UL
528 #define CMU_IF_LFXORDY_DEFAULT (_CMU_IF_LFXORDY_DEFAULT << 3)
529 #define CMU_IF_AUXHFRCORDY (0x1UL << 4)
530 #define _CMU_IF_AUXHFRCORDY_SHIFT 4
531 #define _CMU_IF_AUXHFRCORDY_MASK 0x10UL
532 #define _CMU_IF_AUXHFRCORDY_DEFAULT 0x00000000UL
533 #define CMU_IF_AUXHFRCORDY_DEFAULT (_CMU_IF_AUXHFRCORDY_DEFAULT << 4)
534 #define CMU_IF_CALRDY (0x1UL << 5)
535 #define _CMU_IF_CALRDY_SHIFT 5
536 #define _CMU_IF_CALRDY_MASK 0x20UL
537 #define _CMU_IF_CALRDY_DEFAULT 0x00000000UL
538 #define CMU_IF_CALRDY_DEFAULT (_CMU_IF_CALRDY_DEFAULT << 5)
540 /* Bit fields for CMU IFS */
541 #define _CMU_IFS_RESETVALUE 0x00000000UL
542 #define _CMU_IFS_MASK 0x0000003FUL
543 #define CMU_IFS_HFRCORDY (0x1UL << 0)
544 #define _CMU_IFS_HFRCORDY_SHIFT 0
545 #define _CMU_IFS_HFRCORDY_MASK 0x1UL
546 #define _CMU_IFS_HFRCORDY_DEFAULT 0x00000000UL
547 #define CMU_IFS_HFRCORDY_DEFAULT (_CMU_IFS_HFRCORDY_DEFAULT << 0)
548 #define CMU_IFS_HFXORDY (0x1UL << 1)
549 #define _CMU_IFS_HFXORDY_SHIFT 1
550 #define _CMU_IFS_HFXORDY_MASK 0x2UL
551 #define _CMU_IFS_HFXORDY_DEFAULT 0x00000000UL
552 #define CMU_IFS_HFXORDY_DEFAULT (_CMU_IFS_HFXORDY_DEFAULT << 1)
553 #define CMU_IFS_LFRCORDY (0x1UL << 2)
554 #define _CMU_IFS_LFRCORDY_SHIFT 2
555 #define _CMU_IFS_LFRCORDY_MASK 0x4UL
556 #define _CMU_IFS_LFRCORDY_DEFAULT 0x00000000UL
557 #define CMU_IFS_LFRCORDY_DEFAULT (_CMU_IFS_LFRCORDY_DEFAULT << 2)
558 #define CMU_IFS_LFXORDY (0x1UL << 3)
559 #define _CMU_IFS_LFXORDY_SHIFT 3
560 #define _CMU_IFS_LFXORDY_MASK 0x8UL
561 #define _CMU_IFS_LFXORDY_DEFAULT 0x00000000UL
562 #define CMU_IFS_LFXORDY_DEFAULT (_CMU_IFS_LFXORDY_DEFAULT << 3)
563 #define CMU_IFS_AUXHFRCORDY (0x1UL << 4)
564 #define _CMU_IFS_AUXHFRCORDY_SHIFT 4
565 #define _CMU_IFS_AUXHFRCORDY_MASK 0x10UL
566 #define _CMU_IFS_AUXHFRCORDY_DEFAULT 0x00000000UL
567 #define CMU_IFS_AUXHFRCORDY_DEFAULT (_CMU_IFS_AUXHFRCORDY_DEFAULT << 4)
568 #define CMU_IFS_CALRDY (0x1UL << 5)
569 #define _CMU_IFS_CALRDY_SHIFT 5
570 #define _CMU_IFS_CALRDY_MASK 0x20UL
571 #define _CMU_IFS_CALRDY_DEFAULT 0x00000000UL
572 #define CMU_IFS_CALRDY_DEFAULT (_CMU_IFS_CALRDY_DEFAULT << 5)
574 /* Bit fields for CMU IFC */
575 #define _CMU_IFC_RESETVALUE 0x00000000UL
576 #define _CMU_IFC_MASK 0x0000003FUL
577 #define CMU_IFC_HFRCORDY (0x1UL << 0)
578 #define _CMU_IFC_HFRCORDY_SHIFT 0
579 #define _CMU_IFC_HFRCORDY_MASK 0x1UL
580 #define _CMU_IFC_HFRCORDY_DEFAULT 0x00000000UL
581 #define CMU_IFC_HFRCORDY_DEFAULT (_CMU_IFC_HFRCORDY_DEFAULT << 0)
582 #define CMU_IFC_HFXORDY (0x1UL << 1)
583 #define _CMU_IFC_HFXORDY_SHIFT 1
584 #define _CMU_IFC_HFXORDY_MASK 0x2UL
585 #define _CMU_IFC_HFXORDY_DEFAULT 0x00000000UL
586 #define CMU_IFC_HFXORDY_DEFAULT (_CMU_IFC_HFXORDY_DEFAULT << 1)
587 #define CMU_IFC_LFRCORDY (0x1UL << 2)
588 #define _CMU_IFC_LFRCORDY_SHIFT 2
589 #define _CMU_IFC_LFRCORDY_MASK 0x4UL
590 #define _CMU_IFC_LFRCORDY_DEFAULT 0x00000000UL
591 #define CMU_IFC_LFRCORDY_DEFAULT (_CMU_IFC_LFRCORDY_DEFAULT << 2)
592 #define CMU_IFC_LFXORDY (0x1UL << 3)
593 #define _CMU_IFC_LFXORDY_SHIFT 3
594 #define _CMU_IFC_LFXORDY_MASK 0x8UL
595 #define _CMU_IFC_LFXORDY_DEFAULT 0x00000000UL
596 #define CMU_IFC_LFXORDY_DEFAULT (_CMU_IFC_LFXORDY_DEFAULT << 3)
597 #define CMU_IFC_AUXHFRCORDY (0x1UL << 4)
598 #define _CMU_IFC_AUXHFRCORDY_SHIFT 4
599 #define _CMU_IFC_AUXHFRCORDY_MASK 0x10UL
600 #define _CMU_IFC_AUXHFRCORDY_DEFAULT 0x00000000UL
601 #define CMU_IFC_AUXHFRCORDY_DEFAULT (_CMU_IFC_AUXHFRCORDY_DEFAULT << 4)
602 #define CMU_IFC_CALRDY (0x1UL << 5)
603 #define _CMU_IFC_CALRDY_SHIFT 5
604 #define _CMU_IFC_CALRDY_MASK 0x20UL
605 #define _CMU_IFC_CALRDY_DEFAULT 0x00000000UL
606 #define CMU_IFC_CALRDY_DEFAULT (_CMU_IFC_CALRDY_DEFAULT << 5)
608 /* Bit fields for CMU IEN */
609 #define _CMU_IEN_RESETVALUE 0x00000000UL
610 #define _CMU_IEN_MASK 0x0000003FUL
611 #define CMU_IEN_HFRCORDY (0x1UL << 0)
612 #define _CMU_IEN_HFRCORDY_SHIFT 0
613 #define _CMU_IEN_HFRCORDY_MASK 0x1UL
614 #define _CMU_IEN_HFRCORDY_DEFAULT 0x00000000UL
615 #define CMU_IEN_HFRCORDY_DEFAULT (_CMU_IEN_HFRCORDY_DEFAULT << 0)
616 #define CMU_IEN_HFXORDY (0x1UL << 1)
617 #define _CMU_IEN_HFXORDY_SHIFT 1
618 #define _CMU_IEN_HFXORDY_MASK 0x2UL
619 #define _CMU_IEN_HFXORDY_DEFAULT 0x00000000UL
620 #define CMU_IEN_HFXORDY_DEFAULT (_CMU_IEN_HFXORDY_DEFAULT << 1)
621 #define CMU_IEN_LFRCORDY (0x1UL << 2)
622 #define _CMU_IEN_LFRCORDY_SHIFT 2
623 #define _CMU_IEN_LFRCORDY_MASK 0x4UL
624 #define _CMU_IEN_LFRCORDY_DEFAULT 0x00000000UL
625 #define CMU_IEN_LFRCORDY_DEFAULT (_CMU_IEN_LFRCORDY_DEFAULT << 2)
626 #define CMU_IEN_LFXORDY (0x1UL << 3)
627 #define _CMU_IEN_LFXORDY_SHIFT 3
628 #define _CMU_IEN_LFXORDY_MASK 0x8UL
629 #define _CMU_IEN_LFXORDY_DEFAULT 0x00000000UL
630 #define CMU_IEN_LFXORDY_DEFAULT (_CMU_IEN_LFXORDY_DEFAULT << 3)
631 #define CMU_IEN_AUXHFRCORDY (0x1UL << 4)
632 #define _CMU_IEN_AUXHFRCORDY_SHIFT 4
633 #define _CMU_IEN_AUXHFRCORDY_MASK 0x10UL
634 #define _CMU_IEN_AUXHFRCORDY_DEFAULT 0x00000000UL
635 #define CMU_IEN_AUXHFRCORDY_DEFAULT (_CMU_IEN_AUXHFRCORDY_DEFAULT << 4)
636 #define CMU_IEN_CALRDY (0x1UL << 5)
637 #define _CMU_IEN_CALRDY_SHIFT 5
638 #define _CMU_IEN_CALRDY_MASK 0x20UL
639 #define _CMU_IEN_CALRDY_DEFAULT 0x00000000UL
640 #define CMU_IEN_CALRDY_DEFAULT (_CMU_IEN_CALRDY_DEFAULT << 5)
642 /* Bit fields for CMU HFCORECLKEN0 */
643 #define _CMU_HFCORECLKEN0_RESETVALUE 0x00000000UL
644 #define _CMU_HFCORECLKEN0_MASK 0x0000000FUL
645 #define CMU_HFCORECLKEN0_AES (0x1UL << 0)
646 #define _CMU_HFCORECLKEN0_AES_SHIFT 0
647 #define _CMU_HFCORECLKEN0_AES_MASK 0x1UL
648 #define _CMU_HFCORECLKEN0_AES_DEFAULT 0x00000000UL
649 #define CMU_HFCORECLKEN0_AES_DEFAULT (_CMU_HFCORECLKEN0_AES_DEFAULT << 0)
650 #define CMU_HFCORECLKEN0_DMA (0x1UL << 1)
651 #define _CMU_HFCORECLKEN0_DMA_SHIFT 1
652 #define _CMU_HFCORECLKEN0_DMA_MASK 0x2UL
653 #define _CMU_HFCORECLKEN0_DMA_DEFAULT 0x00000000UL
654 #define CMU_HFCORECLKEN0_DMA_DEFAULT (_CMU_HFCORECLKEN0_DMA_DEFAULT << 1)
655 #define CMU_HFCORECLKEN0_LE (0x1UL << 2)
656 #define _CMU_HFCORECLKEN0_LE_SHIFT 2
657 #define _CMU_HFCORECLKEN0_LE_MASK 0x4UL
658 #define _CMU_HFCORECLKEN0_LE_DEFAULT 0x00000000UL
659 #define CMU_HFCORECLKEN0_LE_DEFAULT (_CMU_HFCORECLKEN0_LE_DEFAULT << 2)
660 #define CMU_HFCORECLKEN0_EBI (0x1UL << 3)
661 #define _CMU_HFCORECLKEN0_EBI_SHIFT 3
662 #define _CMU_HFCORECLKEN0_EBI_MASK 0x8UL
663 #define _CMU_HFCORECLKEN0_EBI_DEFAULT 0x00000000UL
664 #define CMU_HFCORECLKEN0_EBI_DEFAULT (_CMU_HFCORECLKEN0_EBI_DEFAULT << 3)
666 /* Bit fields for CMU HFPERCLKEN0 */
667 #define _CMU_HFPERCLKEN0_RESETVALUE 0x00000000UL
668 #define _CMU_HFPERCLKEN0_MASK 0x0000FDFFUL
669 #define CMU_HFPERCLKEN0_USART0 (0x1UL << 0)
670 #define _CMU_HFPERCLKEN0_USART0_SHIFT 0
671 #define _CMU_HFPERCLKEN0_USART0_MASK 0x1UL
672 #define _CMU_HFPERCLKEN0_USART0_DEFAULT 0x00000000UL
673 #define CMU_HFPERCLKEN0_USART0_DEFAULT (_CMU_HFPERCLKEN0_USART0_DEFAULT << 0)
674 #define CMU_HFPERCLKEN0_USART1 (0x1UL << 1)
675 #define _CMU_HFPERCLKEN0_USART1_SHIFT 1
676 #define _CMU_HFPERCLKEN0_USART1_MASK 0x2UL
677 #define _CMU_HFPERCLKEN0_USART1_DEFAULT 0x00000000UL
678 #define CMU_HFPERCLKEN0_USART1_DEFAULT (_CMU_HFPERCLKEN0_USART1_DEFAULT << 1)
679 #define CMU_HFPERCLKEN0_USART2 (0x1UL << 2)
680 #define _CMU_HFPERCLKEN0_USART2_SHIFT 2
681 #define _CMU_HFPERCLKEN0_USART2_MASK 0x4UL
682 #define _CMU_HFPERCLKEN0_USART2_DEFAULT 0x00000000UL
683 #define CMU_HFPERCLKEN0_USART2_DEFAULT (_CMU_HFPERCLKEN0_USART2_DEFAULT << 2)
684 #define CMU_HFPERCLKEN0_UART0 (0x1UL << 3)
685 #define _CMU_HFPERCLKEN0_UART0_SHIFT 3
686 #define _CMU_HFPERCLKEN0_UART0_MASK 0x8UL
687 #define _CMU_HFPERCLKEN0_UART0_DEFAULT 0x00000000UL
688 #define CMU_HFPERCLKEN0_UART0_DEFAULT (_CMU_HFPERCLKEN0_UART0_DEFAULT << 3)
689 #define CMU_HFPERCLKEN0_TIMER0 (0x1UL << 4)
690 #define _CMU_HFPERCLKEN0_TIMER0_SHIFT 4
691 #define _CMU_HFPERCLKEN0_TIMER0_MASK 0x10UL
692 #define _CMU_HFPERCLKEN0_TIMER0_DEFAULT 0x00000000UL
693 #define CMU_HFPERCLKEN0_TIMER0_DEFAULT (_CMU_HFPERCLKEN0_TIMER0_DEFAULT << 4)
694 #define CMU_HFPERCLKEN0_TIMER1 (0x1UL << 5)
695 #define _CMU_HFPERCLKEN0_TIMER1_SHIFT 5
696 #define _CMU_HFPERCLKEN0_TIMER1_MASK 0x20UL
697 #define _CMU_HFPERCLKEN0_TIMER1_DEFAULT 0x00000000UL
698 #define CMU_HFPERCLKEN0_TIMER1_DEFAULT (_CMU_HFPERCLKEN0_TIMER1_DEFAULT << 5)
699 #define CMU_HFPERCLKEN0_TIMER2 (0x1UL << 6)
700 #define _CMU_HFPERCLKEN0_TIMER2_SHIFT 6
701 #define _CMU_HFPERCLKEN0_TIMER2_MASK 0x40UL
702 #define _CMU_HFPERCLKEN0_TIMER2_DEFAULT 0x00000000UL
703 #define CMU_HFPERCLKEN0_TIMER2_DEFAULT (_CMU_HFPERCLKEN0_TIMER2_DEFAULT << 6)
704 #define CMU_HFPERCLKEN0_ACMP0 (0x1UL << 7)
705 #define _CMU_HFPERCLKEN0_ACMP0_SHIFT 7
706 #define _CMU_HFPERCLKEN0_ACMP0_MASK 0x80UL
707 #define _CMU_HFPERCLKEN0_ACMP0_DEFAULT 0x00000000UL
708 #define CMU_HFPERCLKEN0_ACMP0_DEFAULT (_CMU_HFPERCLKEN0_ACMP0_DEFAULT << 7)
709 #define CMU_HFPERCLKEN0_ACMP1 (0x1UL << 8)
710 #define _CMU_HFPERCLKEN0_ACMP1_SHIFT 8
711 #define _CMU_HFPERCLKEN0_ACMP1_MASK 0x100UL
712 #define _CMU_HFPERCLKEN0_ACMP1_DEFAULT 0x00000000UL
713 #define CMU_HFPERCLKEN0_ACMP1_DEFAULT (_CMU_HFPERCLKEN0_ACMP1_DEFAULT << 8)
714 #define CMU_HFPERCLKEN0_PRS (0x1UL << 10)
715 #define _CMU_HFPERCLKEN0_PRS_SHIFT 10
716 #define _CMU_HFPERCLKEN0_PRS_MASK 0x400UL
717 #define _CMU_HFPERCLKEN0_PRS_DEFAULT 0x00000000UL
718 #define CMU_HFPERCLKEN0_PRS_DEFAULT (_CMU_HFPERCLKEN0_PRS_DEFAULT << 10)
719 #define CMU_HFPERCLKEN0_DAC0 (0x1UL << 11)
720 #define _CMU_HFPERCLKEN0_DAC0_SHIFT 11
721 #define _CMU_HFPERCLKEN0_DAC0_MASK 0x800UL
722 #define _CMU_HFPERCLKEN0_DAC0_DEFAULT 0x00000000UL
723 #define CMU_HFPERCLKEN0_DAC0_DEFAULT (_CMU_HFPERCLKEN0_DAC0_DEFAULT << 11)
724 #define CMU_HFPERCLKEN0_GPIO (0x1UL << 12)
725 #define _CMU_HFPERCLKEN0_GPIO_SHIFT 12
726 #define _CMU_HFPERCLKEN0_GPIO_MASK 0x1000UL
727 #define _CMU_HFPERCLKEN0_GPIO_DEFAULT 0x00000000UL
728 #define CMU_HFPERCLKEN0_GPIO_DEFAULT (_CMU_HFPERCLKEN0_GPIO_DEFAULT << 12)
729 #define CMU_HFPERCLKEN0_VCMP (0x1UL << 13)
730 #define _CMU_HFPERCLKEN0_VCMP_SHIFT 13
731 #define _CMU_HFPERCLKEN0_VCMP_MASK 0x2000UL
732 #define _CMU_HFPERCLKEN0_VCMP_DEFAULT 0x00000000UL
733 #define CMU_HFPERCLKEN0_VCMP_DEFAULT (_CMU_HFPERCLKEN0_VCMP_DEFAULT << 13)
734 #define CMU_HFPERCLKEN0_ADC0 (0x1UL << 14)
735 #define _CMU_HFPERCLKEN0_ADC0_SHIFT 14
736 #define _CMU_HFPERCLKEN0_ADC0_MASK 0x4000UL
737 #define _CMU_HFPERCLKEN0_ADC0_DEFAULT 0x00000000UL
738 #define CMU_HFPERCLKEN0_ADC0_DEFAULT (_CMU_HFPERCLKEN0_ADC0_DEFAULT << 14)
739 #define CMU_HFPERCLKEN0_I2C0 (0x1UL << 15)
740 #define _CMU_HFPERCLKEN0_I2C0_SHIFT 15
741 #define _CMU_HFPERCLKEN0_I2C0_MASK 0x8000UL
742 #define _CMU_HFPERCLKEN0_I2C0_DEFAULT 0x00000000UL
743 #define CMU_HFPERCLKEN0_I2C0_DEFAULT (_CMU_HFPERCLKEN0_I2C0_DEFAULT << 15)
745 /* Bit fields for CMU SYNCBUSY */
746 #define _CMU_SYNCBUSY_RESETVALUE 0x00000000UL
747 #define _CMU_SYNCBUSY_MASK 0x00000055UL
748 #define CMU_SYNCBUSY_LFACLKEN0 (0x1UL << 0)
749 #define _CMU_SYNCBUSY_LFACLKEN0_SHIFT 0
750 #define _CMU_SYNCBUSY_LFACLKEN0_MASK 0x1UL
751 #define _CMU_SYNCBUSY_LFACLKEN0_DEFAULT 0x00000000UL
752 #define CMU_SYNCBUSY_LFACLKEN0_DEFAULT (_CMU_SYNCBUSY_LFACLKEN0_DEFAULT << 0)
753 #define CMU_SYNCBUSY_LFAPRESC0 (0x1UL << 2)
754 #define _CMU_SYNCBUSY_LFAPRESC0_SHIFT 2
755 #define _CMU_SYNCBUSY_LFAPRESC0_MASK 0x4UL
756 #define _CMU_SYNCBUSY_LFAPRESC0_DEFAULT 0x00000000UL
757 #define CMU_SYNCBUSY_LFAPRESC0_DEFAULT (_CMU_SYNCBUSY_LFAPRESC0_DEFAULT << 2)
758 #define CMU_SYNCBUSY_LFBCLKEN0 (0x1UL << 4)
759 #define _CMU_SYNCBUSY_LFBCLKEN0_SHIFT 4
760 #define _CMU_SYNCBUSY_LFBCLKEN0_MASK 0x10UL
761 #define _CMU_SYNCBUSY_LFBCLKEN0_DEFAULT 0x00000000UL
762 #define CMU_SYNCBUSY_LFBCLKEN0_DEFAULT (_CMU_SYNCBUSY_LFBCLKEN0_DEFAULT << 4)
763 #define CMU_SYNCBUSY_LFBPRESC0 (0x1UL << 6)
764 #define _CMU_SYNCBUSY_LFBPRESC0_SHIFT 6
765 #define _CMU_SYNCBUSY_LFBPRESC0_MASK 0x40UL
766 #define _CMU_SYNCBUSY_LFBPRESC0_DEFAULT 0x00000000UL
767 #define CMU_SYNCBUSY_LFBPRESC0_DEFAULT (_CMU_SYNCBUSY_LFBPRESC0_DEFAULT << 6)
769 /* Bit fields for CMU FREEZE */
770 #define _CMU_FREEZE_RESETVALUE 0x00000000UL
771 #define _CMU_FREEZE_MASK 0x00000001UL
772 #define CMU_FREEZE_REGFREEZE (0x1UL << 0)
773 #define _CMU_FREEZE_REGFREEZE_SHIFT 0
774 #define _CMU_FREEZE_REGFREEZE_MASK 0x1UL
775 #define _CMU_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
776 #define _CMU_FREEZE_REGFREEZE_UPDATE 0x00000000UL
777 #define _CMU_FREEZE_REGFREEZE_FREEZE 0x00000001UL
778 #define CMU_FREEZE_REGFREEZE_DEFAULT (_CMU_FREEZE_REGFREEZE_DEFAULT << 0)
779 #define CMU_FREEZE_REGFREEZE_UPDATE (_CMU_FREEZE_REGFREEZE_UPDATE << 0)
780 #define CMU_FREEZE_REGFREEZE_FREEZE (_CMU_FREEZE_REGFREEZE_FREEZE << 0)
782 /* Bit fields for CMU LFACLKEN0 */
783 #define _CMU_LFACLKEN0_RESETVALUE 0x00000000UL
784 #define _CMU_LFACLKEN0_MASK 0x00000007UL
785 #define CMU_LFACLKEN0_RTC (0x1UL << 0)
786 #define _CMU_LFACLKEN0_RTC_SHIFT 0
787 #define _CMU_LFACLKEN0_RTC_MASK 0x1UL
788 #define _CMU_LFACLKEN0_RTC_DEFAULT 0x00000000UL
789 #define CMU_LFACLKEN0_RTC_DEFAULT (_CMU_LFACLKEN0_RTC_DEFAULT << 0)
790 #define CMU_LFACLKEN0_LETIMER0 (0x1UL << 1)
791 #define _CMU_LFACLKEN0_LETIMER0_SHIFT 1
792 #define _CMU_LFACLKEN0_LETIMER0_MASK 0x2UL
793 #define _CMU_LFACLKEN0_LETIMER0_DEFAULT 0x00000000UL
794 #define CMU_LFACLKEN0_LETIMER0_DEFAULT (_CMU_LFACLKEN0_LETIMER0_DEFAULT << 1)
795 #define CMU_LFACLKEN0_LCD (0x1UL << 2)
796 #define _CMU_LFACLKEN0_LCD_SHIFT 2
797 #define _CMU_LFACLKEN0_LCD_MASK 0x4UL
798 #define _CMU_LFACLKEN0_LCD_DEFAULT 0x00000000UL
799 #define CMU_LFACLKEN0_LCD_DEFAULT (_CMU_LFACLKEN0_LCD_DEFAULT << 2)
801 /* Bit fields for CMU LFBCLKEN0 */
802 #define _CMU_LFBCLKEN0_RESETVALUE 0x00000000UL
803 #define _CMU_LFBCLKEN0_MASK 0x00000003UL
804 #define CMU_LFBCLKEN0_LEUART0 (0x1UL << 0)
805 #define _CMU_LFBCLKEN0_LEUART0_SHIFT 0
806 #define _CMU_LFBCLKEN0_LEUART0_MASK 0x1UL
807 #define _CMU_LFBCLKEN0_LEUART0_DEFAULT 0x00000000UL
808 #define CMU_LFBCLKEN0_LEUART0_DEFAULT (_CMU_LFBCLKEN0_LEUART0_DEFAULT << 0)
809 #define CMU_LFBCLKEN0_LEUART1 (0x1UL << 1)
810 #define _CMU_LFBCLKEN0_LEUART1_SHIFT 1
811 #define _CMU_LFBCLKEN0_LEUART1_MASK 0x2UL
812 #define _CMU_LFBCLKEN0_LEUART1_DEFAULT 0x00000000UL
813 #define CMU_LFBCLKEN0_LEUART1_DEFAULT (_CMU_LFBCLKEN0_LEUART1_DEFAULT << 1)
815 /* Bit fields for CMU LFAPRESC0 */
816 #define _CMU_LFAPRESC0_RESETVALUE 0x00000000UL
817 #define _CMU_LFAPRESC0_MASK 0x000003FFUL
818 #define _CMU_LFAPRESC0_RTC_SHIFT 0
819 #define _CMU_LFAPRESC0_RTC_MASK 0xFUL
820 #define _CMU_LFAPRESC0_RTC_DIV1 0x00000000UL
821 #define _CMU_LFAPRESC0_RTC_DIV2 0x00000001UL
822 #define _CMU_LFAPRESC0_RTC_DIV4 0x00000002UL
823 #define _CMU_LFAPRESC0_RTC_DIV8 0x00000003UL
824 #define _CMU_LFAPRESC0_RTC_DIV16 0x00000004UL
825 #define _CMU_LFAPRESC0_RTC_DIV32 0x00000005UL
826 #define _CMU_LFAPRESC0_RTC_DIV64 0x00000006UL
827 #define _CMU_LFAPRESC0_RTC_DIV128 0x00000007UL
828 #define _CMU_LFAPRESC0_RTC_DIV256 0x00000008UL
829 #define _CMU_LFAPRESC0_RTC_DIV512 0x00000009UL
830 #define _CMU_LFAPRESC0_RTC_DIV1024 0x0000000AUL
831 #define _CMU_LFAPRESC0_RTC_DIV2048 0x0000000BUL
832 #define _CMU_LFAPRESC0_RTC_DIV4096 0x0000000CUL
833 #define _CMU_LFAPRESC0_RTC_DIV8192 0x0000000DUL
834 #define _CMU_LFAPRESC0_RTC_DIV16384 0x0000000EUL
835 #define _CMU_LFAPRESC0_RTC_DIV32768 0x0000000FUL
836 #define CMU_LFAPRESC0_RTC_DIV1 (_CMU_LFAPRESC0_RTC_DIV1 << 0)
837 #define CMU_LFAPRESC0_RTC_DIV2 (_CMU_LFAPRESC0_RTC_DIV2 << 0)
838 #define CMU_LFAPRESC0_RTC_DIV4 (_CMU_LFAPRESC0_RTC_DIV4 << 0)
839 #define CMU_LFAPRESC0_RTC_DIV8 (_CMU_LFAPRESC0_RTC_DIV8 << 0)
840 #define CMU_LFAPRESC0_RTC_DIV16 (_CMU_LFAPRESC0_RTC_DIV16 << 0)
841 #define CMU_LFAPRESC0_RTC_DIV32 (_CMU_LFAPRESC0_RTC_DIV32 << 0)
842 #define CMU_LFAPRESC0_RTC_DIV64 (_CMU_LFAPRESC0_RTC_DIV64 << 0)
843 #define CMU_LFAPRESC0_RTC_DIV128 (_CMU_LFAPRESC0_RTC_DIV128 << 0)
844 #define CMU_LFAPRESC0_RTC_DIV256 (_CMU_LFAPRESC0_RTC_DIV256 << 0)
845 #define CMU_LFAPRESC0_RTC_DIV512 (_CMU_LFAPRESC0_RTC_DIV512 << 0)
846 #define CMU_LFAPRESC0_RTC_DIV1024 (_CMU_LFAPRESC0_RTC_DIV1024 << 0)
847 #define CMU_LFAPRESC0_RTC_DIV2048 (_CMU_LFAPRESC0_RTC_DIV2048 << 0)
848 #define CMU_LFAPRESC0_RTC_DIV4096 (_CMU_LFAPRESC0_RTC_DIV4096 << 0)
849 #define CMU_LFAPRESC0_RTC_DIV8192 (_CMU_LFAPRESC0_RTC_DIV8192 << 0)
850 #define CMU_LFAPRESC0_RTC_DIV16384 (_CMU_LFAPRESC0_RTC_DIV16384 << 0)
851 #define CMU_LFAPRESC0_RTC_DIV32768 (_CMU_LFAPRESC0_RTC_DIV32768 << 0)
852 #define _CMU_LFAPRESC0_LETIMER0_SHIFT 4
853 #define _CMU_LFAPRESC0_LETIMER0_MASK 0xF0UL
854 #define _CMU_LFAPRESC0_LETIMER0_DIV1 0x00000000UL
855 #define _CMU_LFAPRESC0_LETIMER0_DIV2 0x00000001UL
856 #define _CMU_LFAPRESC0_LETIMER0_DIV4 0x00000002UL
857 #define _CMU_LFAPRESC0_LETIMER0_DIV8 0x00000003UL
858 #define _CMU_LFAPRESC0_LETIMER0_DIV16 0x00000004UL
859 #define _CMU_LFAPRESC0_LETIMER0_DIV32 0x00000005UL
860 #define _CMU_LFAPRESC0_LETIMER0_DIV64 0x00000006UL
861 #define _CMU_LFAPRESC0_LETIMER0_DIV128 0x00000007UL
862 #define _CMU_LFAPRESC0_LETIMER0_DIV256 0x00000008UL
863 #define _CMU_LFAPRESC0_LETIMER0_DIV512 0x00000009UL
864 #define _CMU_LFAPRESC0_LETIMER0_DIV1024 0x0000000AUL
865 #define _CMU_LFAPRESC0_LETIMER0_DIV2048 0x0000000BUL
866 #define _CMU_LFAPRESC0_LETIMER0_DIV4096 0x0000000CUL
867 #define _CMU_LFAPRESC0_LETIMER0_DIV8192 0x0000000DUL
868 #define _CMU_LFAPRESC0_LETIMER0_DIV16384 0x0000000EUL
869 #define _CMU_LFAPRESC0_LETIMER0_DIV32768 0x0000000FUL
870 #define CMU_LFAPRESC0_LETIMER0_DIV1 (_CMU_LFAPRESC0_LETIMER0_DIV1 << 4)
871 #define CMU_LFAPRESC0_LETIMER0_DIV2 (_CMU_LFAPRESC0_LETIMER0_DIV2 << 4)
872 #define CMU_LFAPRESC0_LETIMER0_DIV4 (_CMU_LFAPRESC0_LETIMER0_DIV4 << 4)
873 #define CMU_LFAPRESC0_LETIMER0_DIV8 (_CMU_LFAPRESC0_LETIMER0_DIV8 << 4)
874 #define CMU_LFAPRESC0_LETIMER0_DIV16 (_CMU_LFAPRESC0_LETIMER0_DIV16 << 4)
875 #define CMU_LFAPRESC0_LETIMER0_DIV32 (_CMU_LFAPRESC0_LETIMER0_DIV32 << 4)
876 #define CMU_LFAPRESC0_LETIMER0_DIV64 (_CMU_LFAPRESC0_LETIMER0_DIV64 << 4)
877 #define CMU_LFAPRESC0_LETIMER0_DIV128 (_CMU_LFAPRESC0_LETIMER0_DIV128 << 4)
878 #define CMU_LFAPRESC0_LETIMER0_DIV256 (_CMU_LFAPRESC0_LETIMER0_DIV256 << 4)
879 #define CMU_LFAPRESC0_LETIMER0_DIV512 (_CMU_LFAPRESC0_LETIMER0_DIV512 << 4)
880 #define CMU_LFAPRESC0_LETIMER0_DIV1024 (_CMU_LFAPRESC0_LETIMER0_DIV1024 << 4)
881 #define CMU_LFAPRESC0_LETIMER0_DIV2048 (_CMU_LFAPRESC0_LETIMER0_DIV2048 << 4)
882 #define CMU_LFAPRESC0_LETIMER0_DIV4096 (_CMU_LFAPRESC0_LETIMER0_DIV4096 << 4)
883 #define CMU_LFAPRESC0_LETIMER0_DIV8192 (_CMU_LFAPRESC0_LETIMER0_DIV8192 << 4)
884 #define CMU_LFAPRESC0_LETIMER0_DIV16384 (_CMU_LFAPRESC0_LETIMER0_DIV16384 << 4)
885 #define CMU_LFAPRESC0_LETIMER0_DIV32768 (_CMU_LFAPRESC0_LETIMER0_DIV32768 << 4)
886 #define _CMU_LFAPRESC0_LCD_SHIFT 8
887 #define _CMU_LFAPRESC0_LCD_MASK 0x300UL
888 #define _CMU_LFAPRESC0_LCD_DIV16 0x00000000UL
889 #define _CMU_LFAPRESC0_LCD_DIV32 0x00000001UL
890 #define _CMU_LFAPRESC0_LCD_DIV64 0x00000002UL
891 #define _CMU_LFAPRESC0_LCD_DIV128 0x00000003UL
892 #define CMU_LFAPRESC0_LCD_DIV16 (_CMU_LFAPRESC0_LCD_DIV16 << 8)
893 #define CMU_LFAPRESC0_LCD_DIV32 (_CMU_LFAPRESC0_LCD_DIV32 << 8)
894 #define CMU_LFAPRESC0_LCD_DIV64 (_CMU_LFAPRESC0_LCD_DIV64 << 8)
895 #define CMU_LFAPRESC0_LCD_DIV128 (_CMU_LFAPRESC0_LCD_DIV128 << 8)
897 /* Bit fields for CMU LFBPRESC0 */
898 #define _CMU_LFBPRESC0_RESETVALUE 0x00000000UL
899 #define _CMU_LFBPRESC0_MASK 0x00000033UL
900 #define _CMU_LFBPRESC0_LEUART0_SHIFT 0
901 #define _CMU_LFBPRESC0_LEUART0_MASK 0x3UL
902 #define _CMU_LFBPRESC0_LEUART0_DIV1 0x00000000UL
903 #define _CMU_LFBPRESC0_LEUART0_DIV2 0x00000001UL
904 #define _CMU_LFBPRESC0_LEUART0_DIV4 0x00000002UL
905 #define _CMU_LFBPRESC0_LEUART0_DIV8 0x00000003UL
906 #define CMU_LFBPRESC0_LEUART0_DIV1 (_CMU_LFBPRESC0_LEUART0_DIV1 << 0)
907 #define CMU_LFBPRESC0_LEUART0_DIV2 (_CMU_LFBPRESC0_LEUART0_DIV2 << 0)
908 #define CMU_LFBPRESC0_LEUART0_DIV4 (_CMU_LFBPRESC0_LEUART0_DIV4 << 0)
909 #define CMU_LFBPRESC0_LEUART0_DIV8 (_CMU_LFBPRESC0_LEUART0_DIV8 << 0)
910 #define _CMU_LFBPRESC0_LEUART1_SHIFT 4
911 #define _CMU_LFBPRESC0_LEUART1_MASK 0x30UL
912 #define _CMU_LFBPRESC0_LEUART1_DIV1 0x00000000UL
913 #define _CMU_LFBPRESC0_LEUART1_DIV2 0x00000001UL
914 #define _CMU_LFBPRESC0_LEUART1_DIV4 0x00000002UL
915 #define _CMU_LFBPRESC0_LEUART1_DIV8 0x00000003UL
916 #define CMU_LFBPRESC0_LEUART1_DIV1 (_CMU_LFBPRESC0_LEUART1_DIV1 << 4)
917 #define CMU_LFBPRESC0_LEUART1_DIV2 (_CMU_LFBPRESC0_LEUART1_DIV2 << 4)
918 #define CMU_LFBPRESC0_LEUART1_DIV4 (_CMU_LFBPRESC0_LEUART1_DIV4 << 4)
919 #define CMU_LFBPRESC0_LEUART1_DIV8 (_CMU_LFBPRESC0_LEUART1_DIV8 << 4)
921 /* Bit fields for CMU PCNTCTRL */
922 #define _CMU_PCNTCTRL_RESETVALUE 0x00000000UL
923 #define _CMU_PCNTCTRL_MASK 0x0000003FUL
924 #define CMU_PCNTCTRL_PCNT0CLKEN (0x1UL << 0)
925 #define _CMU_PCNTCTRL_PCNT0CLKEN_SHIFT 0
926 #define _CMU_PCNTCTRL_PCNT0CLKEN_MASK 0x1UL
927 #define _CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT 0x00000000UL
928 #define CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT (_CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT << 0)
929 #define CMU_PCNTCTRL_PCNT0CLKSEL (0x1UL << 1)
930 #define _CMU_PCNTCTRL_PCNT0CLKSEL_SHIFT 1
931 #define _CMU_PCNTCTRL_PCNT0CLKSEL_MASK 0x2UL
932 #define _CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT 0x00000000UL
933 #define _CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK 0x00000000UL
934 #define _CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 0x00000001UL
935 #define CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT (_CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT << 1)
936 #define CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK (_CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK << 1)
937 #define CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 (_CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 << 1)
938 #define CMU_PCNTCTRL_PCNT1CLKEN (0x1UL << 2)
939 #define _CMU_PCNTCTRL_PCNT1CLKEN_SHIFT 2
940 #define _CMU_PCNTCTRL_PCNT1CLKEN_MASK 0x4UL
941 #define _CMU_PCNTCTRL_PCNT1CLKEN_DEFAULT 0x00000000UL
942 #define CMU_PCNTCTRL_PCNT1CLKEN_DEFAULT (_CMU_PCNTCTRL_PCNT1CLKEN_DEFAULT << 2)
943 #define CMU_PCNTCTRL_PCNT1CLKSEL (0x1UL << 3)
944 #define _CMU_PCNTCTRL_PCNT1CLKSEL_SHIFT 3
945 #define _CMU_PCNTCTRL_PCNT1CLKSEL_MASK 0x8UL
946 #define _CMU_PCNTCTRL_PCNT1CLKSEL_DEFAULT 0x00000000UL
947 #define _CMU_PCNTCTRL_PCNT1CLKSEL_LFACLK 0x00000000UL
948 #define _CMU_PCNTCTRL_PCNT1CLKSEL_PCNT1S0 0x00000001UL
949 #define CMU_PCNTCTRL_PCNT1CLKSEL_DEFAULT (_CMU_PCNTCTRL_PCNT1CLKSEL_DEFAULT << 3)
950 #define CMU_PCNTCTRL_PCNT1CLKSEL_LFACLK (_CMU_PCNTCTRL_PCNT1CLKSEL_LFACLK << 3)
951 #define CMU_PCNTCTRL_PCNT1CLKSEL_PCNT1S0 (_CMU_PCNTCTRL_PCNT1CLKSEL_PCNT1S0 << 3)
952 #define CMU_PCNTCTRL_PCNT2CLKEN (0x1UL << 4)
953 #define _CMU_PCNTCTRL_PCNT2CLKEN_SHIFT 4
954 #define _CMU_PCNTCTRL_PCNT2CLKEN_MASK 0x10UL
955 #define _CMU_PCNTCTRL_PCNT2CLKEN_DEFAULT 0x00000000UL
956 #define CMU_PCNTCTRL_PCNT2CLKEN_DEFAULT (_CMU_PCNTCTRL_PCNT2CLKEN_DEFAULT << 4)
957 #define CMU_PCNTCTRL_PCNT2CLKSEL (0x1UL << 5)
958 #define _CMU_PCNTCTRL_PCNT2CLKSEL_SHIFT 5
959 #define _CMU_PCNTCTRL_PCNT2CLKSEL_MASK 0x20UL
960 #define _CMU_PCNTCTRL_PCNT2CLKSEL_DEFAULT 0x00000000UL
961 #define _CMU_PCNTCTRL_PCNT2CLKSEL_LFACLK 0x00000000UL
962 #define _CMU_PCNTCTRL_PCNT2CLKSEL_PCNT2S0 0x00000001UL
963 #define CMU_PCNTCTRL_PCNT2CLKSEL_DEFAULT (_CMU_PCNTCTRL_PCNT2CLKSEL_DEFAULT << 5)
964 #define CMU_PCNTCTRL_PCNT2CLKSEL_LFACLK (_CMU_PCNTCTRL_PCNT2CLKSEL_LFACLK << 5)
965 #define CMU_PCNTCTRL_PCNT2CLKSEL_PCNT2S0 (_CMU_PCNTCTRL_PCNT2CLKSEL_PCNT2S0 << 5)
967 /* Bit fields for CMU LCDCTRL */
968 #define _CMU_LCDCTRL_RESETVALUE 0x00000020UL
969 #define _CMU_LCDCTRL_MASK 0x0000007FUL
970 #define _CMU_LCDCTRL_FDIV_SHIFT 0
971 #define _CMU_LCDCTRL_FDIV_MASK 0x7UL
972 #define _CMU_LCDCTRL_FDIV_DEFAULT 0x00000000UL
973 #define CMU_LCDCTRL_FDIV_DEFAULT (_CMU_LCDCTRL_FDIV_DEFAULT << 0)
974 #define CMU_LCDCTRL_VBOOSTEN (0x1UL << 3)
975 #define _CMU_LCDCTRL_VBOOSTEN_SHIFT 3
976 #define _CMU_LCDCTRL_VBOOSTEN_MASK 0x8UL
977 #define _CMU_LCDCTRL_VBOOSTEN_DEFAULT 0x00000000UL
978 #define CMU_LCDCTRL_VBOOSTEN_DEFAULT (_CMU_LCDCTRL_VBOOSTEN_DEFAULT << 3)
979 #define _CMU_LCDCTRL_VBFDIV_SHIFT 4
980 #define _CMU_LCDCTRL_VBFDIV_MASK 0x70UL
981 #define _CMU_LCDCTRL_VBFDIV_DIV1 0x00000000UL
982 #define _CMU_LCDCTRL_VBFDIV_DIV2 0x00000001UL
983 #define _CMU_LCDCTRL_VBFDIV_DEFAULT 0x00000002UL
984 #define _CMU_LCDCTRL_VBFDIV_DIV4 0x00000002UL
985 #define _CMU_LCDCTRL_VBFDIV_DIV8 0x00000003UL
986 #define _CMU_LCDCTRL_VBFDIV_DIV16 0x00000004UL
987 #define _CMU_LCDCTRL_VBFDIV_DIV32 0x00000005UL
988 #define _CMU_LCDCTRL_VBFDIV_DIV64 0x00000006UL
989 #define _CMU_LCDCTRL_VBFDIV_DIV128 0x00000007UL
990 #define CMU_LCDCTRL_VBFDIV_DIV1 (_CMU_LCDCTRL_VBFDIV_DIV1 << 4)
991 #define CMU_LCDCTRL_VBFDIV_DIV2 (_CMU_LCDCTRL_VBFDIV_DIV2 << 4)
992 #define CMU_LCDCTRL_VBFDIV_DEFAULT (_CMU_LCDCTRL_VBFDIV_DEFAULT << 4)
993 #define CMU_LCDCTRL_VBFDIV_DIV4 (_CMU_LCDCTRL_VBFDIV_DIV4 << 4)
994 #define CMU_LCDCTRL_VBFDIV_DIV8 (_CMU_LCDCTRL_VBFDIV_DIV8 << 4)
995 #define CMU_LCDCTRL_VBFDIV_DIV16 (_CMU_LCDCTRL_VBFDIV_DIV16 << 4)
996 #define CMU_LCDCTRL_VBFDIV_DIV32 (_CMU_LCDCTRL_VBFDIV_DIV32 << 4)
997 #define CMU_LCDCTRL_VBFDIV_DIV64 (_CMU_LCDCTRL_VBFDIV_DIV64 << 4)
998 #define CMU_LCDCTRL_VBFDIV_DIV128 (_CMU_LCDCTRL_VBFDIV_DIV128 << 4)
1000 /* Bit fields for CMU ROUTE */
1001 #define _CMU_ROUTE_RESETVALUE 0x00000000UL
1002 #define _CMU_ROUTE_MASK 0x00000007UL
1003 #define CMU_ROUTE_CLKOUT0PEN (0x1UL << 0)
1004 #define _CMU_ROUTE_CLKOUT0PEN_SHIFT 0
1005 #define _CMU_ROUTE_CLKOUT0PEN_MASK 0x1UL
1006 #define _CMU_ROUTE_CLKOUT0PEN_DEFAULT 0x00000000UL
1007 #define CMU_ROUTE_CLKOUT0PEN_DEFAULT (_CMU_ROUTE_CLKOUT0PEN_DEFAULT << 0)
1008 #define CMU_ROUTE_CLKOUT1PEN (0x1UL << 1)
1009 #define _CMU_ROUTE_CLKOUT1PEN_SHIFT 1
1010 #define _CMU_ROUTE_CLKOUT1PEN_MASK 0x2UL
1011 #define _CMU_ROUTE_CLKOUT1PEN_DEFAULT 0x00000000UL
1012 #define CMU_ROUTE_CLKOUT1PEN_DEFAULT (_CMU_ROUTE_CLKOUT1PEN_DEFAULT << 1)
1013 #define CMU_ROUTE_LOCATION (0x1UL << 2)
1014 #define _CMU_ROUTE_LOCATION_SHIFT 2
1015 #define _CMU_ROUTE_LOCATION_MASK 0x4UL
1016 #define _CMU_ROUTE_LOCATION_LOC0 0x00000000UL
1017 #define _CMU_ROUTE_LOCATION_DEFAULT 0x00000000UL
1018 #define _CMU_ROUTE_LOCATION_LOC1 0x00000001UL
1019 #define CMU_ROUTE_LOCATION_LOC0 (_CMU_ROUTE_LOCATION_LOC0 << 2)
1020 #define CMU_ROUTE_LOCATION_DEFAULT (_CMU_ROUTE_LOCATION_DEFAULT << 2)
1021 #define CMU_ROUTE_LOCATION_LOC1 (_CMU_ROUTE_LOCATION_LOC1 << 2)
1023 /* Bit fields for CMU LOCK */
1024 #define _CMU_LOCK_RESETVALUE 0x00000000UL
1025 #define _CMU_LOCK_MASK 0x0000FFFFUL
1026 #define _CMU_LOCK_LOCKKEY_SHIFT 0
1027 #define _CMU_LOCK_LOCKKEY_MASK 0xFFFFUL
1028 #define _CMU_LOCK_LOCKKEY_DEFAULT 0x00000000UL
1029 #define _CMU_LOCK_LOCKKEY_LOCK 0x00000000UL
1030 #define _CMU_LOCK_LOCKKEY_UNLOCKED 0x00000000UL
1031 #define _CMU_LOCK_LOCKKEY_LOCKED 0x00000001UL
1032 #define _CMU_LOCK_LOCKKEY_UNLOCK 0x0000580EUL
1033 #define CMU_LOCK_LOCKKEY_DEFAULT (_CMU_LOCK_LOCKKEY_DEFAULT << 0)
1034 #define CMU_LOCK_LOCKKEY_LOCK (_CMU_LOCK_LOCKKEY_LOCK << 0)
1035 #define CMU_LOCK_LOCKKEY_UNLOCKED (_CMU_LOCK_LOCKKEY_UNLOCKED << 0)
1036 #define CMU_LOCK_LOCKKEY_LOCKED (_CMU_LOCK_LOCKKEY_LOCKED << 0)
1037 #define CMU_LOCK_LOCKKEY_UNLOCK (_CMU_LOCK_LOCKKEY_UNLOCK << 0)
__IOM uint32_t CALCTRL
Definition: efm32g_cmu.h:49
__IM uint32_t IF
Definition: efm32g_cmu.h:55
__IOM uint32_t IEN
Definition: efm32g_cmu.h:58
__IOM uint32_t LFACLKEN0
Definition: efm32g_cmu.h:64
__IOM uint32_t PCNTCTRL
Definition: efm32g_cmu.h:72
__IOM uint32_t LFAPRESC0
Definition: efm32g_cmu.h:68
__IOM uint32_t IFC
Definition: efm32g_cmu.h:57
__IOM uint32_t HFCORECLKDIV
Definition: efm32g_cmu.h:44
__IOM uint32_t CTRL
Definition: efm32g_cmu.h:43
__IOM uint32_t HFCORECLKEN0
Definition: efm32g_cmu.h:59
__IOM uint32_t LFBPRESC0
Definition: efm32g_cmu.h:70
__IOM uint32_t AUXHFRCOCTRL
Definition: efm32g_cmu.h:48
__IOM uint32_t OSCENCMD
Definition: efm32g_cmu.h:51
__IOM uint32_t FREEZE
Definition: efm32g_cmu.h:63
__IM uint32_t STATUS
Definition: efm32g_cmu.h:54
__IOM uint32_t ROUTE
Definition: efm32g_cmu.h:74
__IOM uint32_t LFBCLKEN0
Definition: efm32g_cmu.h:66
__IOM uint32_t HFPERCLKDIV
Definition: efm32g_cmu.h:45
__IOM uint32_t CALCNT
Definition: efm32g_cmu.h:50
__IOM uint32_t HFPERCLKEN0
Definition: efm32g_cmu.h:60
__IOM uint32_t IFS
Definition: efm32g_cmu.h:56
__IOM uint32_t HFRCOCTRL
Definition: efm32g_cmu.h:46
__IOM uint32_t CMD
Definition: efm32g_cmu.h:52
__IOM uint32_t LCDCTRL
Definition: efm32g_cmu.h:73
__IM uint32_t SYNCBUSY
Definition: efm32g_cmu.h:62
__IOM uint32_t LFCLKSEL
Definition: efm32g_cmu.h:53
__IOM uint32_t LFRCOCTRL
Definition: efm32g_cmu.h:47
__IOM uint32_t LOCK
Definition: efm32g_cmu.h:75