EFM32 Zero Gecko Software Documentation  efm32zg-doc-5.1.2
efm32zg_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;
68  uint32_t RESERVED2[1];
69  __IOM uint32_t LFAPRESC0;
70  uint32_t RESERVED3[1];
71  __IOM uint32_t LFBPRESC0;
72  uint32_t RESERVED4[1];
73  __IOM uint32_t PCNTCTRL;
75  uint32_t RESERVED5[1];
76  __IOM uint32_t ROUTE;
77  __IOM uint32_t LOCK;
78 } CMU_TypeDef;
80 /**************************************************************************/
85 /* Bit fields for CMU CTRL */
86 #define _CMU_CTRL_RESETVALUE 0x000C262CUL
87 #define _CMU_CTRL_MASK 0x07FE3EEFUL
88 #define _CMU_CTRL_HFXOMODE_SHIFT 0
89 #define _CMU_CTRL_HFXOMODE_MASK 0x3UL
90 #define _CMU_CTRL_HFXOMODE_DEFAULT 0x00000000UL
91 #define _CMU_CTRL_HFXOMODE_XTAL 0x00000000UL
92 #define _CMU_CTRL_HFXOMODE_BUFEXTCLK 0x00000001UL
93 #define _CMU_CTRL_HFXOMODE_DIGEXTCLK 0x00000002UL
94 #define CMU_CTRL_HFXOMODE_DEFAULT (_CMU_CTRL_HFXOMODE_DEFAULT << 0)
95 #define CMU_CTRL_HFXOMODE_XTAL (_CMU_CTRL_HFXOMODE_XTAL << 0)
96 #define CMU_CTRL_HFXOMODE_BUFEXTCLK (_CMU_CTRL_HFXOMODE_BUFEXTCLK << 0)
97 #define CMU_CTRL_HFXOMODE_DIGEXTCLK (_CMU_CTRL_HFXOMODE_DIGEXTCLK << 0)
98 #define _CMU_CTRL_HFXOBOOST_SHIFT 2
99 #define _CMU_CTRL_HFXOBOOST_MASK 0xCUL
100 #define _CMU_CTRL_HFXOBOOST_50PCENT 0x00000000UL
101 #define _CMU_CTRL_HFXOBOOST_70PCENT 0x00000001UL
102 #define _CMU_CTRL_HFXOBOOST_80PCENT 0x00000002UL
103 #define _CMU_CTRL_HFXOBOOST_DEFAULT 0x00000003UL
104 #define _CMU_CTRL_HFXOBOOST_100PCENT 0x00000003UL
105 #define CMU_CTRL_HFXOBOOST_50PCENT (_CMU_CTRL_HFXOBOOST_50PCENT << 2)
106 #define CMU_CTRL_HFXOBOOST_70PCENT (_CMU_CTRL_HFXOBOOST_70PCENT << 2)
107 #define CMU_CTRL_HFXOBOOST_80PCENT (_CMU_CTRL_HFXOBOOST_80PCENT << 2)
108 #define CMU_CTRL_HFXOBOOST_DEFAULT (_CMU_CTRL_HFXOBOOST_DEFAULT << 2)
109 #define CMU_CTRL_HFXOBOOST_100PCENT (_CMU_CTRL_HFXOBOOST_100PCENT << 2)
110 #define _CMU_CTRL_HFXOBUFCUR_SHIFT 5
111 #define _CMU_CTRL_HFXOBUFCUR_MASK 0x60UL
112 #define _CMU_CTRL_HFXOBUFCUR_DEFAULT 0x00000001UL
113 #define CMU_CTRL_HFXOBUFCUR_DEFAULT (_CMU_CTRL_HFXOBUFCUR_DEFAULT << 5)
114 #define CMU_CTRL_HFXOGLITCHDETEN (0x1UL << 7)
115 #define _CMU_CTRL_HFXOGLITCHDETEN_SHIFT 7
116 #define _CMU_CTRL_HFXOGLITCHDETEN_MASK 0x80UL
117 #define _CMU_CTRL_HFXOGLITCHDETEN_DEFAULT 0x00000000UL
118 #define CMU_CTRL_HFXOGLITCHDETEN_DEFAULT (_CMU_CTRL_HFXOGLITCHDETEN_DEFAULT << 7)
119 #define _CMU_CTRL_HFXOTIMEOUT_SHIFT 9
120 #define _CMU_CTRL_HFXOTIMEOUT_MASK 0x600UL
121 #define _CMU_CTRL_HFXOTIMEOUT_8CYCLES 0x00000000UL
122 #define _CMU_CTRL_HFXOTIMEOUT_256CYCLES 0x00000001UL
123 #define _CMU_CTRL_HFXOTIMEOUT_1KCYCLES 0x00000002UL
124 #define _CMU_CTRL_HFXOTIMEOUT_DEFAULT 0x00000003UL
125 #define _CMU_CTRL_HFXOTIMEOUT_16KCYCLES 0x00000003UL
126 #define CMU_CTRL_HFXOTIMEOUT_8CYCLES (_CMU_CTRL_HFXOTIMEOUT_8CYCLES << 9)
127 #define CMU_CTRL_HFXOTIMEOUT_256CYCLES (_CMU_CTRL_HFXOTIMEOUT_256CYCLES << 9)
128 #define CMU_CTRL_HFXOTIMEOUT_1KCYCLES (_CMU_CTRL_HFXOTIMEOUT_1KCYCLES << 9)
129 #define CMU_CTRL_HFXOTIMEOUT_DEFAULT (_CMU_CTRL_HFXOTIMEOUT_DEFAULT << 9)
130 #define CMU_CTRL_HFXOTIMEOUT_16KCYCLES (_CMU_CTRL_HFXOTIMEOUT_16KCYCLES << 9)
131 #define _CMU_CTRL_LFXOMODE_SHIFT 11
132 #define _CMU_CTRL_LFXOMODE_MASK 0x1800UL
133 #define _CMU_CTRL_LFXOMODE_DEFAULT 0x00000000UL
134 #define _CMU_CTRL_LFXOMODE_XTAL 0x00000000UL
135 #define _CMU_CTRL_LFXOMODE_BUFEXTCLK 0x00000001UL
136 #define _CMU_CTRL_LFXOMODE_DIGEXTCLK 0x00000002UL
137 #define CMU_CTRL_LFXOMODE_DEFAULT (_CMU_CTRL_LFXOMODE_DEFAULT << 11)
138 #define CMU_CTRL_LFXOMODE_XTAL (_CMU_CTRL_LFXOMODE_XTAL << 11)
139 #define CMU_CTRL_LFXOMODE_BUFEXTCLK (_CMU_CTRL_LFXOMODE_BUFEXTCLK << 11)
140 #define CMU_CTRL_LFXOMODE_DIGEXTCLK (_CMU_CTRL_LFXOMODE_DIGEXTCLK << 11)
141 #define CMU_CTRL_LFXOBOOST (0x1UL << 13)
142 #define _CMU_CTRL_LFXOBOOST_SHIFT 13
143 #define _CMU_CTRL_LFXOBOOST_MASK 0x2000UL
144 #define _CMU_CTRL_LFXOBOOST_70PCENT 0x00000000UL
145 #define _CMU_CTRL_LFXOBOOST_DEFAULT 0x00000001UL
146 #define _CMU_CTRL_LFXOBOOST_100PCENT 0x00000001UL
147 #define CMU_CTRL_LFXOBOOST_70PCENT (_CMU_CTRL_LFXOBOOST_70PCENT << 13)
148 #define CMU_CTRL_LFXOBOOST_DEFAULT (_CMU_CTRL_LFXOBOOST_DEFAULT << 13)
149 #define CMU_CTRL_LFXOBOOST_100PCENT (_CMU_CTRL_LFXOBOOST_100PCENT << 13)
150 #define CMU_CTRL_LFXOBUFCUR (0x1UL << 17)
151 #define _CMU_CTRL_LFXOBUFCUR_SHIFT 17
152 #define _CMU_CTRL_LFXOBUFCUR_MASK 0x20000UL
153 #define _CMU_CTRL_LFXOBUFCUR_DEFAULT 0x00000000UL
154 #define CMU_CTRL_LFXOBUFCUR_DEFAULT (_CMU_CTRL_LFXOBUFCUR_DEFAULT << 17)
155 #define _CMU_CTRL_LFXOTIMEOUT_SHIFT 18
156 #define _CMU_CTRL_LFXOTIMEOUT_MASK 0xC0000UL
157 #define _CMU_CTRL_LFXOTIMEOUT_8CYCLES 0x00000000UL
158 #define _CMU_CTRL_LFXOTIMEOUT_1KCYCLES 0x00000001UL
159 #define _CMU_CTRL_LFXOTIMEOUT_16KCYCLES 0x00000002UL
160 #define _CMU_CTRL_LFXOTIMEOUT_DEFAULT 0x00000003UL
161 #define _CMU_CTRL_LFXOTIMEOUT_32KCYCLES 0x00000003UL
162 #define CMU_CTRL_LFXOTIMEOUT_8CYCLES (_CMU_CTRL_LFXOTIMEOUT_8CYCLES << 18)
163 #define CMU_CTRL_LFXOTIMEOUT_1KCYCLES (_CMU_CTRL_LFXOTIMEOUT_1KCYCLES << 18)
164 #define CMU_CTRL_LFXOTIMEOUT_16KCYCLES (_CMU_CTRL_LFXOTIMEOUT_16KCYCLES << 18)
165 #define CMU_CTRL_LFXOTIMEOUT_DEFAULT (_CMU_CTRL_LFXOTIMEOUT_DEFAULT << 18)
166 #define CMU_CTRL_LFXOTIMEOUT_32KCYCLES (_CMU_CTRL_LFXOTIMEOUT_32KCYCLES << 18)
167 #define _CMU_CTRL_CLKOUTSEL0_SHIFT 20
168 #define _CMU_CTRL_CLKOUTSEL0_MASK 0x700000UL
169 #define _CMU_CTRL_CLKOUTSEL0_DEFAULT 0x00000000UL
170 #define _CMU_CTRL_CLKOUTSEL0_HFRCO 0x00000000UL
171 #define _CMU_CTRL_CLKOUTSEL0_HFXO 0x00000001UL
172 #define _CMU_CTRL_CLKOUTSEL0_HFCLK2 0x00000002UL
173 #define _CMU_CTRL_CLKOUTSEL0_HFCLK4 0x00000003UL
174 #define _CMU_CTRL_CLKOUTSEL0_HFCLK8 0x00000004UL
175 #define _CMU_CTRL_CLKOUTSEL0_HFCLK16 0x00000005UL
176 #define _CMU_CTRL_CLKOUTSEL0_ULFRCO 0x00000006UL
177 #define _CMU_CTRL_CLKOUTSEL0_AUXHFRCO 0x00000007UL
178 #define CMU_CTRL_CLKOUTSEL0_DEFAULT (_CMU_CTRL_CLKOUTSEL0_DEFAULT << 20)
179 #define CMU_CTRL_CLKOUTSEL0_HFRCO (_CMU_CTRL_CLKOUTSEL0_HFRCO << 20)
180 #define CMU_CTRL_CLKOUTSEL0_HFXO (_CMU_CTRL_CLKOUTSEL0_HFXO << 20)
181 #define CMU_CTRL_CLKOUTSEL0_HFCLK2 (_CMU_CTRL_CLKOUTSEL0_HFCLK2 << 20)
182 #define CMU_CTRL_CLKOUTSEL0_HFCLK4 (_CMU_CTRL_CLKOUTSEL0_HFCLK4 << 20)
183 #define CMU_CTRL_CLKOUTSEL0_HFCLK8 (_CMU_CTRL_CLKOUTSEL0_HFCLK8 << 20)
184 #define CMU_CTRL_CLKOUTSEL0_HFCLK16 (_CMU_CTRL_CLKOUTSEL0_HFCLK16 << 20)
185 #define CMU_CTRL_CLKOUTSEL0_ULFRCO (_CMU_CTRL_CLKOUTSEL0_ULFRCO << 20)
186 #define CMU_CTRL_CLKOUTSEL0_AUXHFRCO (_CMU_CTRL_CLKOUTSEL0_AUXHFRCO << 20)
187 #define _CMU_CTRL_CLKOUTSEL1_SHIFT 23
188 #define _CMU_CTRL_CLKOUTSEL1_MASK 0x7800000UL
189 #define _CMU_CTRL_CLKOUTSEL1_DEFAULT 0x00000000UL
190 #define _CMU_CTRL_CLKOUTSEL1_LFRCO 0x00000000UL
191 #define _CMU_CTRL_CLKOUTSEL1_LFXO 0x00000001UL
192 #define _CMU_CTRL_CLKOUTSEL1_HFCLK 0x00000002UL
193 #define _CMU_CTRL_CLKOUTSEL1_LFXOQ 0x00000003UL
194 #define _CMU_CTRL_CLKOUTSEL1_HFXOQ 0x00000004UL
195 #define _CMU_CTRL_CLKOUTSEL1_LFRCOQ 0x00000005UL
196 #define _CMU_CTRL_CLKOUTSEL1_HFRCOQ 0x00000006UL
197 #define _CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ 0x00000007UL
198 #define CMU_CTRL_CLKOUTSEL1_DEFAULT (_CMU_CTRL_CLKOUTSEL1_DEFAULT << 23)
199 #define CMU_CTRL_CLKOUTSEL1_LFRCO (_CMU_CTRL_CLKOUTSEL1_LFRCO << 23)
200 #define CMU_CTRL_CLKOUTSEL1_LFXO (_CMU_CTRL_CLKOUTSEL1_LFXO << 23)
201 #define CMU_CTRL_CLKOUTSEL1_HFCLK (_CMU_CTRL_CLKOUTSEL1_HFCLK << 23)
202 #define CMU_CTRL_CLKOUTSEL1_LFXOQ (_CMU_CTRL_CLKOUTSEL1_LFXOQ << 23)
203 #define CMU_CTRL_CLKOUTSEL1_HFXOQ (_CMU_CTRL_CLKOUTSEL1_HFXOQ << 23)
204 #define CMU_CTRL_CLKOUTSEL1_LFRCOQ (_CMU_CTRL_CLKOUTSEL1_LFRCOQ << 23)
205 #define CMU_CTRL_CLKOUTSEL1_HFRCOQ (_CMU_CTRL_CLKOUTSEL1_HFRCOQ << 23)
206 #define CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ (_CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ << 23)
208 /* Bit fields for CMU HFCORECLKDIV */
209 #define _CMU_HFCORECLKDIV_RESETVALUE 0x00000000UL
210 #define _CMU_HFCORECLKDIV_MASK 0x0000010FUL
211 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT 0
212 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK 0xFUL
213 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT 0x00000000UL
214 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK 0x00000000UL
215 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 0x00000001UL
216 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 0x00000002UL
217 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 0x00000003UL
218 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 0x00000004UL
219 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 0x00000005UL
220 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 0x00000006UL
221 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 0x00000007UL
222 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 0x00000008UL
223 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 0x00000009UL
224 #define CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT (_CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT << 0)
225 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK << 0)
226 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 << 0)
227 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 << 0)
228 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 << 0)
229 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 << 0)
230 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 << 0)
231 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 << 0)
232 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 << 0)
233 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 << 0)
234 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 << 0)
235 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV (0x1UL << 8)
236 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_SHIFT 8
237 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_MASK 0x100UL
238 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_DEFAULT 0x00000000UL
239 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV2 0x00000000UL
240 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV4 0x00000001UL
241 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV_DEFAULT (_CMU_HFCORECLKDIV_HFCORECLKLEDIV_DEFAULT << 8)
242 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV2 (_CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV2 << 8)
243 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV4 (_CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV4 << 8)
245 /* Bit fields for CMU HFPERCLKDIV */
246 #define _CMU_HFPERCLKDIV_RESETVALUE 0x00000100UL
247 #define _CMU_HFPERCLKDIV_MASK 0x0000010FUL
248 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT 0
249 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_MASK 0xFUL
250 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT 0x00000000UL
251 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK 0x00000000UL
252 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 0x00000001UL
253 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 0x00000002UL
254 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 0x00000003UL
255 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 0x00000004UL
256 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 0x00000005UL
257 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 0x00000006UL
258 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 0x00000007UL
259 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 0x00000008UL
260 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 0x00000009UL
261 #define CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT (_CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT << 0)
262 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK << 0)
263 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 << 0)
264 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 << 0)
265 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 << 0)
266 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 << 0)
267 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 << 0)
268 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 << 0)
269 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 << 0)
270 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 << 0)
271 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 << 0)
272 #define CMU_HFPERCLKDIV_HFPERCLKEN (0x1UL << 8)
273 #define _CMU_HFPERCLKDIV_HFPERCLKEN_SHIFT 8
274 #define _CMU_HFPERCLKDIV_HFPERCLKEN_MASK 0x100UL
275 #define _CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT 0x00000001UL
276 #define CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT (_CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT << 8)
278 /* Bit fields for CMU HFRCOCTRL */
279 #define _CMU_HFRCOCTRL_RESETVALUE 0x00000380UL
280 #define _CMU_HFRCOCTRL_MASK 0x0001F7FFUL
281 #define _CMU_HFRCOCTRL_TUNING_SHIFT 0
282 #define _CMU_HFRCOCTRL_TUNING_MASK 0xFFUL
283 #define _CMU_HFRCOCTRL_TUNING_DEFAULT 0x00000080UL
284 #define CMU_HFRCOCTRL_TUNING_DEFAULT (_CMU_HFRCOCTRL_TUNING_DEFAULT << 0)
285 #define _CMU_HFRCOCTRL_BAND_SHIFT 8
286 #define _CMU_HFRCOCTRL_BAND_MASK 0x700UL
287 #define _CMU_HFRCOCTRL_BAND_1MHZ 0x00000000UL
288 #define _CMU_HFRCOCTRL_BAND_7MHZ 0x00000001UL
289 #define _CMU_HFRCOCTRL_BAND_11MHZ 0x00000002UL
290 #define _CMU_HFRCOCTRL_BAND_DEFAULT 0x00000003UL
291 #define _CMU_HFRCOCTRL_BAND_14MHZ 0x00000003UL
292 #define _CMU_HFRCOCTRL_BAND_21MHZ 0x00000004UL
293 #define CMU_HFRCOCTRL_BAND_1MHZ (_CMU_HFRCOCTRL_BAND_1MHZ << 8)
294 #define CMU_HFRCOCTRL_BAND_7MHZ (_CMU_HFRCOCTRL_BAND_7MHZ << 8)
295 #define CMU_HFRCOCTRL_BAND_11MHZ (_CMU_HFRCOCTRL_BAND_11MHZ << 8)
296 #define CMU_HFRCOCTRL_BAND_DEFAULT (_CMU_HFRCOCTRL_BAND_DEFAULT << 8)
297 #define CMU_HFRCOCTRL_BAND_14MHZ (_CMU_HFRCOCTRL_BAND_14MHZ << 8)
298 #define CMU_HFRCOCTRL_BAND_21MHZ (_CMU_HFRCOCTRL_BAND_21MHZ << 8)
299 #define _CMU_HFRCOCTRL_SUDELAY_SHIFT 12
300 #define _CMU_HFRCOCTRL_SUDELAY_MASK 0x1F000UL
301 #define _CMU_HFRCOCTRL_SUDELAY_DEFAULT 0x00000000UL
302 #define CMU_HFRCOCTRL_SUDELAY_DEFAULT (_CMU_HFRCOCTRL_SUDELAY_DEFAULT << 12)
304 /* Bit fields for CMU LFRCOCTRL */
305 #define _CMU_LFRCOCTRL_RESETVALUE 0x00000040UL
306 #define _CMU_LFRCOCTRL_MASK 0x0000007FUL
307 #define _CMU_LFRCOCTRL_TUNING_SHIFT 0
308 #define _CMU_LFRCOCTRL_TUNING_MASK 0x7FUL
309 #define _CMU_LFRCOCTRL_TUNING_DEFAULT 0x00000040UL
310 #define CMU_LFRCOCTRL_TUNING_DEFAULT (_CMU_LFRCOCTRL_TUNING_DEFAULT << 0)
312 /* Bit fields for CMU AUXHFRCOCTRL */
313 #define _CMU_AUXHFRCOCTRL_RESETVALUE 0x00000080UL
314 #define _CMU_AUXHFRCOCTRL_MASK 0x000007FFUL
315 #define _CMU_AUXHFRCOCTRL_TUNING_SHIFT 0
316 #define _CMU_AUXHFRCOCTRL_TUNING_MASK 0xFFUL
317 #define _CMU_AUXHFRCOCTRL_TUNING_DEFAULT 0x00000080UL
318 #define CMU_AUXHFRCOCTRL_TUNING_DEFAULT (_CMU_AUXHFRCOCTRL_TUNING_DEFAULT << 0)
319 #define _CMU_AUXHFRCOCTRL_BAND_SHIFT 8
320 #define _CMU_AUXHFRCOCTRL_BAND_MASK 0x700UL
321 #define _CMU_AUXHFRCOCTRL_BAND_DEFAULT 0x00000000UL
322 #define _CMU_AUXHFRCOCTRL_BAND_14MHZ 0x00000000UL
323 #define _CMU_AUXHFRCOCTRL_BAND_11MHZ 0x00000001UL
324 #define _CMU_AUXHFRCOCTRL_BAND_7MHZ 0x00000002UL
325 #define _CMU_AUXHFRCOCTRL_BAND_1MHZ 0x00000003UL
326 #define _CMU_AUXHFRCOCTRL_BAND_21MHZ 0x00000007UL
327 #define CMU_AUXHFRCOCTRL_BAND_DEFAULT (_CMU_AUXHFRCOCTRL_BAND_DEFAULT << 8)
328 #define CMU_AUXHFRCOCTRL_BAND_14MHZ (_CMU_AUXHFRCOCTRL_BAND_14MHZ << 8)
329 #define CMU_AUXHFRCOCTRL_BAND_11MHZ (_CMU_AUXHFRCOCTRL_BAND_11MHZ << 8)
330 #define CMU_AUXHFRCOCTRL_BAND_7MHZ (_CMU_AUXHFRCOCTRL_BAND_7MHZ << 8)
331 #define CMU_AUXHFRCOCTRL_BAND_1MHZ (_CMU_AUXHFRCOCTRL_BAND_1MHZ << 8)
332 #define CMU_AUXHFRCOCTRL_BAND_21MHZ (_CMU_AUXHFRCOCTRL_BAND_21MHZ << 8)
334 /* Bit fields for CMU CALCTRL */
335 #define _CMU_CALCTRL_RESETVALUE 0x00000000UL
336 #define _CMU_CALCTRL_MASK 0x0000007FUL
337 #define _CMU_CALCTRL_UPSEL_SHIFT 0
338 #define _CMU_CALCTRL_UPSEL_MASK 0x7UL
339 #define _CMU_CALCTRL_UPSEL_DEFAULT 0x00000000UL
340 #define _CMU_CALCTRL_UPSEL_HFXO 0x00000000UL
341 #define _CMU_CALCTRL_UPSEL_LFXO 0x00000001UL
342 #define _CMU_CALCTRL_UPSEL_HFRCO 0x00000002UL
343 #define _CMU_CALCTRL_UPSEL_LFRCO 0x00000003UL
344 #define _CMU_CALCTRL_UPSEL_AUXHFRCO 0x00000004UL
345 #define CMU_CALCTRL_UPSEL_DEFAULT (_CMU_CALCTRL_UPSEL_DEFAULT << 0)
346 #define CMU_CALCTRL_UPSEL_HFXO (_CMU_CALCTRL_UPSEL_HFXO << 0)
347 #define CMU_CALCTRL_UPSEL_LFXO (_CMU_CALCTRL_UPSEL_LFXO << 0)
348 #define CMU_CALCTRL_UPSEL_HFRCO (_CMU_CALCTRL_UPSEL_HFRCO << 0)
349 #define CMU_CALCTRL_UPSEL_LFRCO (_CMU_CALCTRL_UPSEL_LFRCO << 0)
350 #define CMU_CALCTRL_UPSEL_AUXHFRCO (_CMU_CALCTRL_UPSEL_AUXHFRCO << 0)
351 #define _CMU_CALCTRL_DOWNSEL_SHIFT 3
352 #define _CMU_CALCTRL_DOWNSEL_MASK 0x38UL
353 #define _CMU_CALCTRL_DOWNSEL_DEFAULT 0x00000000UL
354 #define _CMU_CALCTRL_DOWNSEL_HFCLK 0x00000000UL
355 #define _CMU_CALCTRL_DOWNSEL_HFXO 0x00000001UL
356 #define _CMU_CALCTRL_DOWNSEL_LFXO 0x00000002UL
357 #define _CMU_CALCTRL_DOWNSEL_HFRCO 0x00000003UL
358 #define _CMU_CALCTRL_DOWNSEL_LFRCO 0x00000004UL
359 #define _CMU_CALCTRL_DOWNSEL_AUXHFRCO 0x00000005UL
360 #define CMU_CALCTRL_DOWNSEL_DEFAULT (_CMU_CALCTRL_DOWNSEL_DEFAULT << 3)
361 #define CMU_CALCTRL_DOWNSEL_HFCLK (_CMU_CALCTRL_DOWNSEL_HFCLK << 3)
362 #define CMU_CALCTRL_DOWNSEL_HFXO (_CMU_CALCTRL_DOWNSEL_HFXO << 3)
363 #define CMU_CALCTRL_DOWNSEL_LFXO (_CMU_CALCTRL_DOWNSEL_LFXO << 3)
364 #define CMU_CALCTRL_DOWNSEL_HFRCO (_CMU_CALCTRL_DOWNSEL_HFRCO << 3)
365 #define CMU_CALCTRL_DOWNSEL_LFRCO (_CMU_CALCTRL_DOWNSEL_LFRCO << 3)
366 #define CMU_CALCTRL_DOWNSEL_AUXHFRCO (_CMU_CALCTRL_DOWNSEL_AUXHFRCO << 3)
367 #define CMU_CALCTRL_CONT (0x1UL << 6)
368 #define _CMU_CALCTRL_CONT_SHIFT 6
369 #define _CMU_CALCTRL_CONT_MASK 0x40UL
370 #define _CMU_CALCTRL_CONT_DEFAULT 0x00000000UL
371 #define CMU_CALCTRL_CONT_DEFAULT (_CMU_CALCTRL_CONT_DEFAULT << 6)
373 /* Bit fields for CMU CALCNT */
374 #define _CMU_CALCNT_RESETVALUE 0x00000000UL
375 #define _CMU_CALCNT_MASK 0x000FFFFFUL
376 #define _CMU_CALCNT_CALCNT_SHIFT 0
377 #define _CMU_CALCNT_CALCNT_MASK 0xFFFFFUL
378 #define _CMU_CALCNT_CALCNT_DEFAULT 0x00000000UL
379 #define CMU_CALCNT_CALCNT_DEFAULT (_CMU_CALCNT_CALCNT_DEFAULT << 0)
381 /* Bit fields for CMU OSCENCMD */
382 #define _CMU_OSCENCMD_RESETVALUE 0x00000000UL
383 #define _CMU_OSCENCMD_MASK 0x000003FFUL
384 #define CMU_OSCENCMD_HFRCOEN (0x1UL << 0)
385 #define _CMU_OSCENCMD_HFRCOEN_SHIFT 0
386 #define _CMU_OSCENCMD_HFRCOEN_MASK 0x1UL
387 #define _CMU_OSCENCMD_HFRCOEN_DEFAULT 0x00000000UL
388 #define CMU_OSCENCMD_HFRCOEN_DEFAULT (_CMU_OSCENCMD_HFRCOEN_DEFAULT << 0)
389 #define CMU_OSCENCMD_HFRCODIS (0x1UL << 1)
390 #define _CMU_OSCENCMD_HFRCODIS_SHIFT 1
391 #define _CMU_OSCENCMD_HFRCODIS_MASK 0x2UL
392 #define _CMU_OSCENCMD_HFRCODIS_DEFAULT 0x00000000UL
393 #define CMU_OSCENCMD_HFRCODIS_DEFAULT (_CMU_OSCENCMD_HFRCODIS_DEFAULT << 1)
394 #define CMU_OSCENCMD_HFXOEN (0x1UL << 2)
395 #define _CMU_OSCENCMD_HFXOEN_SHIFT 2
396 #define _CMU_OSCENCMD_HFXOEN_MASK 0x4UL
397 #define _CMU_OSCENCMD_HFXOEN_DEFAULT 0x00000000UL
398 #define CMU_OSCENCMD_HFXOEN_DEFAULT (_CMU_OSCENCMD_HFXOEN_DEFAULT << 2)
399 #define CMU_OSCENCMD_HFXODIS (0x1UL << 3)
400 #define _CMU_OSCENCMD_HFXODIS_SHIFT 3
401 #define _CMU_OSCENCMD_HFXODIS_MASK 0x8UL
402 #define _CMU_OSCENCMD_HFXODIS_DEFAULT 0x00000000UL
403 #define CMU_OSCENCMD_HFXODIS_DEFAULT (_CMU_OSCENCMD_HFXODIS_DEFAULT << 3)
404 #define CMU_OSCENCMD_AUXHFRCOEN (0x1UL << 4)
405 #define _CMU_OSCENCMD_AUXHFRCOEN_SHIFT 4
406 #define _CMU_OSCENCMD_AUXHFRCOEN_MASK 0x10UL
407 #define _CMU_OSCENCMD_AUXHFRCOEN_DEFAULT 0x00000000UL
408 #define CMU_OSCENCMD_AUXHFRCOEN_DEFAULT (_CMU_OSCENCMD_AUXHFRCOEN_DEFAULT << 4)
409 #define CMU_OSCENCMD_AUXHFRCODIS (0x1UL << 5)
410 #define _CMU_OSCENCMD_AUXHFRCODIS_SHIFT 5
411 #define _CMU_OSCENCMD_AUXHFRCODIS_MASK 0x20UL
412 #define _CMU_OSCENCMD_AUXHFRCODIS_DEFAULT 0x00000000UL
413 #define CMU_OSCENCMD_AUXHFRCODIS_DEFAULT (_CMU_OSCENCMD_AUXHFRCODIS_DEFAULT << 5)
414 #define CMU_OSCENCMD_LFRCOEN (0x1UL << 6)
415 #define _CMU_OSCENCMD_LFRCOEN_SHIFT 6
416 #define _CMU_OSCENCMD_LFRCOEN_MASK 0x40UL
417 #define _CMU_OSCENCMD_LFRCOEN_DEFAULT 0x00000000UL
418 #define CMU_OSCENCMD_LFRCOEN_DEFAULT (_CMU_OSCENCMD_LFRCOEN_DEFAULT << 6)
419 #define CMU_OSCENCMD_LFRCODIS (0x1UL << 7)
420 #define _CMU_OSCENCMD_LFRCODIS_SHIFT 7
421 #define _CMU_OSCENCMD_LFRCODIS_MASK 0x80UL
422 #define _CMU_OSCENCMD_LFRCODIS_DEFAULT 0x00000000UL
423 #define CMU_OSCENCMD_LFRCODIS_DEFAULT (_CMU_OSCENCMD_LFRCODIS_DEFAULT << 7)
424 #define CMU_OSCENCMD_LFXOEN (0x1UL << 8)
425 #define _CMU_OSCENCMD_LFXOEN_SHIFT 8
426 #define _CMU_OSCENCMD_LFXOEN_MASK 0x100UL
427 #define _CMU_OSCENCMD_LFXOEN_DEFAULT 0x00000000UL
428 #define CMU_OSCENCMD_LFXOEN_DEFAULT (_CMU_OSCENCMD_LFXOEN_DEFAULT << 8)
429 #define CMU_OSCENCMD_LFXODIS (0x1UL << 9)
430 #define _CMU_OSCENCMD_LFXODIS_SHIFT 9
431 #define _CMU_OSCENCMD_LFXODIS_MASK 0x200UL
432 #define _CMU_OSCENCMD_LFXODIS_DEFAULT 0x00000000UL
433 #define CMU_OSCENCMD_LFXODIS_DEFAULT (_CMU_OSCENCMD_LFXODIS_DEFAULT << 9)
435 /* Bit fields for CMU CMD */
436 #define _CMU_CMD_RESETVALUE 0x00000000UL
437 #define _CMU_CMD_MASK 0x0000001FUL
438 #define _CMU_CMD_HFCLKSEL_SHIFT 0
439 #define _CMU_CMD_HFCLKSEL_MASK 0x7UL
440 #define _CMU_CMD_HFCLKSEL_DEFAULT 0x00000000UL
441 #define _CMU_CMD_HFCLKSEL_HFRCO 0x00000001UL
442 #define _CMU_CMD_HFCLKSEL_HFXO 0x00000002UL
443 #define _CMU_CMD_HFCLKSEL_LFRCO 0x00000003UL
444 #define _CMU_CMD_HFCLKSEL_LFXO 0x00000004UL
445 #define CMU_CMD_HFCLKSEL_DEFAULT (_CMU_CMD_HFCLKSEL_DEFAULT << 0)
446 #define CMU_CMD_HFCLKSEL_HFRCO (_CMU_CMD_HFCLKSEL_HFRCO << 0)
447 #define CMU_CMD_HFCLKSEL_HFXO (_CMU_CMD_HFCLKSEL_HFXO << 0)
448 #define CMU_CMD_HFCLKSEL_LFRCO (_CMU_CMD_HFCLKSEL_LFRCO << 0)
449 #define CMU_CMD_HFCLKSEL_LFXO (_CMU_CMD_HFCLKSEL_LFXO << 0)
450 #define CMU_CMD_CALSTART (0x1UL << 3)
451 #define _CMU_CMD_CALSTART_SHIFT 3
452 #define _CMU_CMD_CALSTART_MASK 0x8UL
453 #define _CMU_CMD_CALSTART_DEFAULT 0x00000000UL
454 #define CMU_CMD_CALSTART_DEFAULT (_CMU_CMD_CALSTART_DEFAULT << 3)
455 #define CMU_CMD_CALSTOP (0x1UL << 4)
456 #define _CMU_CMD_CALSTOP_SHIFT 4
457 #define _CMU_CMD_CALSTOP_MASK 0x10UL
458 #define _CMU_CMD_CALSTOP_DEFAULT 0x00000000UL
459 #define CMU_CMD_CALSTOP_DEFAULT (_CMU_CMD_CALSTOP_DEFAULT << 4)
461 /* Bit fields for CMU LFCLKSEL */
462 #define _CMU_LFCLKSEL_RESETVALUE 0x00000005UL
463 #define _CMU_LFCLKSEL_MASK 0x0011000FUL
464 #define _CMU_LFCLKSEL_LFA_SHIFT 0
465 #define _CMU_LFCLKSEL_LFA_MASK 0x3UL
466 #define _CMU_LFCLKSEL_LFA_DISABLED 0x00000000UL
467 #define _CMU_LFCLKSEL_LFA_DEFAULT 0x00000001UL
468 #define _CMU_LFCLKSEL_LFA_LFRCO 0x00000001UL
469 #define _CMU_LFCLKSEL_LFA_LFXO 0x00000002UL
470 #define _CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 0x00000003UL
471 #define CMU_LFCLKSEL_LFA_DISABLED (_CMU_LFCLKSEL_LFA_DISABLED << 0)
472 #define CMU_LFCLKSEL_LFA_DEFAULT (_CMU_LFCLKSEL_LFA_DEFAULT << 0)
473 #define CMU_LFCLKSEL_LFA_LFRCO (_CMU_LFCLKSEL_LFA_LFRCO << 0)
474 #define CMU_LFCLKSEL_LFA_LFXO (_CMU_LFCLKSEL_LFA_LFXO << 0)
475 #define CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 (_CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 << 0)
476 #define _CMU_LFCLKSEL_LFB_SHIFT 2
477 #define _CMU_LFCLKSEL_LFB_MASK 0xCUL
478 #define _CMU_LFCLKSEL_LFB_DISABLED 0x00000000UL
479 #define _CMU_LFCLKSEL_LFB_DEFAULT 0x00000001UL
480 #define _CMU_LFCLKSEL_LFB_LFRCO 0x00000001UL
481 #define _CMU_LFCLKSEL_LFB_LFXO 0x00000002UL
482 #define _CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 0x00000003UL
483 #define CMU_LFCLKSEL_LFB_DISABLED (_CMU_LFCLKSEL_LFB_DISABLED << 2)
484 #define CMU_LFCLKSEL_LFB_DEFAULT (_CMU_LFCLKSEL_LFB_DEFAULT << 2)
485 #define CMU_LFCLKSEL_LFB_LFRCO (_CMU_LFCLKSEL_LFB_LFRCO << 2)
486 #define CMU_LFCLKSEL_LFB_LFXO (_CMU_LFCLKSEL_LFB_LFXO << 2)
487 #define CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 (_CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 << 2)
488 #define CMU_LFCLKSEL_LFAE (0x1UL << 16)
489 #define _CMU_LFCLKSEL_LFAE_SHIFT 16
490 #define _CMU_LFCLKSEL_LFAE_MASK 0x10000UL
491 #define _CMU_LFCLKSEL_LFAE_DEFAULT 0x00000000UL
492 #define _CMU_LFCLKSEL_LFAE_DISABLED 0x00000000UL
493 #define _CMU_LFCLKSEL_LFAE_ULFRCO 0x00000001UL
494 #define CMU_LFCLKSEL_LFAE_DEFAULT (_CMU_LFCLKSEL_LFAE_DEFAULT << 16)
495 #define CMU_LFCLKSEL_LFAE_DISABLED (_CMU_LFCLKSEL_LFAE_DISABLED << 16)
496 #define CMU_LFCLKSEL_LFAE_ULFRCO (_CMU_LFCLKSEL_LFAE_ULFRCO << 16)
497 #define CMU_LFCLKSEL_LFBE (0x1UL << 20)
498 #define _CMU_LFCLKSEL_LFBE_SHIFT 20
499 #define _CMU_LFCLKSEL_LFBE_MASK 0x100000UL
500 #define _CMU_LFCLKSEL_LFBE_DEFAULT 0x00000000UL
501 #define _CMU_LFCLKSEL_LFBE_DISABLED 0x00000000UL
502 #define _CMU_LFCLKSEL_LFBE_ULFRCO 0x00000001UL
503 #define CMU_LFCLKSEL_LFBE_DEFAULT (_CMU_LFCLKSEL_LFBE_DEFAULT << 20)
504 #define CMU_LFCLKSEL_LFBE_DISABLED (_CMU_LFCLKSEL_LFBE_DISABLED << 20)
505 #define CMU_LFCLKSEL_LFBE_ULFRCO (_CMU_LFCLKSEL_LFBE_ULFRCO << 20)
507 /* Bit fields for CMU STATUS */
508 #define _CMU_STATUS_RESETVALUE 0x00000403UL
509 #define _CMU_STATUS_MASK 0x00007FFFUL
510 #define CMU_STATUS_HFRCOENS (0x1UL << 0)
511 #define _CMU_STATUS_HFRCOENS_SHIFT 0
512 #define _CMU_STATUS_HFRCOENS_MASK 0x1UL
513 #define _CMU_STATUS_HFRCOENS_DEFAULT 0x00000001UL
514 #define CMU_STATUS_HFRCOENS_DEFAULT (_CMU_STATUS_HFRCOENS_DEFAULT << 0)
515 #define CMU_STATUS_HFRCORDY (0x1UL << 1)
516 #define _CMU_STATUS_HFRCORDY_SHIFT 1
517 #define _CMU_STATUS_HFRCORDY_MASK 0x2UL
518 #define _CMU_STATUS_HFRCORDY_DEFAULT 0x00000001UL
519 #define CMU_STATUS_HFRCORDY_DEFAULT (_CMU_STATUS_HFRCORDY_DEFAULT << 1)
520 #define CMU_STATUS_HFXOENS (0x1UL << 2)
521 #define _CMU_STATUS_HFXOENS_SHIFT 2
522 #define _CMU_STATUS_HFXOENS_MASK 0x4UL
523 #define _CMU_STATUS_HFXOENS_DEFAULT 0x00000000UL
524 #define CMU_STATUS_HFXOENS_DEFAULT (_CMU_STATUS_HFXOENS_DEFAULT << 2)
525 #define CMU_STATUS_HFXORDY (0x1UL << 3)
526 #define _CMU_STATUS_HFXORDY_SHIFT 3
527 #define _CMU_STATUS_HFXORDY_MASK 0x8UL
528 #define _CMU_STATUS_HFXORDY_DEFAULT 0x00000000UL
529 #define CMU_STATUS_HFXORDY_DEFAULT (_CMU_STATUS_HFXORDY_DEFAULT << 3)
530 #define CMU_STATUS_AUXHFRCOENS (0x1UL << 4)
531 #define _CMU_STATUS_AUXHFRCOENS_SHIFT 4
532 #define _CMU_STATUS_AUXHFRCOENS_MASK 0x10UL
533 #define _CMU_STATUS_AUXHFRCOENS_DEFAULT 0x00000000UL
534 #define CMU_STATUS_AUXHFRCOENS_DEFAULT (_CMU_STATUS_AUXHFRCOENS_DEFAULT << 4)
535 #define CMU_STATUS_AUXHFRCORDY (0x1UL << 5)
536 #define _CMU_STATUS_AUXHFRCORDY_SHIFT 5
537 #define _CMU_STATUS_AUXHFRCORDY_MASK 0x20UL
538 #define _CMU_STATUS_AUXHFRCORDY_DEFAULT 0x00000000UL
539 #define CMU_STATUS_AUXHFRCORDY_DEFAULT (_CMU_STATUS_AUXHFRCORDY_DEFAULT << 5)
540 #define CMU_STATUS_LFRCOENS (0x1UL << 6)
541 #define _CMU_STATUS_LFRCOENS_SHIFT 6
542 #define _CMU_STATUS_LFRCOENS_MASK 0x40UL
543 #define _CMU_STATUS_LFRCOENS_DEFAULT 0x00000000UL
544 #define CMU_STATUS_LFRCOENS_DEFAULT (_CMU_STATUS_LFRCOENS_DEFAULT << 6)
545 #define CMU_STATUS_LFRCORDY (0x1UL << 7)
546 #define _CMU_STATUS_LFRCORDY_SHIFT 7
547 #define _CMU_STATUS_LFRCORDY_MASK 0x80UL
548 #define _CMU_STATUS_LFRCORDY_DEFAULT 0x00000000UL
549 #define CMU_STATUS_LFRCORDY_DEFAULT (_CMU_STATUS_LFRCORDY_DEFAULT << 7)
550 #define CMU_STATUS_LFXOENS (0x1UL << 8)
551 #define _CMU_STATUS_LFXOENS_SHIFT 8
552 #define _CMU_STATUS_LFXOENS_MASK 0x100UL
553 #define _CMU_STATUS_LFXOENS_DEFAULT 0x00000000UL
554 #define CMU_STATUS_LFXOENS_DEFAULT (_CMU_STATUS_LFXOENS_DEFAULT << 8)
555 #define CMU_STATUS_LFXORDY (0x1UL << 9)
556 #define _CMU_STATUS_LFXORDY_SHIFT 9
557 #define _CMU_STATUS_LFXORDY_MASK 0x200UL
558 #define _CMU_STATUS_LFXORDY_DEFAULT 0x00000000UL
559 #define CMU_STATUS_LFXORDY_DEFAULT (_CMU_STATUS_LFXORDY_DEFAULT << 9)
560 #define CMU_STATUS_HFRCOSEL (0x1UL << 10)
561 #define _CMU_STATUS_HFRCOSEL_SHIFT 10
562 #define _CMU_STATUS_HFRCOSEL_MASK 0x400UL
563 #define _CMU_STATUS_HFRCOSEL_DEFAULT 0x00000001UL
564 #define CMU_STATUS_HFRCOSEL_DEFAULT (_CMU_STATUS_HFRCOSEL_DEFAULT << 10)
565 #define CMU_STATUS_HFXOSEL (0x1UL << 11)
566 #define _CMU_STATUS_HFXOSEL_SHIFT 11
567 #define _CMU_STATUS_HFXOSEL_MASK 0x800UL
568 #define _CMU_STATUS_HFXOSEL_DEFAULT 0x00000000UL
569 #define CMU_STATUS_HFXOSEL_DEFAULT (_CMU_STATUS_HFXOSEL_DEFAULT << 11)
570 #define CMU_STATUS_LFRCOSEL (0x1UL << 12)
571 #define _CMU_STATUS_LFRCOSEL_SHIFT 12
572 #define _CMU_STATUS_LFRCOSEL_MASK 0x1000UL
573 #define _CMU_STATUS_LFRCOSEL_DEFAULT 0x00000000UL
574 #define CMU_STATUS_LFRCOSEL_DEFAULT (_CMU_STATUS_LFRCOSEL_DEFAULT << 12)
575 #define CMU_STATUS_LFXOSEL (0x1UL << 13)
576 #define _CMU_STATUS_LFXOSEL_SHIFT 13
577 #define _CMU_STATUS_LFXOSEL_MASK 0x2000UL
578 #define _CMU_STATUS_LFXOSEL_DEFAULT 0x00000000UL
579 #define CMU_STATUS_LFXOSEL_DEFAULT (_CMU_STATUS_LFXOSEL_DEFAULT << 13)
580 #define CMU_STATUS_CALBSY (0x1UL << 14)
581 #define _CMU_STATUS_CALBSY_SHIFT 14
582 #define _CMU_STATUS_CALBSY_MASK 0x4000UL
583 #define _CMU_STATUS_CALBSY_DEFAULT 0x00000000UL
584 #define CMU_STATUS_CALBSY_DEFAULT (_CMU_STATUS_CALBSY_DEFAULT << 14)
586 /* Bit fields for CMU IF */
587 #define _CMU_IF_RESETVALUE 0x00000001UL
588 #define _CMU_IF_MASK 0x0000007FUL
589 #define CMU_IF_HFRCORDY (0x1UL << 0)
590 #define _CMU_IF_HFRCORDY_SHIFT 0
591 #define _CMU_IF_HFRCORDY_MASK 0x1UL
592 #define _CMU_IF_HFRCORDY_DEFAULT 0x00000001UL
593 #define CMU_IF_HFRCORDY_DEFAULT (_CMU_IF_HFRCORDY_DEFAULT << 0)
594 #define CMU_IF_HFXORDY (0x1UL << 1)
595 #define _CMU_IF_HFXORDY_SHIFT 1
596 #define _CMU_IF_HFXORDY_MASK 0x2UL
597 #define _CMU_IF_HFXORDY_DEFAULT 0x00000000UL
598 #define CMU_IF_HFXORDY_DEFAULT (_CMU_IF_HFXORDY_DEFAULT << 1)
599 #define CMU_IF_LFRCORDY (0x1UL << 2)
600 #define _CMU_IF_LFRCORDY_SHIFT 2
601 #define _CMU_IF_LFRCORDY_MASK 0x4UL
602 #define _CMU_IF_LFRCORDY_DEFAULT 0x00000000UL
603 #define CMU_IF_LFRCORDY_DEFAULT (_CMU_IF_LFRCORDY_DEFAULT << 2)
604 #define CMU_IF_LFXORDY (0x1UL << 3)
605 #define _CMU_IF_LFXORDY_SHIFT 3
606 #define _CMU_IF_LFXORDY_MASK 0x8UL
607 #define _CMU_IF_LFXORDY_DEFAULT 0x00000000UL
608 #define CMU_IF_LFXORDY_DEFAULT (_CMU_IF_LFXORDY_DEFAULT << 3)
609 #define CMU_IF_AUXHFRCORDY (0x1UL << 4)
610 #define _CMU_IF_AUXHFRCORDY_SHIFT 4
611 #define _CMU_IF_AUXHFRCORDY_MASK 0x10UL
612 #define _CMU_IF_AUXHFRCORDY_DEFAULT 0x00000000UL
613 #define CMU_IF_AUXHFRCORDY_DEFAULT (_CMU_IF_AUXHFRCORDY_DEFAULT << 4)
614 #define CMU_IF_CALRDY (0x1UL << 5)
615 #define _CMU_IF_CALRDY_SHIFT 5
616 #define _CMU_IF_CALRDY_MASK 0x20UL
617 #define _CMU_IF_CALRDY_DEFAULT 0x00000000UL
618 #define CMU_IF_CALRDY_DEFAULT (_CMU_IF_CALRDY_DEFAULT << 5)
619 #define CMU_IF_CALOF (0x1UL << 6)
620 #define _CMU_IF_CALOF_SHIFT 6
621 #define _CMU_IF_CALOF_MASK 0x40UL
622 #define _CMU_IF_CALOF_DEFAULT 0x00000000UL
623 #define CMU_IF_CALOF_DEFAULT (_CMU_IF_CALOF_DEFAULT << 6)
625 /* Bit fields for CMU IFS */
626 #define _CMU_IFS_RESETVALUE 0x00000000UL
627 #define _CMU_IFS_MASK 0x0000007FUL
628 #define CMU_IFS_HFRCORDY (0x1UL << 0)
629 #define _CMU_IFS_HFRCORDY_SHIFT 0
630 #define _CMU_IFS_HFRCORDY_MASK 0x1UL
631 #define _CMU_IFS_HFRCORDY_DEFAULT 0x00000000UL
632 #define CMU_IFS_HFRCORDY_DEFAULT (_CMU_IFS_HFRCORDY_DEFAULT << 0)
633 #define CMU_IFS_HFXORDY (0x1UL << 1)
634 #define _CMU_IFS_HFXORDY_SHIFT 1
635 #define _CMU_IFS_HFXORDY_MASK 0x2UL
636 #define _CMU_IFS_HFXORDY_DEFAULT 0x00000000UL
637 #define CMU_IFS_HFXORDY_DEFAULT (_CMU_IFS_HFXORDY_DEFAULT << 1)
638 #define CMU_IFS_LFRCORDY (0x1UL << 2)
639 #define _CMU_IFS_LFRCORDY_SHIFT 2
640 #define _CMU_IFS_LFRCORDY_MASK 0x4UL
641 #define _CMU_IFS_LFRCORDY_DEFAULT 0x00000000UL
642 #define CMU_IFS_LFRCORDY_DEFAULT (_CMU_IFS_LFRCORDY_DEFAULT << 2)
643 #define CMU_IFS_LFXORDY (0x1UL << 3)
644 #define _CMU_IFS_LFXORDY_SHIFT 3
645 #define _CMU_IFS_LFXORDY_MASK 0x8UL
646 #define _CMU_IFS_LFXORDY_DEFAULT 0x00000000UL
647 #define CMU_IFS_LFXORDY_DEFAULT (_CMU_IFS_LFXORDY_DEFAULT << 3)
648 #define CMU_IFS_AUXHFRCORDY (0x1UL << 4)
649 #define _CMU_IFS_AUXHFRCORDY_SHIFT 4
650 #define _CMU_IFS_AUXHFRCORDY_MASK 0x10UL
651 #define _CMU_IFS_AUXHFRCORDY_DEFAULT 0x00000000UL
652 #define CMU_IFS_AUXHFRCORDY_DEFAULT (_CMU_IFS_AUXHFRCORDY_DEFAULT << 4)
653 #define CMU_IFS_CALRDY (0x1UL << 5)
654 #define _CMU_IFS_CALRDY_SHIFT 5
655 #define _CMU_IFS_CALRDY_MASK 0x20UL
656 #define _CMU_IFS_CALRDY_DEFAULT 0x00000000UL
657 #define CMU_IFS_CALRDY_DEFAULT (_CMU_IFS_CALRDY_DEFAULT << 5)
658 #define CMU_IFS_CALOF (0x1UL << 6)
659 #define _CMU_IFS_CALOF_SHIFT 6
660 #define _CMU_IFS_CALOF_MASK 0x40UL
661 #define _CMU_IFS_CALOF_DEFAULT 0x00000000UL
662 #define CMU_IFS_CALOF_DEFAULT (_CMU_IFS_CALOF_DEFAULT << 6)
664 /* Bit fields for CMU IFC */
665 #define _CMU_IFC_RESETVALUE 0x00000000UL
666 #define _CMU_IFC_MASK 0x0000007FUL
667 #define CMU_IFC_HFRCORDY (0x1UL << 0)
668 #define _CMU_IFC_HFRCORDY_SHIFT 0
669 #define _CMU_IFC_HFRCORDY_MASK 0x1UL
670 #define _CMU_IFC_HFRCORDY_DEFAULT 0x00000000UL
671 #define CMU_IFC_HFRCORDY_DEFAULT (_CMU_IFC_HFRCORDY_DEFAULT << 0)
672 #define CMU_IFC_HFXORDY (0x1UL << 1)
673 #define _CMU_IFC_HFXORDY_SHIFT 1
674 #define _CMU_IFC_HFXORDY_MASK 0x2UL
675 #define _CMU_IFC_HFXORDY_DEFAULT 0x00000000UL
676 #define CMU_IFC_HFXORDY_DEFAULT (_CMU_IFC_HFXORDY_DEFAULT << 1)
677 #define CMU_IFC_LFRCORDY (0x1UL << 2)
678 #define _CMU_IFC_LFRCORDY_SHIFT 2
679 #define _CMU_IFC_LFRCORDY_MASK 0x4UL
680 #define _CMU_IFC_LFRCORDY_DEFAULT 0x00000000UL
681 #define CMU_IFC_LFRCORDY_DEFAULT (_CMU_IFC_LFRCORDY_DEFAULT << 2)
682 #define CMU_IFC_LFXORDY (0x1UL << 3)
683 #define _CMU_IFC_LFXORDY_SHIFT 3
684 #define _CMU_IFC_LFXORDY_MASK 0x8UL
685 #define _CMU_IFC_LFXORDY_DEFAULT 0x00000000UL
686 #define CMU_IFC_LFXORDY_DEFAULT (_CMU_IFC_LFXORDY_DEFAULT << 3)
687 #define CMU_IFC_AUXHFRCORDY (0x1UL << 4)
688 #define _CMU_IFC_AUXHFRCORDY_SHIFT 4
689 #define _CMU_IFC_AUXHFRCORDY_MASK 0x10UL
690 #define _CMU_IFC_AUXHFRCORDY_DEFAULT 0x00000000UL
691 #define CMU_IFC_AUXHFRCORDY_DEFAULT (_CMU_IFC_AUXHFRCORDY_DEFAULT << 4)
692 #define CMU_IFC_CALRDY (0x1UL << 5)
693 #define _CMU_IFC_CALRDY_SHIFT 5
694 #define _CMU_IFC_CALRDY_MASK 0x20UL
695 #define _CMU_IFC_CALRDY_DEFAULT 0x00000000UL
696 #define CMU_IFC_CALRDY_DEFAULT (_CMU_IFC_CALRDY_DEFAULT << 5)
697 #define CMU_IFC_CALOF (0x1UL << 6)
698 #define _CMU_IFC_CALOF_SHIFT 6
699 #define _CMU_IFC_CALOF_MASK 0x40UL
700 #define _CMU_IFC_CALOF_DEFAULT 0x00000000UL
701 #define CMU_IFC_CALOF_DEFAULT (_CMU_IFC_CALOF_DEFAULT << 6)
703 /* Bit fields for CMU IEN */
704 #define _CMU_IEN_RESETVALUE 0x00000000UL
705 #define _CMU_IEN_MASK 0x0000007FUL
706 #define CMU_IEN_HFRCORDY (0x1UL << 0)
707 #define _CMU_IEN_HFRCORDY_SHIFT 0
708 #define _CMU_IEN_HFRCORDY_MASK 0x1UL
709 #define _CMU_IEN_HFRCORDY_DEFAULT 0x00000000UL
710 #define CMU_IEN_HFRCORDY_DEFAULT (_CMU_IEN_HFRCORDY_DEFAULT << 0)
711 #define CMU_IEN_HFXORDY (0x1UL << 1)
712 #define _CMU_IEN_HFXORDY_SHIFT 1
713 #define _CMU_IEN_HFXORDY_MASK 0x2UL
714 #define _CMU_IEN_HFXORDY_DEFAULT 0x00000000UL
715 #define CMU_IEN_HFXORDY_DEFAULT (_CMU_IEN_HFXORDY_DEFAULT << 1)
716 #define CMU_IEN_LFRCORDY (0x1UL << 2)
717 #define _CMU_IEN_LFRCORDY_SHIFT 2
718 #define _CMU_IEN_LFRCORDY_MASK 0x4UL
719 #define _CMU_IEN_LFRCORDY_DEFAULT 0x00000000UL
720 #define CMU_IEN_LFRCORDY_DEFAULT (_CMU_IEN_LFRCORDY_DEFAULT << 2)
721 #define CMU_IEN_LFXORDY (0x1UL << 3)
722 #define _CMU_IEN_LFXORDY_SHIFT 3
723 #define _CMU_IEN_LFXORDY_MASK 0x8UL
724 #define _CMU_IEN_LFXORDY_DEFAULT 0x00000000UL
725 #define CMU_IEN_LFXORDY_DEFAULT (_CMU_IEN_LFXORDY_DEFAULT << 3)
726 #define CMU_IEN_AUXHFRCORDY (0x1UL << 4)
727 #define _CMU_IEN_AUXHFRCORDY_SHIFT 4
728 #define _CMU_IEN_AUXHFRCORDY_MASK 0x10UL
729 #define _CMU_IEN_AUXHFRCORDY_DEFAULT 0x00000000UL
730 #define CMU_IEN_AUXHFRCORDY_DEFAULT (_CMU_IEN_AUXHFRCORDY_DEFAULT << 4)
731 #define CMU_IEN_CALRDY (0x1UL << 5)
732 #define _CMU_IEN_CALRDY_SHIFT 5
733 #define _CMU_IEN_CALRDY_MASK 0x20UL
734 #define _CMU_IEN_CALRDY_DEFAULT 0x00000000UL
735 #define CMU_IEN_CALRDY_DEFAULT (_CMU_IEN_CALRDY_DEFAULT << 5)
736 #define CMU_IEN_CALOF (0x1UL << 6)
737 #define _CMU_IEN_CALOF_SHIFT 6
738 #define _CMU_IEN_CALOF_MASK 0x40UL
739 #define _CMU_IEN_CALOF_DEFAULT 0x00000000UL
740 #define CMU_IEN_CALOF_DEFAULT (_CMU_IEN_CALOF_DEFAULT << 6)
742 /* Bit fields for CMU HFCORECLKEN0 */
743 #define _CMU_HFCORECLKEN0_RESETVALUE 0x00000000UL
744 #define _CMU_HFCORECLKEN0_MASK 0x00000007UL
745 #define CMU_HFCORECLKEN0_AES (0x1UL << 0)
746 #define _CMU_HFCORECLKEN0_AES_SHIFT 0
747 #define _CMU_HFCORECLKEN0_AES_MASK 0x1UL
748 #define _CMU_HFCORECLKEN0_AES_DEFAULT 0x00000000UL
749 #define CMU_HFCORECLKEN0_AES_DEFAULT (_CMU_HFCORECLKEN0_AES_DEFAULT << 0)
750 #define CMU_HFCORECLKEN0_DMA (0x1UL << 1)
751 #define _CMU_HFCORECLKEN0_DMA_SHIFT 1
752 #define _CMU_HFCORECLKEN0_DMA_MASK 0x2UL
753 #define _CMU_HFCORECLKEN0_DMA_DEFAULT 0x00000000UL
754 #define CMU_HFCORECLKEN0_DMA_DEFAULT (_CMU_HFCORECLKEN0_DMA_DEFAULT << 1)
755 #define CMU_HFCORECLKEN0_LE (0x1UL << 2)
756 #define _CMU_HFCORECLKEN0_LE_SHIFT 2
757 #define _CMU_HFCORECLKEN0_LE_MASK 0x4UL
758 #define _CMU_HFCORECLKEN0_LE_DEFAULT 0x00000000UL
759 #define CMU_HFCORECLKEN0_LE_DEFAULT (_CMU_HFCORECLKEN0_LE_DEFAULT << 2)
761 /* Bit fields for CMU HFPERCLKEN0 */
762 #define _CMU_HFPERCLKEN0_RESETVALUE 0x00000000UL
763 #define _CMU_HFPERCLKEN0_MASK 0x00000DDFUL
764 #define CMU_HFPERCLKEN0_TIMER0 (0x1UL << 0)
765 #define _CMU_HFPERCLKEN0_TIMER0_SHIFT 0
766 #define _CMU_HFPERCLKEN0_TIMER0_MASK 0x1UL
767 #define _CMU_HFPERCLKEN0_TIMER0_DEFAULT 0x00000000UL
768 #define CMU_HFPERCLKEN0_TIMER0_DEFAULT (_CMU_HFPERCLKEN0_TIMER0_DEFAULT << 0)
769 #define CMU_HFPERCLKEN0_TIMER1 (0x1UL << 1)
770 #define _CMU_HFPERCLKEN0_TIMER1_SHIFT 1
771 #define _CMU_HFPERCLKEN0_TIMER1_MASK 0x2UL
772 #define _CMU_HFPERCLKEN0_TIMER1_DEFAULT 0x00000000UL
773 #define CMU_HFPERCLKEN0_TIMER1_DEFAULT (_CMU_HFPERCLKEN0_TIMER1_DEFAULT << 1)
774 #define CMU_HFPERCLKEN0_ACMP0 (0x1UL << 2)
775 #define _CMU_HFPERCLKEN0_ACMP0_SHIFT 2
776 #define _CMU_HFPERCLKEN0_ACMP0_MASK 0x4UL
777 #define _CMU_HFPERCLKEN0_ACMP0_DEFAULT 0x00000000UL
778 #define CMU_HFPERCLKEN0_ACMP0_DEFAULT (_CMU_HFPERCLKEN0_ACMP0_DEFAULT << 2)
779 #define CMU_HFPERCLKEN0_USART1 (0x1UL << 3)
780 #define _CMU_HFPERCLKEN0_USART1_SHIFT 3
781 #define _CMU_HFPERCLKEN0_USART1_MASK 0x8UL
782 #define _CMU_HFPERCLKEN0_USART1_DEFAULT 0x00000000UL
783 #define CMU_HFPERCLKEN0_USART1_DEFAULT (_CMU_HFPERCLKEN0_USART1_DEFAULT << 3)
784 #define CMU_HFPERCLKEN0_PRS (0x1UL << 4)
785 #define _CMU_HFPERCLKEN0_PRS_SHIFT 4
786 #define _CMU_HFPERCLKEN0_PRS_MASK 0x10UL
787 #define _CMU_HFPERCLKEN0_PRS_DEFAULT 0x00000000UL
788 #define CMU_HFPERCLKEN0_PRS_DEFAULT (_CMU_HFPERCLKEN0_PRS_DEFAULT << 4)
789 #define CMU_HFPERCLKEN0_IDAC0 (0x1UL << 6)
790 #define _CMU_HFPERCLKEN0_IDAC0_SHIFT 6
791 #define _CMU_HFPERCLKEN0_IDAC0_MASK 0x40UL
792 #define _CMU_HFPERCLKEN0_IDAC0_DEFAULT 0x00000000UL
793 #define CMU_HFPERCLKEN0_IDAC0_DEFAULT (_CMU_HFPERCLKEN0_IDAC0_DEFAULT << 6)
794 #define CMU_HFPERCLKEN0_GPIO (0x1UL << 7)
795 #define _CMU_HFPERCLKEN0_GPIO_SHIFT 7
796 #define _CMU_HFPERCLKEN0_GPIO_MASK 0x80UL
797 #define _CMU_HFPERCLKEN0_GPIO_DEFAULT 0x00000000UL
798 #define CMU_HFPERCLKEN0_GPIO_DEFAULT (_CMU_HFPERCLKEN0_GPIO_DEFAULT << 7)
799 #define CMU_HFPERCLKEN0_VCMP (0x1UL << 8)
800 #define _CMU_HFPERCLKEN0_VCMP_SHIFT 8
801 #define _CMU_HFPERCLKEN0_VCMP_MASK 0x100UL
802 #define _CMU_HFPERCLKEN0_VCMP_DEFAULT 0x00000000UL
803 #define CMU_HFPERCLKEN0_VCMP_DEFAULT (_CMU_HFPERCLKEN0_VCMP_DEFAULT << 8)
804 #define CMU_HFPERCLKEN0_ADC0 (0x1UL << 10)
805 #define _CMU_HFPERCLKEN0_ADC0_SHIFT 10
806 #define _CMU_HFPERCLKEN0_ADC0_MASK 0x400UL
807 #define _CMU_HFPERCLKEN0_ADC0_DEFAULT 0x00000000UL
808 #define CMU_HFPERCLKEN0_ADC0_DEFAULT (_CMU_HFPERCLKEN0_ADC0_DEFAULT << 10)
809 #define CMU_HFPERCLKEN0_I2C0 (0x1UL << 11)
810 #define _CMU_HFPERCLKEN0_I2C0_SHIFT 11
811 #define _CMU_HFPERCLKEN0_I2C0_MASK 0x800UL
812 #define _CMU_HFPERCLKEN0_I2C0_DEFAULT 0x00000000UL
813 #define CMU_HFPERCLKEN0_I2C0_DEFAULT (_CMU_HFPERCLKEN0_I2C0_DEFAULT << 11)
815 /* Bit fields for CMU SYNCBUSY */
816 #define _CMU_SYNCBUSY_RESETVALUE 0x00000000UL
817 #define _CMU_SYNCBUSY_MASK 0x00000055UL
818 #define CMU_SYNCBUSY_LFACLKEN0 (0x1UL << 0)
819 #define _CMU_SYNCBUSY_LFACLKEN0_SHIFT 0
820 #define _CMU_SYNCBUSY_LFACLKEN0_MASK 0x1UL
821 #define _CMU_SYNCBUSY_LFACLKEN0_DEFAULT 0x00000000UL
822 #define CMU_SYNCBUSY_LFACLKEN0_DEFAULT (_CMU_SYNCBUSY_LFACLKEN0_DEFAULT << 0)
823 #define CMU_SYNCBUSY_LFAPRESC0 (0x1UL << 2)
824 #define _CMU_SYNCBUSY_LFAPRESC0_SHIFT 2
825 #define _CMU_SYNCBUSY_LFAPRESC0_MASK 0x4UL
826 #define _CMU_SYNCBUSY_LFAPRESC0_DEFAULT 0x00000000UL
827 #define CMU_SYNCBUSY_LFAPRESC0_DEFAULT (_CMU_SYNCBUSY_LFAPRESC0_DEFAULT << 2)
828 #define CMU_SYNCBUSY_LFBCLKEN0 (0x1UL << 4)
829 #define _CMU_SYNCBUSY_LFBCLKEN0_SHIFT 4
830 #define _CMU_SYNCBUSY_LFBCLKEN0_MASK 0x10UL
831 #define _CMU_SYNCBUSY_LFBCLKEN0_DEFAULT 0x00000000UL
832 #define CMU_SYNCBUSY_LFBCLKEN0_DEFAULT (_CMU_SYNCBUSY_LFBCLKEN0_DEFAULT << 4)
833 #define CMU_SYNCBUSY_LFBPRESC0 (0x1UL << 6)
834 #define _CMU_SYNCBUSY_LFBPRESC0_SHIFT 6
835 #define _CMU_SYNCBUSY_LFBPRESC0_MASK 0x40UL
836 #define _CMU_SYNCBUSY_LFBPRESC0_DEFAULT 0x00000000UL
837 #define CMU_SYNCBUSY_LFBPRESC0_DEFAULT (_CMU_SYNCBUSY_LFBPRESC0_DEFAULT << 6)
839 /* Bit fields for CMU FREEZE */
840 #define _CMU_FREEZE_RESETVALUE 0x00000000UL
841 #define _CMU_FREEZE_MASK 0x00000001UL
842 #define CMU_FREEZE_REGFREEZE (0x1UL << 0)
843 #define _CMU_FREEZE_REGFREEZE_SHIFT 0
844 #define _CMU_FREEZE_REGFREEZE_MASK 0x1UL
845 #define _CMU_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
846 #define _CMU_FREEZE_REGFREEZE_UPDATE 0x00000000UL
847 #define _CMU_FREEZE_REGFREEZE_FREEZE 0x00000001UL
848 #define CMU_FREEZE_REGFREEZE_DEFAULT (_CMU_FREEZE_REGFREEZE_DEFAULT << 0)
849 #define CMU_FREEZE_REGFREEZE_UPDATE (_CMU_FREEZE_REGFREEZE_UPDATE << 0)
850 #define CMU_FREEZE_REGFREEZE_FREEZE (_CMU_FREEZE_REGFREEZE_FREEZE << 0)
852 /* Bit fields for CMU LFACLKEN0 */
853 #define _CMU_LFACLKEN0_RESETVALUE 0x00000000UL
854 #define _CMU_LFACLKEN0_MASK 0x00000001UL
855 #define CMU_LFACLKEN0_RTC (0x1UL << 0)
856 #define _CMU_LFACLKEN0_RTC_SHIFT 0
857 #define _CMU_LFACLKEN0_RTC_MASK 0x1UL
858 #define _CMU_LFACLKEN0_RTC_DEFAULT 0x00000000UL
859 #define CMU_LFACLKEN0_RTC_DEFAULT (_CMU_LFACLKEN0_RTC_DEFAULT << 0)
861 /* Bit fields for CMU LFBCLKEN0 */
862 #define _CMU_LFBCLKEN0_RESETVALUE 0x00000000UL
863 #define _CMU_LFBCLKEN0_MASK 0x00000001UL
864 #define CMU_LFBCLKEN0_LEUART0 (0x1UL << 0)
865 #define _CMU_LFBCLKEN0_LEUART0_SHIFT 0
866 #define _CMU_LFBCLKEN0_LEUART0_MASK 0x1UL
867 #define _CMU_LFBCLKEN0_LEUART0_DEFAULT 0x00000000UL
868 #define CMU_LFBCLKEN0_LEUART0_DEFAULT (_CMU_LFBCLKEN0_LEUART0_DEFAULT << 0)
870 /* Bit fields for CMU LFAPRESC0 */
871 #define _CMU_LFAPRESC0_RESETVALUE 0x00000000UL
872 #define _CMU_LFAPRESC0_MASK 0x0000000FUL
873 #define _CMU_LFAPRESC0_RTC_SHIFT 0
874 #define _CMU_LFAPRESC0_RTC_MASK 0xFUL
875 #define _CMU_LFAPRESC0_RTC_DIV1 0x00000000UL
876 #define _CMU_LFAPRESC0_RTC_DIV2 0x00000001UL
877 #define _CMU_LFAPRESC0_RTC_DIV4 0x00000002UL
878 #define _CMU_LFAPRESC0_RTC_DIV8 0x00000003UL
879 #define _CMU_LFAPRESC0_RTC_DIV16 0x00000004UL
880 #define _CMU_LFAPRESC0_RTC_DIV32 0x00000005UL
881 #define _CMU_LFAPRESC0_RTC_DIV64 0x00000006UL
882 #define _CMU_LFAPRESC0_RTC_DIV128 0x00000007UL
883 #define _CMU_LFAPRESC0_RTC_DIV256 0x00000008UL
884 #define _CMU_LFAPRESC0_RTC_DIV512 0x00000009UL
885 #define _CMU_LFAPRESC0_RTC_DIV1024 0x0000000AUL
886 #define _CMU_LFAPRESC0_RTC_DIV2048 0x0000000BUL
887 #define _CMU_LFAPRESC0_RTC_DIV4096 0x0000000CUL
888 #define _CMU_LFAPRESC0_RTC_DIV8192 0x0000000DUL
889 #define _CMU_LFAPRESC0_RTC_DIV16384 0x0000000EUL
890 #define _CMU_LFAPRESC0_RTC_DIV32768 0x0000000FUL
891 #define CMU_LFAPRESC0_RTC_DIV1 (_CMU_LFAPRESC0_RTC_DIV1 << 0)
892 #define CMU_LFAPRESC0_RTC_DIV2 (_CMU_LFAPRESC0_RTC_DIV2 << 0)
893 #define CMU_LFAPRESC0_RTC_DIV4 (_CMU_LFAPRESC0_RTC_DIV4 << 0)
894 #define CMU_LFAPRESC0_RTC_DIV8 (_CMU_LFAPRESC0_RTC_DIV8 << 0)
895 #define CMU_LFAPRESC0_RTC_DIV16 (_CMU_LFAPRESC0_RTC_DIV16 << 0)
896 #define CMU_LFAPRESC0_RTC_DIV32 (_CMU_LFAPRESC0_RTC_DIV32 << 0)
897 #define CMU_LFAPRESC0_RTC_DIV64 (_CMU_LFAPRESC0_RTC_DIV64 << 0)
898 #define CMU_LFAPRESC0_RTC_DIV128 (_CMU_LFAPRESC0_RTC_DIV128 << 0)
899 #define CMU_LFAPRESC0_RTC_DIV256 (_CMU_LFAPRESC0_RTC_DIV256 << 0)
900 #define CMU_LFAPRESC0_RTC_DIV512 (_CMU_LFAPRESC0_RTC_DIV512 << 0)
901 #define CMU_LFAPRESC0_RTC_DIV1024 (_CMU_LFAPRESC0_RTC_DIV1024 << 0)
902 #define CMU_LFAPRESC0_RTC_DIV2048 (_CMU_LFAPRESC0_RTC_DIV2048 << 0)
903 #define CMU_LFAPRESC0_RTC_DIV4096 (_CMU_LFAPRESC0_RTC_DIV4096 << 0)
904 #define CMU_LFAPRESC0_RTC_DIV8192 (_CMU_LFAPRESC0_RTC_DIV8192 << 0)
905 #define CMU_LFAPRESC0_RTC_DIV16384 (_CMU_LFAPRESC0_RTC_DIV16384 << 0)
906 #define CMU_LFAPRESC0_RTC_DIV32768 (_CMU_LFAPRESC0_RTC_DIV32768 << 0)
908 /* Bit fields for CMU LFBPRESC0 */
909 #define _CMU_LFBPRESC0_RESETVALUE 0x00000000UL
910 #define _CMU_LFBPRESC0_MASK 0x00000003UL
911 #define _CMU_LFBPRESC0_LEUART0_SHIFT 0
912 #define _CMU_LFBPRESC0_LEUART0_MASK 0x3UL
913 #define _CMU_LFBPRESC0_LEUART0_DIV1 0x00000000UL
914 #define _CMU_LFBPRESC0_LEUART0_DIV2 0x00000001UL
915 #define _CMU_LFBPRESC0_LEUART0_DIV4 0x00000002UL
916 #define _CMU_LFBPRESC0_LEUART0_DIV8 0x00000003UL
917 #define CMU_LFBPRESC0_LEUART0_DIV1 (_CMU_LFBPRESC0_LEUART0_DIV1 << 0)
918 #define CMU_LFBPRESC0_LEUART0_DIV2 (_CMU_LFBPRESC0_LEUART0_DIV2 << 0)
919 #define CMU_LFBPRESC0_LEUART0_DIV4 (_CMU_LFBPRESC0_LEUART0_DIV4 << 0)
920 #define CMU_LFBPRESC0_LEUART0_DIV8 (_CMU_LFBPRESC0_LEUART0_DIV8 << 0)
922 /* Bit fields for CMU PCNTCTRL */
923 #define _CMU_PCNTCTRL_RESETVALUE 0x00000000UL
924 #define _CMU_PCNTCTRL_MASK 0x00000003UL
925 #define CMU_PCNTCTRL_PCNT0CLKEN (0x1UL << 0)
926 #define _CMU_PCNTCTRL_PCNT0CLKEN_SHIFT 0
927 #define _CMU_PCNTCTRL_PCNT0CLKEN_MASK 0x1UL
928 #define _CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT 0x00000000UL
929 #define CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT (_CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT << 0)
930 #define CMU_PCNTCTRL_PCNT0CLKSEL (0x1UL << 1)
931 #define _CMU_PCNTCTRL_PCNT0CLKSEL_SHIFT 1
932 #define _CMU_PCNTCTRL_PCNT0CLKSEL_MASK 0x2UL
933 #define _CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT 0x00000000UL
934 #define _CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK 0x00000000UL
935 #define _CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 0x00000001UL
936 #define CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT (_CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT << 1)
937 #define CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK (_CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK << 1)
938 #define CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 (_CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 << 1)
940 /* Bit fields for CMU ROUTE */
941 #define _CMU_ROUTE_RESETVALUE 0x00000000UL
942 #define _CMU_ROUTE_MASK 0x0000001FUL
943 #define CMU_ROUTE_CLKOUT0PEN (0x1UL << 0)
944 #define _CMU_ROUTE_CLKOUT0PEN_SHIFT 0
945 #define _CMU_ROUTE_CLKOUT0PEN_MASK 0x1UL
946 #define _CMU_ROUTE_CLKOUT0PEN_DEFAULT 0x00000000UL
947 #define CMU_ROUTE_CLKOUT0PEN_DEFAULT (_CMU_ROUTE_CLKOUT0PEN_DEFAULT << 0)
948 #define CMU_ROUTE_CLKOUT1PEN (0x1UL << 1)
949 #define _CMU_ROUTE_CLKOUT1PEN_SHIFT 1
950 #define _CMU_ROUTE_CLKOUT1PEN_MASK 0x2UL
951 #define _CMU_ROUTE_CLKOUT1PEN_DEFAULT 0x00000000UL
952 #define CMU_ROUTE_CLKOUT1PEN_DEFAULT (_CMU_ROUTE_CLKOUT1PEN_DEFAULT << 1)
953 #define _CMU_ROUTE_LOCATION_SHIFT 2
954 #define _CMU_ROUTE_LOCATION_MASK 0x1CUL
955 #define _CMU_ROUTE_LOCATION_LOC0 0x00000000UL
956 #define _CMU_ROUTE_LOCATION_DEFAULT 0x00000000UL
957 #define _CMU_ROUTE_LOCATION_LOC1 0x00000001UL
958 #define _CMU_ROUTE_LOCATION_LOC2 0x00000002UL
959 #define CMU_ROUTE_LOCATION_LOC0 (_CMU_ROUTE_LOCATION_LOC0 << 2)
960 #define CMU_ROUTE_LOCATION_DEFAULT (_CMU_ROUTE_LOCATION_DEFAULT << 2)
961 #define CMU_ROUTE_LOCATION_LOC1 (_CMU_ROUTE_LOCATION_LOC1 << 2)
962 #define CMU_ROUTE_LOCATION_LOC2 (_CMU_ROUTE_LOCATION_LOC2 << 2)
964 /* Bit fields for CMU LOCK */
965 #define _CMU_LOCK_RESETVALUE 0x00000000UL
966 #define _CMU_LOCK_MASK 0x0000FFFFUL
967 #define _CMU_LOCK_LOCKKEY_SHIFT 0
968 #define _CMU_LOCK_LOCKKEY_MASK 0xFFFFUL
969 #define _CMU_LOCK_LOCKKEY_DEFAULT 0x00000000UL
970 #define _CMU_LOCK_LOCKKEY_LOCK 0x00000000UL
971 #define _CMU_LOCK_LOCKKEY_UNLOCKED 0x00000000UL
972 #define _CMU_LOCK_LOCKKEY_LOCKED 0x00000001UL
973 #define _CMU_LOCK_LOCKKEY_UNLOCK 0x0000580EUL
974 #define CMU_LOCK_LOCKKEY_DEFAULT (_CMU_LOCK_LOCKKEY_DEFAULT << 0)
975 #define CMU_LOCK_LOCKKEY_LOCK (_CMU_LOCK_LOCKKEY_LOCK << 0)
976 #define CMU_LOCK_LOCKKEY_UNLOCKED (_CMU_LOCK_LOCKKEY_UNLOCKED << 0)
977 #define CMU_LOCK_LOCKKEY_LOCKED (_CMU_LOCK_LOCKKEY_LOCKED << 0)
978 #define CMU_LOCK_LOCKKEY_UNLOCK (_CMU_LOCK_LOCKKEY_UNLOCK << 0)
__IOM uint32_t CALCTRL
Definition: efm32zg_cmu.h:49
__IM uint32_t IF
Definition: efm32zg_cmu.h:55
__IOM uint32_t IEN
Definition: efm32zg_cmu.h:58
__IOM uint32_t LFACLKEN0
Definition: efm32zg_cmu.h:64
__IOM uint32_t PCNTCTRL
Definition: efm32zg_cmu.h:73
__IOM uint32_t LFAPRESC0
Definition: efm32zg_cmu.h:69
__IOM uint32_t IFC
Definition: efm32zg_cmu.h:57
__IOM uint32_t HFCORECLKDIV
Definition: efm32zg_cmu.h:44
__IOM uint32_t CTRL
Definition: efm32zg_cmu.h:43
__IOM uint32_t HFCORECLKEN0
Definition: efm32zg_cmu.h:59
__IOM uint32_t LFBPRESC0
Definition: efm32zg_cmu.h:71
__IOM uint32_t AUXHFRCOCTRL
Definition: efm32zg_cmu.h:48
__IOM uint32_t OSCENCMD
Definition: efm32zg_cmu.h:51
__IOM uint32_t FREEZE
Definition: efm32zg_cmu.h:63
__IM uint32_t STATUS
Definition: efm32zg_cmu.h:54
__IOM uint32_t ROUTE
Definition: efm32zg_cmu.h:76
__IOM uint32_t LFBCLKEN0
Definition: efm32zg_cmu.h:66
__IOM uint32_t HFPERCLKDIV
Definition: efm32zg_cmu.h:45
__IOM uint32_t CALCNT
Definition: efm32zg_cmu.h:50
__IOM uint32_t HFPERCLKEN0
Definition: efm32zg_cmu.h:60
__IOM uint32_t IFS
Definition: efm32zg_cmu.h:56
__IOM uint32_t HFRCOCTRL
Definition: efm32zg_cmu.h:46
__IOM uint32_t CMD
Definition: efm32zg_cmu.h:52
__IM uint32_t SYNCBUSY
Definition: efm32zg_cmu.h:62
__IOM uint32_t LFCLKSEL
Definition: efm32zg_cmu.h:53
__IOM uint32_t LFRCOCTRL
Definition: efm32zg_cmu.h:47
__IOM uint32_t LOCK
Definition: efm32zg_cmu.h:77