EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
efm32hg_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  __IOM uint32_t LFCCLKEN0;
68  __IOM uint32_t LFAPRESC0;
69  uint32_t RESERVED2[1];
70  __IOM uint32_t LFBPRESC0;
71  uint32_t RESERVED3[1];
72  __IOM uint32_t PCNTCTRL;
74  uint32_t RESERVED4[1];
75  __IOM uint32_t ROUTE;
76  __IOM uint32_t LOCK;
78  uint32_t RESERVED5[18];
79  __IOM uint32_t USBCRCTRL;
80  __IOM uint32_t USHFRCOCTRL;
81  __IOM uint32_t USHFRCOTUNE;
82  __IOM uint32_t USHFRCOCONF;
83 } CMU_TypeDef;
85 /**************************************************************************/
90 /* Bit fields for CMU CTRL */
91 #define _CMU_CTRL_RESETVALUE 0x000C262CUL
92 #define _CMU_CTRL_MASK 0x07FFFEEFUL
93 #define _CMU_CTRL_HFXOMODE_SHIFT 0
94 #define _CMU_CTRL_HFXOMODE_MASK 0x3UL
95 #define _CMU_CTRL_HFXOMODE_DEFAULT 0x00000000UL
96 #define _CMU_CTRL_HFXOMODE_XTAL 0x00000000UL
97 #define _CMU_CTRL_HFXOMODE_BUFEXTCLK 0x00000001UL
98 #define _CMU_CTRL_HFXOMODE_DIGEXTCLK 0x00000002UL
99 #define CMU_CTRL_HFXOMODE_DEFAULT (_CMU_CTRL_HFXOMODE_DEFAULT << 0)
100 #define CMU_CTRL_HFXOMODE_XTAL (_CMU_CTRL_HFXOMODE_XTAL << 0)
101 #define CMU_CTRL_HFXOMODE_BUFEXTCLK (_CMU_CTRL_HFXOMODE_BUFEXTCLK << 0)
102 #define CMU_CTRL_HFXOMODE_DIGEXTCLK (_CMU_CTRL_HFXOMODE_DIGEXTCLK << 0)
103 #define _CMU_CTRL_HFXOBOOST_SHIFT 2
104 #define _CMU_CTRL_HFXOBOOST_MASK 0xCUL
105 #define _CMU_CTRL_HFXOBOOST_50PCENT 0x00000000UL
106 #define _CMU_CTRL_HFXOBOOST_70PCENT 0x00000001UL
107 #define _CMU_CTRL_HFXOBOOST_80PCENT 0x00000002UL
108 #define _CMU_CTRL_HFXOBOOST_DEFAULT 0x00000003UL
109 #define _CMU_CTRL_HFXOBOOST_100PCENT 0x00000003UL
110 #define CMU_CTRL_HFXOBOOST_50PCENT (_CMU_CTRL_HFXOBOOST_50PCENT << 2)
111 #define CMU_CTRL_HFXOBOOST_70PCENT (_CMU_CTRL_HFXOBOOST_70PCENT << 2)
112 #define CMU_CTRL_HFXOBOOST_80PCENT (_CMU_CTRL_HFXOBOOST_80PCENT << 2)
113 #define CMU_CTRL_HFXOBOOST_DEFAULT (_CMU_CTRL_HFXOBOOST_DEFAULT << 2)
114 #define CMU_CTRL_HFXOBOOST_100PCENT (_CMU_CTRL_HFXOBOOST_100PCENT << 2)
115 #define _CMU_CTRL_HFXOBUFCUR_SHIFT 5
116 #define _CMU_CTRL_HFXOBUFCUR_MASK 0x60UL
117 #define _CMU_CTRL_HFXOBUFCUR_DEFAULT 0x00000001UL
118 #define CMU_CTRL_HFXOBUFCUR_DEFAULT (_CMU_CTRL_HFXOBUFCUR_DEFAULT << 5)
119 #define CMU_CTRL_HFXOGLITCHDETEN (0x1UL << 7)
120 #define _CMU_CTRL_HFXOGLITCHDETEN_SHIFT 7
121 #define _CMU_CTRL_HFXOGLITCHDETEN_MASK 0x80UL
122 #define _CMU_CTRL_HFXOGLITCHDETEN_DEFAULT 0x00000000UL
123 #define CMU_CTRL_HFXOGLITCHDETEN_DEFAULT (_CMU_CTRL_HFXOGLITCHDETEN_DEFAULT << 7)
124 #define _CMU_CTRL_HFXOTIMEOUT_SHIFT 9
125 #define _CMU_CTRL_HFXOTIMEOUT_MASK 0x600UL
126 #define _CMU_CTRL_HFXOTIMEOUT_8CYCLES 0x00000000UL
127 #define _CMU_CTRL_HFXOTIMEOUT_256CYCLES 0x00000001UL
128 #define _CMU_CTRL_HFXOTIMEOUT_1KCYCLES 0x00000002UL
129 #define _CMU_CTRL_HFXOTIMEOUT_DEFAULT 0x00000003UL
130 #define _CMU_CTRL_HFXOTIMEOUT_16KCYCLES 0x00000003UL
131 #define CMU_CTRL_HFXOTIMEOUT_8CYCLES (_CMU_CTRL_HFXOTIMEOUT_8CYCLES << 9)
132 #define CMU_CTRL_HFXOTIMEOUT_256CYCLES (_CMU_CTRL_HFXOTIMEOUT_256CYCLES << 9)
133 #define CMU_CTRL_HFXOTIMEOUT_1KCYCLES (_CMU_CTRL_HFXOTIMEOUT_1KCYCLES << 9)
134 #define CMU_CTRL_HFXOTIMEOUT_DEFAULT (_CMU_CTRL_HFXOTIMEOUT_DEFAULT << 9)
135 #define CMU_CTRL_HFXOTIMEOUT_16KCYCLES (_CMU_CTRL_HFXOTIMEOUT_16KCYCLES << 9)
136 #define _CMU_CTRL_LFXOMODE_SHIFT 11
137 #define _CMU_CTRL_LFXOMODE_MASK 0x1800UL
138 #define _CMU_CTRL_LFXOMODE_DEFAULT 0x00000000UL
139 #define _CMU_CTRL_LFXOMODE_XTAL 0x00000000UL
140 #define _CMU_CTRL_LFXOMODE_BUFEXTCLK 0x00000001UL
141 #define _CMU_CTRL_LFXOMODE_DIGEXTCLK 0x00000002UL
142 #define CMU_CTRL_LFXOMODE_DEFAULT (_CMU_CTRL_LFXOMODE_DEFAULT << 11)
143 #define CMU_CTRL_LFXOMODE_XTAL (_CMU_CTRL_LFXOMODE_XTAL << 11)
144 #define CMU_CTRL_LFXOMODE_BUFEXTCLK (_CMU_CTRL_LFXOMODE_BUFEXTCLK << 11)
145 #define CMU_CTRL_LFXOMODE_DIGEXTCLK (_CMU_CTRL_LFXOMODE_DIGEXTCLK << 11)
146 #define CMU_CTRL_LFXOBOOST (0x1UL << 13)
147 #define _CMU_CTRL_LFXOBOOST_SHIFT 13
148 #define _CMU_CTRL_LFXOBOOST_MASK 0x2000UL
149 #define _CMU_CTRL_LFXOBOOST_70PCENT 0x00000000UL
150 #define _CMU_CTRL_LFXOBOOST_DEFAULT 0x00000001UL
151 #define _CMU_CTRL_LFXOBOOST_100PCENT 0x00000001UL
152 #define CMU_CTRL_LFXOBOOST_70PCENT (_CMU_CTRL_LFXOBOOST_70PCENT << 13)
153 #define CMU_CTRL_LFXOBOOST_DEFAULT (_CMU_CTRL_LFXOBOOST_DEFAULT << 13)
154 #define CMU_CTRL_LFXOBOOST_100PCENT (_CMU_CTRL_LFXOBOOST_100PCENT << 13)
155 #define _CMU_CTRL_HFCLKDIV_SHIFT 14
156 #define _CMU_CTRL_HFCLKDIV_MASK 0x1C000UL
157 #define _CMU_CTRL_HFCLKDIV_DEFAULT 0x00000000UL
158 #define CMU_CTRL_HFCLKDIV_DEFAULT (_CMU_CTRL_HFCLKDIV_DEFAULT << 14)
159 #define CMU_CTRL_LFXOBUFCUR (0x1UL << 17)
160 #define _CMU_CTRL_LFXOBUFCUR_SHIFT 17
161 #define _CMU_CTRL_LFXOBUFCUR_MASK 0x20000UL
162 #define _CMU_CTRL_LFXOBUFCUR_DEFAULT 0x00000000UL
163 #define CMU_CTRL_LFXOBUFCUR_DEFAULT (_CMU_CTRL_LFXOBUFCUR_DEFAULT << 17)
164 #define _CMU_CTRL_LFXOTIMEOUT_SHIFT 18
165 #define _CMU_CTRL_LFXOTIMEOUT_MASK 0xC0000UL
166 #define _CMU_CTRL_LFXOTIMEOUT_8CYCLES 0x00000000UL
167 #define _CMU_CTRL_LFXOTIMEOUT_1KCYCLES 0x00000001UL
168 #define _CMU_CTRL_LFXOTIMEOUT_16KCYCLES 0x00000002UL
169 #define _CMU_CTRL_LFXOTIMEOUT_DEFAULT 0x00000003UL
170 #define _CMU_CTRL_LFXOTIMEOUT_32KCYCLES 0x00000003UL
171 #define CMU_CTRL_LFXOTIMEOUT_8CYCLES (_CMU_CTRL_LFXOTIMEOUT_8CYCLES << 18)
172 #define CMU_CTRL_LFXOTIMEOUT_1KCYCLES (_CMU_CTRL_LFXOTIMEOUT_1KCYCLES << 18)
173 #define CMU_CTRL_LFXOTIMEOUT_16KCYCLES (_CMU_CTRL_LFXOTIMEOUT_16KCYCLES << 18)
174 #define CMU_CTRL_LFXOTIMEOUT_DEFAULT (_CMU_CTRL_LFXOTIMEOUT_DEFAULT << 18)
175 #define CMU_CTRL_LFXOTIMEOUT_32KCYCLES (_CMU_CTRL_LFXOTIMEOUT_32KCYCLES << 18)
176 #define _CMU_CTRL_CLKOUTSEL0_SHIFT 20
177 #define _CMU_CTRL_CLKOUTSEL0_MASK 0x700000UL
178 #define _CMU_CTRL_CLKOUTSEL0_DEFAULT 0x00000000UL
179 #define _CMU_CTRL_CLKOUTSEL0_HFRCO 0x00000000UL
180 #define _CMU_CTRL_CLKOUTSEL0_HFXO 0x00000001UL
181 #define _CMU_CTRL_CLKOUTSEL0_HFCLK2 0x00000002UL
182 #define _CMU_CTRL_CLKOUTSEL0_HFCLK4 0x00000003UL
183 #define _CMU_CTRL_CLKOUTSEL0_HFCLK8 0x00000004UL
184 #define _CMU_CTRL_CLKOUTSEL0_HFCLK16 0x00000005UL
185 #define _CMU_CTRL_CLKOUTSEL0_ULFRCO 0x00000006UL
186 #define _CMU_CTRL_CLKOUTSEL0_AUXHFRCO 0x00000007UL
187 #define CMU_CTRL_CLKOUTSEL0_DEFAULT (_CMU_CTRL_CLKOUTSEL0_DEFAULT << 20)
188 #define CMU_CTRL_CLKOUTSEL0_HFRCO (_CMU_CTRL_CLKOUTSEL0_HFRCO << 20)
189 #define CMU_CTRL_CLKOUTSEL0_HFXO (_CMU_CTRL_CLKOUTSEL0_HFXO << 20)
190 #define CMU_CTRL_CLKOUTSEL0_HFCLK2 (_CMU_CTRL_CLKOUTSEL0_HFCLK2 << 20)
191 #define CMU_CTRL_CLKOUTSEL0_HFCLK4 (_CMU_CTRL_CLKOUTSEL0_HFCLK4 << 20)
192 #define CMU_CTRL_CLKOUTSEL0_HFCLK8 (_CMU_CTRL_CLKOUTSEL0_HFCLK8 << 20)
193 #define CMU_CTRL_CLKOUTSEL0_HFCLK16 (_CMU_CTRL_CLKOUTSEL0_HFCLK16 << 20)
194 #define CMU_CTRL_CLKOUTSEL0_ULFRCO (_CMU_CTRL_CLKOUTSEL0_ULFRCO << 20)
195 #define CMU_CTRL_CLKOUTSEL0_AUXHFRCO (_CMU_CTRL_CLKOUTSEL0_AUXHFRCO << 20)
196 #define _CMU_CTRL_CLKOUTSEL1_SHIFT 23
197 #define _CMU_CTRL_CLKOUTSEL1_MASK 0x7800000UL
198 #define _CMU_CTRL_CLKOUTSEL1_DEFAULT 0x00000000UL
199 #define _CMU_CTRL_CLKOUTSEL1_LFRCO 0x00000000UL
200 #define _CMU_CTRL_CLKOUTSEL1_LFXO 0x00000001UL
201 #define _CMU_CTRL_CLKOUTSEL1_HFCLK 0x00000002UL
202 #define _CMU_CTRL_CLKOUTSEL1_LFXOQ 0x00000003UL
203 #define _CMU_CTRL_CLKOUTSEL1_HFXOQ 0x00000004UL
204 #define _CMU_CTRL_CLKOUTSEL1_LFRCOQ 0x00000005UL
205 #define _CMU_CTRL_CLKOUTSEL1_HFRCOQ 0x00000006UL
206 #define _CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ 0x00000007UL
207 #define _CMU_CTRL_CLKOUTSEL1_USHFRCO 0x00000008UL
208 #define CMU_CTRL_CLKOUTSEL1_DEFAULT (_CMU_CTRL_CLKOUTSEL1_DEFAULT << 23)
209 #define CMU_CTRL_CLKOUTSEL1_LFRCO (_CMU_CTRL_CLKOUTSEL1_LFRCO << 23)
210 #define CMU_CTRL_CLKOUTSEL1_LFXO (_CMU_CTRL_CLKOUTSEL1_LFXO << 23)
211 #define CMU_CTRL_CLKOUTSEL1_HFCLK (_CMU_CTRL_CLKOUTSEL1_HFCLK << 23)
212 #define CMU_CTRL_CLKOUTSEL1_LFXOQ (_CMU_CTRL_CLKOUTSEL1_LFXOQ << 23)
213 #define CMU_CTRL_CLKOUTSEL1_HFXOQ (_CMU_CTRL_CLKOUTSEL1_HFXOQ << 23)
214 #define CMU_CTRL_CLKOUTSEL1_LFRCOQ (_CMU_CTRL_CLKOUTSEL1_LFRCOQ << 23)
215 #define CMU_CTRL_CLKOUTSEL1_HFRCOQ (_CMU_CTRL_CLKOUTSEL1_HFRCOQ << 23)
216 #define CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ (_CMU_CTRL_CLKOUTSEL1_AUXHFRCOQ << 23)
217 #define CMU_CTRL_CLKOUTSEL1_USHFRCO (_CMU_CTRL_CLKOUTSEL1_USHFRCO << 23)
219 /* Bit fields for CMU HFCORECLKDIV */
220 #define _CMU_HFCORECLKDIV_RESETVALUE 0x00000000UL
221 #define _CMU_HFCORECLKDIV_MASK 0x0000010FUL
222 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_SHIFT 0
223 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_MASK 0xFUL
224 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT 0x00000000UL
225 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK 0x00000000UL
226 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 0x00000001UL
227 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 0x00000002UL
228 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 0x00000003UL
229 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 0x00000004UL
230 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 0x00000005UL
231 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 0x00000006UL
232 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 0x00000007UL
233 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 0x00000008UL
234 #define _CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 0x00000009UL
235 #define CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT (_CMU_HFCORECLKDIV_HFCORECLKDIV_DEFAULT << 0)
236 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK << 0)
237 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK2 << 0)
238 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK4 << 0)
239 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK8 << 0)
240 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK16 << 0)
241 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK32 << 0)
242 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK64 << 0)
243 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK128 << 0)
244 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK256 << 0)
245 #define CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 (_CMU_HFCORECLKDIV_HFCORECLKDIV_HFCLK512 << 0)
246 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV (0x1UL << 8)
247 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_SHIFT 8
248 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_MASK 0x100UL
249 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_DEFAULT 0x00000000UL
250 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV2 0x00000000UL
251 #define _CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV4 0x00000001UL
252 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV_DEFAULT (_CMU_HFCORECLKDIV_HFCORECLKLEDIV_DEFAULT << 8)
253 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV2 (_CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV2 << 8)
254 #define CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV4 (_CMU_HFCORECLKDIV_HFCORECLKLEDIV_DIV4 << 8)
256 /* Bit fields for CMU HFPERCLKDIV */
257 #define _CMU_HFPERCLKDIV_RESETVALUE 0x00000100UL
258 #define _CMU_HFPERCLKDIV_MASK 0x0000010FUL
259 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_SHIFT 0
260 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_MASK 0xFUL
261 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT 0x00000000UL
262 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK 0x00000000UL
263 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 0x00000001UL
264 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 0x00000002UL
265 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 0x00000003UL
266 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 0x00000004UL
267 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 0x00000005UL
268 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 0x00000006UL
269 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 0x00000007UL
270 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 0x00000008UL
271 #define _CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 0x00000009UL
272 #define CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT (_CMU_HFPERCLKDIV_HFPERCLKDIV_DEFAULT << 0)
273 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK << 0)
274 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK2 << 0)
275 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK4 << 0)
276 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK8 << 0)
277 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK16 << 0)
278 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK32 << 0)
279 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK64 << 0)
280 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK128 << 0)
281 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK256 << 0)
282 #define CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 (_CMU_HFPERCLKDIV_HFPERCLKDIV_HFCLK512 << 0)
283 #define CMU_HFPERCLKDIV_HFPERCLKEN (0x1UL << 8)
284 #define _CMU_HFPERCLKDIV_HFPERCLKEN_SHIFT 8
285 #define _CMU_HFPERCLKDIV_HFPERCLKEN_MASK 0x100UL
286 #define _CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT 0x00000001UL
287 #define CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT (_CMU_HFPERCLKDIV_HFPERCLKEN_DEFAULT << 8)
289 /* Bit fields for CMU HFRCOCTRL */
290 #define _CMU_HFRCOCTRL_RESETVALUE 0x00000380UL
291 #define _CMU_HFRCOCTRL_MASK 0x0001F7FFUL
292 #define _CMU_HFRCOCTRL_TUNING_SHIFT 0
293 #define _CMU_HFRCOCTRL_TUNING_MASK 0xFFUL
294 #define _CMU_HFRCOCTRL_TUNING_DEFAULT 0x00000080UL
295 #define CMU_HFRCOCTRL_TUNING_DEFAULT (_CMU_HFRCOCTRL_TUNING_DEFAULT << 0)
296 #define _CMU_HFRCOCTRL_BAND_SHIFT 8
297 #define _CMU_HFRCOCTRL_BAND_MASK 0x700UL
298 #define _CMU_HFRCOCTRL_BAND_1MHZ 0x00000000UL
299 #define _CMU_HFRCOCTRL_BAND_7MHZ 0x00000001UL
300 #define _CMU_HFRCOCTRL_BAND_11MHZ 0x00000002UL
301 #define _CMU_HFRCOCTRL_BAND_DEFAULT 0x00000003UL
302 #define _CMU_HFRCOCTRL_BAND_14MHZ 0x00000003UL
303 #define _CMU_HFRCOCTRL_BAND_21MHZ 0x00000004UL
304 #define CMU_HFRCOCTRL_BAND_1MHZ (_CMU_HFRCOCTRL_BAND_1MHZ << 8)
305 #define CMU_HFRCOCTRL_BAND_7MHZ (_CMU_HFRCOCTRL_BAND_7MHZ << 8)
306 #define CMU_HFRCOCTRL_BAND_11MHZ (_CMU_HFRCOCTRL_BAND_11MHZ << 8)
307 #define CMU_HFRCOCTRL_BAND_DEFAULT (_CMU_HFRCOCTRL_BAND_DEFAULT << 8)
308 #define CMU_HFRCOCTRL_BAND_14MHZ (_CMU_HFRCOCTRL_BAND_14MHZ << 8)
309 #define CMU_HFRCOCTRL_BAND_21MHZ (_CMU_HFRCOCTRL_BAND_21MHZ << 8)
310 #define _CMU_HFRCOCTRL_SUDELAY_SHIFT 12
311 #define _CMU_HFRCOCTRL_SUDELAY_MASK 0x1F000UL
312 #define _CMU_HFRCOCTRL_SUDELAY_DEFAULT 0x00000000UL
313 #define CMU_HFRCOCTRL_SUDELAY_DEFAULT (_CMU_HFRCOCTRL_SUDELAY_DEFAULT << 12)
315 /* Bit fields for CMU LFRCOCTRL */
316 #define _CMU_LFRCOCTRL_RESETVALUE 0x00000040UL
317 #define _CMU_LFRCOCTRL_MASK 0x0000007FUL
318 #define _CMU_LFRCOCTRL_TUNING_SHIFT 0
319 #define _CMU_LFRCOCTRL_TUNING_MASK 0x7FUL
320 #define _CMU_LFRCOCTRL_TUNING_DEFAULT 0x00000040UL
321 #define CMU_LFRCOCTRL_TUNING_DEFAULT (_CMU_LFRCOCTRL_TUNING_DEFAULT << 0)
323 /* Bit fields for CMU AUXHFRCOCTRL */
324 #define _CMU_AUXHFRCOCTRL_RESETVALUE 0x00000080UL
325 #define _CMU_AUXHFRCOCTRL_MASK 0x000007FFUL
326 #define _CMU_AUXHFRCOCTRL_TUNING_SHIFT 0
327 #define _CMU_AUXHFRCOCTRL_TUNING_MASK 0xFFUL
328 #define _CMU_AUXHFRCOCTRL_TUNING_DEFAULT 0x00000080UL
329 #define CMU_AUXHFRCOCTRL_TUNING_DEFAULT (_CMU_AUXHFRCOCTRL_TUNING_DEFAULT << 0)
330 #define _CMU_AUXHFRCOCTRL_BAND_SHIFT 8
331 #define _CMU_AUXHFRCOCTRL_BAND_MASK 0x700UL
332 #define _CMU_AUXHFRCOCTRL_BAND_DEFAULT 0x00000000UL
333 #define _CMU_AUXHFRCOCTRL_BAND_14MHZ 0x00000000UL
334 #define _CMU_AUXHFRCOCTRL_BAND_11MHZ 0x00000001UL
335 #define _CMU_AUXHFRCOCTRL_BAND_7MHZ 0x00000002UL
336 #define _CMU_AUXHFRCOCTRL_BAND_1MHZ 0x00000003UL
337 #define _CMU_AUXHFRCOCTRL_BAND_21MHZ 0x00000007UL
338 #define CMU_AUXHFRCOCTRL_BAND_DEFAULT (_CMU_AUXHFRCOCTRL_BAND_DEFAULT << 8)
339 #define CMU_AUXHFRCOCTRL_BAND_14MHZ (_CMU_AUXHFRCOCTRL_BAND_14MHZ << 8)
340 #define CMU_AUXHFRCOCTRL_BAND_11MHZ (_CMU_AUXHFRCOCTRL_BAND_11MHZ << 8)
341 #define CMU_AUXHFRCOCTRL_BAND_7MHZ (_CMU_AUXHFRCOCTRL_BAND_7MHZ << 8)
342 #define CMU_AUXHFRCOCTRL_BAND_1MHZ (_CMU_AUXHFRCOCTRL_BAND_1MHZ << 8)
343 #define CMU_AUXHFRCOCTRL_BAND_21MHZ (_CMU_AUXHFRCOCTRL_BAND_21MHZ << 8)
345 /* Bit fields for CMU CALCTRL */
346 #define _CMU_CALCTRL_RESETVALUE 0x00000000UL
347 #define _CMU_CALCTRL_MASK 0x0000007FUL
348 #define _CMU_CALCTRL_UPSEL_SHIFT 0
349 #define _CMU_CALCTRL_UPSEL_MASK 0x7UL
350 #define _CMU_CALCTRL_UPSEL_DEFAULT 0x00000000UL
351 #define _CMU_CALCTRL_UPSEL_HFXO 0x00000000UL
352 #define _CMU_CALCTRL_UPSEL_LFXO 0x00000001UL
353 #define _CMU_CALCTRL_UPSEL_HFRCO 0x00000002UL
354 #define _CMU_CALCTRL_UPSEL_LFRCO 0x00000003UL
355 #define _CMU_CALCTRL_UPSEL_AUXHFRCO 0x00000004UL
356 #define _CMU_CALCTRL_UPSEL_USHFRCO 0x00000005UL
357 #define CMU_CALCTRL_UPSEL_DEFAULT (_CMU_CALCTRL_UPSEL_DEFAULT << 0)
358 #define CMU_CALCTRL_UPSEL_HFXO (_CMU_CALCTRL_UPSEL_HFXO << 0)
359 #define CMU_CALCTRL_UPSEL_LFXO (_CMU_CALCTRL_UPSEL_LFXO << 0)
360 #define CMU_CALCTRL_UPSEL_HFRCO (_CMU_CALCTRL_UPSEL_HFRCO << 0)
361 #define CMU_CALCTRL_UPSEL_LFRCO (_CMU_CALCTRL_UPSEL_LFRCO << 0)
362 #define CMU_CALCTRL_UPSEL_AUXHFRCO (_CMU_CALCTRL_UPSEL_AUXHFRCO << 0)
363 #define CMU_CALCTRL_UPSEL_USHFRCO (_CMU_CALCTRL_UPSEL_USHFRCO << 0)
364 #define _CMU_CALCTRL_DOWNSEL_SHIFT 3
365 #define _CMU_CALCTRL_DOWNSEL_MASK 0x38UL
366 #define _CMU_CALCTRL_DOWNSEL_DEFAULT 0x00000000UL
367 #define _CMU_CALCTRL_DOWNSEL_HFCLK 0x00000000UL
368 #define _CMU_CALCTRL_DOWNSEL_HFXO 0x00000001UL
369 #define _CMU_CALCTRL_DOWNSEL_LFXO 0x00000002UL
370 #define _CMU_CALCTRL_DOWNSEL_HFRCO 0x00000003UL
371 #define _CMU_CALCTRL_DOWNSEL_LFRCO 0x00000004UL
372 #define _CMU_CALCTRL_DOWNSEL_AUXHFRCO 0x00000005UL
373 #define _CMU_CALCTRL_DOWNSEL_USHFRCO 0x00000006UL
374 #define CMU_CALCTRL_DOWNSEL_DEFAULT (_CMU_CALCTRL_DOWNSEL_DEFAULT << 3)
375 #define CMU_CALCTRL_DOWNSEL_HFCLK (_CMU_CALCTRL_DOWNSEL_HFCLK << 3)
376 #define CMU_CALCTRL_DOWNSEL_HFXO (_CMU_CALCTRL_DOWNSEL_HFXO << 3)
377 #define CMU_CALCTRL_DOWNSEL_LFXO (_CMU_CALCTRL_DOWNSEL_LFXO << 3)
378 #define CMU_CALCTRL_DOWNSEL_HFRCO (_CMU_CALCTRL_DOWNSEL_HFRCO << 3)
379 #define CMU_CALCTRL_DOWNSEL_LFRCO (_CMU_CALCTRL_DOWNSEL_LFRCO << 3)
380 #define CMU_CALCTRL_DOWNSEL_AUXHFRCO (_CMU_CALCTRL_DOWNSEL_AUXHFRCO << 3)
381 #define CMU_CALCTRL_DOWNSEL_USHFRCO (_CMU_CALCTRL_DOWNSEL_USHFRCO << 3)
382 #define CMU_CALCTRL_CONT (0x1UL << 6)
383 #define _CMU_CALCTRL_CONT_SHIFT 6
384 #define _CMU_CALCTRL_CONT_MASK 0x40UL
385 #define _CMU_CALCTRL_CONT_DEFAULT 0x00000000UL
386 #define CMU_CALCTRL_CONT_DEFAULT (_CMU_CALCTRL_CONT_DEFAULT << 6)
388 /* Bit fields for CMU CALCNT */
389 #define _CMU_CALCNT_RESETVALUE 0x00000000UL
390 #define _CMU_CALCNT_MASK 0x000FFFFFUL
391 #define _CMU_CALCNT_CALCNT_SHIFT 0
392 #define _CMU_CALCNT_CALCNT_MASK 0xFFFFFUL
393 #define _CMU_CALCNT_CALCNT_DEFAULT 0x00000000UL
394 #define CMU_CALCNT_CALCNT_DEFAULT (_CMU_CALCNT_CALCNT_DEFAULT << 0)
396 /* Bit fields for CMU OSCENCMD */
397 #define _CMU_OSCENCMD_RESETVALUE 0x00000000UL
398 #define _CMU_OSCENCMD_MASK 0x00000FFFUL
399 #define CMU_OSCENCMD_HFRCOEN (0x1UL << 0)
400 #define _CMU_OSCENCMD_HFRCOEN_SHIFT 0
401 #define _CMU_OSCENCMD_HFRCOEN_MASK 0x1UL
402 #define _CMU_OSCENCMD_HFRCOEN_DEFAULT 0x00000000UL
403 #define CMU_OSCENCMD_HFRCOEN_DEFAULT (_CMU_OSCENCMD_HFRCOEN_DEFAULT << 0)
404 #define CMU_OSCENCMD_HFRCODIS (0x1UL << 1)
405 #define _CMU_OSCENCMD_HFRCODIS_SHIFT 1
406 #define _CMU_OSCENCMD_HFRCODIS_MASK 0x2UL
407 #define _CMU_OSCENCMD_HFRCODIS_DEFAULT 0x00000000UL
408 #define CMU_OSCENCMD_HFRCODIS_DEFAULT (_CMU_OSCENCMD_HFRCODIS_DEFAULT << 1)
409 #define CMU_OSCENCMD_HFXOEN (0x1UL << 2)
410 #define _CMU_OSCENCMD_HFXOEN_SHIFT 2
411 #define _CMU_OSCENCMD_HFXOEN_MASK 0x4UL
412 #define _CMU_OSCENCMD_HFXOEN_DEFAULT 0x00000000UL
413 #define CMU_OSCENCMD_HFXOEN_DEFAULT (_CMU_OSCENCMD_HFXOEN_DEFAULT << 2)
414 #define CMU_OSCENCMD_HFXODIS (0x1UL << 3)
415 #define _CMU_OSCENCMD_HFXODIS_SHIFT 3
416 #define _CMU_OSCENCMD_HFXODIS_MASK 0x8UL
417 #define _CMU_OSCENCMD_HFXODIS_DEFAULT 0x00000000UL
418 #define CMU_OSCENCMD_HFXODIS_DEFAULT (_CMU_OSCENCMD_HFXODIS_DEFAULT << 3)
419 #define CMU_OSCENCMD_AUXHFRCOEN (0x1UL << 4)
420 #define _CMU_OSCENCMD_AUXHFRCOEN_SHIFT 4
421 #define _CMU_OSCENCMD_AUXHFRCOEN_MASK 0x10UL
422 #define _CMU_OSCENCMD_AUXHFRCOEN_DEFAULT 0x00000000UL
423 #define CMU_OSCENCMD_AUXHFRCOEN_DEFAULT (_CMU_OSCENCMD_AUXHFRCOEN_DEFAULT << 4)
424 #define CMU_OSCENCMD_AUXHFRCODIS (0x1UL << 5)
425 #define _CMU_OSCENCMD_AUXHFRCODIS_SHIFT 5
426 #define _CMU_OSCENCMD_AUXHFRCODIS_MASK 0x20UL
427 #define _CMU_OSCENCMD_AUXHFRCODIS_DEFAULT 0x00000000UL
428 #define CMU_OSCENCMD_AUXHFRCODIS_DEFAULT (_CMU_OSCENCMD_AUXHFRCODIS_DEFAULT << 5)
429 #define CMU_OSCENCMD_LFRCOEN (0x1UL << 6)
430 #define _CMU_OSCENCMD_LFRCOEN_SHIFT 6
431 #define _CMU_OSCENCMD_LFRCOEN_MASK 0x40UL
432 #define _CMU_OSCENCMD_LFRCOEN_DEFAULT 0x00000000UL
433 #define CMU_OSCENCMD_LFRCOEN_DEFAULT (_CMU_OSCENCMD_LFRCOEN_DEFAULT << 6)
434 #define CMU_OSCENCMD_LFRCODIS (0x1UL << 7)
435 #define _CMU_OSCENCMD_LFRCODIS_SHIFT 7
436 #define _CMU_OSCENCMD_LFRCODIS_MASK 0x80UL
437 #define _CMU_OSCENCMD_LFRCODIS_DEFAULT 0x00000000UL
438 #define CMU_OSCENCMD_LFRCODIS_DEFAULT (_CMU_OSCENCMD_LFRCODIS_DEFAULT << 7)
439 #define CMU_OSCENCMD_LFXOEN (0x1UL << 8)
440 #define _CMU_OSCENCMD_LFXOEN_SHIFT 8
441 #define _CMU_OSCENCMD_LFXOEN_MASK 0x100UL
442 #define _CMU_OSCENCMD_LFXOEN_DEFAULT 0x00000000UL
443 #define CMU_OSCENCMD_LFXOEN_DEFAULT (_CMU_OSCENCMD_LFXOEN_DEFAULT << 8)
444 #define CMU_OSCENCMD_LFXODIS (0x1UL << 9)
445 #define _CMU_OSCENCMD_LFXODIS_SHIFT 9
446 #define _CMU_OSCENCMD_LFXODIS_MASK 0x200UL
447 #define _CMU_OSCENCMD_LFXODIS_DEFAULT 0x00000000UL
448 #define CMU_OSCENCMD_LFXODIS_DEFAULT (_CMU_OSCENCMD_LFXODIS_DEFAULT << 9)
449 #define CMU_OSCENCMD_USHFRCOEN (0x1UL << 10)
450 #define _CMU_OSCENCMD_USHFRCOEN_SHIFT 10
451 #define _CMU_OSCENCMD_USHFRCOEN_MASK 0x400UL
452 #define _CMU_OSCENCMD_USHFRCOEN_DEFAULT 0x00000000UL
453 #define CMU_OSCENCMD_USHFRCOEN_DEFAULT (_CMU_OSCENCMD_USHFRCOEN_DEFAULT << 10)
454 #define CMU_OSCENCMD_USHFRCODIS (0x1UL << 11)
455 #define _CMU_OSCENCMD_USHFRCODIS_SHIFT 11
456 #define _CMU_OSCENCMD_USHFRCODIS_MASK 0x800UL
457 #define _CMU_OSCENCMD_USHFRCODIS_DEFAULT 0x00000000UL
458 #define CMU_OSCENCMD_USHFRCODIS_DEFAULT (_CMU_OSCENCMD_USHFRCODIS_DEFAULT << 11)
460 /* Bit fields for CMU CMD */
461 #define _CMU_CMD_RESETVALUE 0x00000000UL
462 #define _CMU_CMD_MASK 0x000000FFUL
463 #define _CMU_CMD_HFCLKSEL_SHIFT 0
464 #define _CMU_CMD_HFCLKSEL_MASK 0x7UL
465 #define _CMU_CMD_HFCLKSEL_DEFAULT 0x00000000UL
466 #define _CMU_CMD_HFCLKSEL_HFRCO 0x00000001UL
467 #define _CMU_CMD_HFCLKSEL_HFXO 0x00000002UL
468 #define _CMU_CMD_HFCLKSEL_LFRCO 0x00000003UL
469 #define _CMU_CMD_HFCLKSEL_LFXO 0x00000004UL
470 #define _CMU_CMD_HFCLKSEL_USHFRCODIV2 0x00000005UL
471 #define CMU_CMD_HFCLKSEL_DEFAULT (_CMU_CMD_HFCLKSEL_DEFAULT << 0)
472 #define CMU_CMD_HFCLKSEL_HFRCO (_CMU_CMD_HFCLKSEL_HFRCO << 0)
473 #define CMU_CMD_HFCLKSEL_HFXO (_CMU_CMD_HFCLKSEL_HFXO << 0)
474 #define CMU_CMD_HFCLKSEL_LFRCO (_CMU_CMD_HFCLKSEL_LFRCO << 0)
475 #define CMU_CMD_HFCLKSEL_LFXO (_CMU_CMD_HFCLKSEL_LFXO << 0)
476 #define CMU_CMD_HFCLKSEL_USHFRCODIV2 (_CMU_CMD_HFCLKSEL_USHFRCODIV2 << 0)
477 #define CMU_CMD_CALSTART (0x1UL << 3)
478 #define _CMU_CMD_CALSTART_SHIFT 3
479 #define _CMU_CMD_CALSTART_MASK 0x8UL
480 #define _CMU_CMD_CALSTART_DEFAULT 0x00000000UL
481 #define CMU_CMD_CALSTART_DEFAULT (_CMU_CMD_CALSTART_DEFAULT << 3)
482 #define CMU_CMD_CALSTOP (0x1UL << 4)
483 #define _CMU_CMD_CALSTOP_SHIFT 4
484 #define _CMU_CMD_CALSTOP_MASK 0x10UL
485 #define _CMU_CMD_CALSTOP_DEFAULT 0x00000000UL
486 #define CMU_CMD_CALSTOP_DEFAULT (_CMU_CMD_CALSTOP_DEFAULT << 4)
487 #define _CMU_CMD_USBCCLKSEL_SHIFT 5
488 #define _CMU_CMD_USBCCLKSEL_MASK 0xE0UL
489 #define _CMU_CMD_USBCCLKSEL_DEFAULT 0x00000000UL
490 #define _CMU_CMD_USBCCLKSEL_LFXO 0x00000002UL
491 #define _CMU_CMD_USBCCLKSEL_LFRCO 0x00000003UL
492 #define _CMU_CMD_USBCCLKSEL_USHFRCO 0x00000004UL
493 #define CMU_CMD_USBCCLKSEL_DEFAULT (_CMU_CMD_USBCCLKSEL_DEFAULT << 5)
494 #define CMU_CMD_USBCCLKSEL_LFXO (_CMU_CMD_USBCCLKSEL_LFXO << 5)
495 #define CMU_CMD_USBCCLKSEL_LFRCO (_CMU_CMD_USBCCLKSEL_LFRCO << 5)
496 #define CMU_CMD_USBCCLKSEL_USHFRCO (_CMU_CMD_USBCCLKSEL_USHFRCO << 5)
498 /* Bit fields for CMU LFCLKSEL */
499 #define _CMU_LFCLKSEL_RESETVALUE 0x00000015UL
500 #define _CMU_LFCLKSEL_MASK 0x0011003FUL
501 #define _CMU_LFCLKSEL_LFA_SHIFT 0
502 #define _CMU_LFCLKSEL_LFA_MASK 0x3UL
503 #define _CMU_LFCLKSEL_LFA_DISABLED 0x00000000UL
504 #define _CMU_LFCLKSEL_LFA_DEFAULT 0x00000001UL
505 #define _CMU_LFCLKSEL_LFA_LFRCO 0x00000001UL
506 #define _CMU_LFCLKSEL_LFA_LFXO 0x00000002UL
507 #define _CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 0x00000003UL
508 #define CMU_LFCLKSEL_LFA_DISABLED (_CMU_LFCLKSEL_LFA_DISABLED << 0)
509 #define CMU_LFCLKSEL_LFA_DEFAULT (_CMU_LFCLKSEL_LFA_DEFAULT << 0)
510 #define CMU_LFCLKSEL_LFA_LFRCO (_CMU_LFCLKSEL_LFA_LFRCO << 0)
511 #define CMU_LFCLKSEL_LFA_LFXO (_CMU_LFCLKSEL_LFA_LFXO << 0)
512 #define CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 (_CMU_LFCLKSEL_LFA_HFCORECLKLEDIV2 << 0)
513 #define _CMU_LFCLKSEL_LFB_SHIFT 2
514 #define _CMU_LFCLKSEL_LFB_MASK 0xCUL
515 #define _CMU_LFCLKSEL_LFB_DISABLED 0x00000000UL
516 #define _CMU_LFCLKSEL_LFB_DEFAULT 0x00000001UL
517 #define _CMU_LFCLKSEL_LFB_LFRCO 0x00000001UL
518 #define _CMU_LFCLKSEL_LFB_LFXO 0x00000002UL
519 #define _CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 0x00000003UL
520 #define CMU_LFCLKSEL_LFB_DISABLED (_CMU_LFCLKSEL_LFB_DISABLED << 2)
521 #define CMU_LFCLKSEL_LFB_DEFAULT (_CMU_LFCLKSEL_LFB_DEFAULT << 2)
522 #define CMU_LFCLKSEL_LFB_LFRCO (_CMU_LFCLKSEL_LFB_LFRCO << 2)
523 #define CMU_LFCLKSEL_LFB_LFXO (_CMU_LFCLKSEL_LFB_LFXO << 2)
524 #define CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 (_CMU_LFCLKSEL_LFB_HFCORECLKLEDIV2 << 2)
525 #define _CMU_LFCLKSEL_LFC_SHIFT 4
526 #define _CMU_LFCLKSEL_LFC_MASK 0x30UL
527 #define _CMU_LFCLKSEL_LFC_DISABLED 0x00000000UL
528 #define _CMU_LFCLKSEL_LFC_DEFAULT 0x00000001UL
529 #define _CMU_LFCLKSEL_LFC_LFRCO 0x00000001UL
530 #define _CMU_LFCLKSEL_LFC_LFXO 0x00000002UL
531 #define CMU_LFCLKSEL_LFC_DISABLED (_CMU_LFCLKSEL_LFC_DISABLED << 4)
532 #define CMU_LFCLKSEL_LFC_DEFAULT (_CMU_LFCLKSEL_LFC_DEFAULT << 4)
533 #define CMU_LFCLKSEL_LFC_LFRCO (_CMU_LFCLKSEL_LFC_LFRCO << 4)
534 #define CMU_LFCLKSEL_LFC_LFXO (_CMU_LFCLKSEL_LFC_LFXO << 4)
535 #define CMU_LFCLKSEL_LFAE (0x1UL << 16)
536 #define _CMU_LFCLKSEL_LFAE_SHIFT 16
537 #define _CMU_LFCLKSEL_LFAE_MASK 0x10000UL
538 #define _CMU_LFCLKSEL_LFAE_DEFAULT 0x00000000UL
539 #define _CMU_LFCLKSEL_LFAE_DISABLED 0x00000000UL
540 #define _CMU_LFCLKSEL_LFAE_ULFRCO 0x00000001UL
541 #define CMU_LFCLKSEL_LFAE_DEFAULT (_CMU_LFCLKSEL_LFAE_DEFAULT << 16)
542 #define CMU_LFCLKSEL_LFAE_DISABLED (_CMU_LFCLKSEL_LFAE_DISABLED << 16)
543 #define CMU_LFCLKSEL_LFAE_ULFRCO (_CMU_LFCLKSEL_LFAE_ULFRCO << 16)
544 #define CMU_LFCLKSEL_LFBE (0x1UL << 20)
545 #define _CMU_LFCLKSEL_LFBE_SHIFT 20
546 #define _CMU_LFCLKSEL_LFBE_MASK 0x100000UL
547 #define _CMU_LFCLKSEL_LFBE_DEFAULT 0x00000000UL
548 #define _CMU_LFCLKSEL_LFBE_DISABLED 0x00000000UL
549 #define _CMU_LFCLKSEL_LFBE_ULFRCO 0x00000001UL
550 #define CMU_LFCLKSEL_LFBE_DEFAULT (_CMU_LFCLKSEL_LFBE_DEFAULT << 20)
551 #define CMU_LFCLKSEL_LFBE_DISABLED (_CMU_LFCLKSEL_LFBE_DISABLED << 20)
552 #define CMU_LFCLKSEL_LFBE_ULFRCO (_CMU_LFCLKSEL_LFBE_ULFRCO << 20)
554 /* Bit fields for CMU STATUS */
555 #define _CMU_STATUS_RESETVALUE 0x00000403UL
556 #define _CMU_STATUS_MASK 0x04F77FFFUL
557 #define CMU_STATUS_HFRCOENS (0x1UL << 0)
558 #define _CMU_STATUS_HFRCOENS_SHIFT 0
559 #define _CMU_STATUS_HFRCOENS_MASK 0x1UL
560 #define _CMU_STATUS_HFRCOENS_DEFAULT 0x00000001UL
561 #define CMU_STATUS_HFRCOENS_DEFAULT (_CMU_STATUS_HFRCOENS_DEFAULT << 0)
562 #define CMU_STATUS_HFRCORDY (0x1UL << 1)
563 #define _CMU_STATUS_HFRCORDY_SHIFT 1
564 #define _CMU_STATUS_HFRCORDY_MASK 0x2UL
565 #define _CMU_STATUS_HFRCORDY_DEFAULT 0x00000001UL
566 #define CMU_STATUS_HFRCORDY_DEFAULT (_CMU_STATUS_HFRCORDY_DEFAULT << 1)
567 #define CMU_STATUS_HFXOENS (0x1UL << 2)
568 #define _CMU_STATUS_HFXOENS_SHIFT 2
569 #define _CMU_STATUS_HFXOENS_MASK 0x4UL
570 #define _CMU_STATUS_HFXOENS_DEFAULT 0x00000000UL
571 #define CMU_STATUS_HFXOENS_DEFAULT (_CMU_STATUS_HFXOENS_DEFAULT << 2)
572 #define CMU_STATUS_HFXORDY (0x1UL << 3)
573 #define _CMU_STATUS_HFXORDY_SHIFT 3
574 #define _CMU_STATUS_HFXORDY_MASK 0x8UL
575 #define _CMU_STATUS_HFXORDY_DEFAULT 0x00000000UL
576 #define CMU_STATUS_HFXORDY_DEFAULT (_CMU_STATUS_HFXORDY_DEFAULT << 3)
577 #define CMU_STATUS_AUXHFRCOENS (0x1UL << 4)
578 #define _CMU_STATUS_AUXHFRCOENS_SHIFT 4
579 #define _CMU_STATUS_AUXHFRCOENS_MASK 0x10UL
580 #define _CMU_STATUS_AUXHFRCOENS_DEFAULT 0x00000000UL
581 #define CMU_STATUS_AUXHFRCOENS_DEFAULT (_CMU_STATUS_AUXHFRCOENS_DEFAULT << 4)
582 #define CMU_STATUS_AUXHFRCORDY (0x1UL << 5)
583 #define _CMU_STATUS_AUXHFRCORDY_SHIFT 5
584 #define _CMU_STATUS_AUXHFRCORDY_MASK 0x20UL
585 #define _CMU_STATUS_AUXHFRCORDY_DEFAULT 0x00000000UL
586 #define CMU_STATUS_AUXHFRCORDY_DEFAULT (_CMU_STATUS_AUXHFRCORDY_DEFAULT << 5)
587 #define CMU_STATUS_LFRCOENS (0x1UL << 6)
588 #define _CMU_STATUS_LFRCOENS_SHIFT 6
589 #define _CMU_STATUS_LFRCOENS_MASK 0x40UL
590 #define _CMU_STATUS_LFRCOENS_DEFAULT 0x00000000UL
591 #define CMU_STATUS_LFRCOENS_DEFAULT (_CMU_STATUS_LFRCOENS_DEFAULT << 6)
592 #define CMU_STATUS_LFRCORDY (0x1UL << 7)
593 #define _CMU_STATUS_LFRCORDY_SHIFT 7
594 #define _CMU_STATUS_LFRCORDY_MASK 0x80UL
595 #define _CMU_STATUS_LFRCORDY_DEFAULT 0x00000000UL
596 #define CMU_STATUS_LFRCORDY_DEFAULT (_CMU_STATUS_LFRCORDY_DEFAULT << 7)
597 #define CMU_STATUS_LFXOENS (0x1UL << 8)
598 #define _CMU_STATUS_LFXOENS_SHIFT 8
599 #define _CMU_STATUS_LFXOENS_MASK 0x100UL
600 #define _CMU_STATUS_LFXOENS_DEFAULT 0x00000000UL
601 #define CMU_STATUS_LFXOENS_DEFAULT (_CMU_STATUS_LFXOENS_DEFAULT << 8)
602 #define CMU_STATUS_LFXORDY (0x1UL << 9)
603 #define _CMU_STATUS_LFXORDY_SHIFT 9
604 #define _CMU_STATUS_LFXORDY_MASK 0x200UL
605 #define _CMU_STATUS_LFXORDY_DEFAULT 0x00000000UL
606 #define CMU_STATUS_LFXORDY_DEFAULT (_CMU_STATUS_LFXORDY_DEFAULT << 9)
607 #define CMU_STATUS_HFRCOSEL (0x1UL << 10)
608 #define _CMU_STATUS_HFRCOSEL_SHIFT 10
609 #define _CMU_STATUS_HFRCOSEL_MASK 0x400UL
610 #define _CMU_STATUS_HFRCOSEL_DEFAULT 0x00000001UL
611 #define CMU_STATUS_HFRCOSEL_DEFAULT (_CMU_STATUS_HFRCOSEL_DEFAULT << 10)
612 #define CMU_STATUS_HFXOSEL (0x1UL << 11)
613 #define _CMU_STATUS_HFXOSEL_SHIFT 11
614 #define _CMU_STATUS_HFXOSEL_MASK 0x800UL
615 #define _CMU_STATUS_HFXOSEL_DEFAULT 0x00000000UL
616 #define CMU_STATUS_HFXOSEL_DEFAULT (_CMU_STATUS_HFXOSEL_DEFAULT << 11)
617 #define CMU_STATUS_LFRCOSEL (0x1UL << 12)
618 #define _CMU_STATUS_LFRCOSEL_SHIFT 12
619 #define _CMU_STATUS_LFRCOSEL_MASK 0x1000UL
620 #define _CMU_STATUS_LFRCOSEL_DEFAULT 0x00000000UL
621 #define CMU_STATUS_LFRCOSEL_DEFAULT (_CMU_STATUS_LFRCOSEL_DEFAULT << 12)
622 #define CMU_STATUS_LFXOSEL (0x1UL << 13)
623 #define _CMU_STATUS_LFXOSEL_SHIFT 13
624 #define _CMU_STATUS_LFXOSEL_MASK 0x2000UL
625 #define _CMU_STATUS_LFXOSEL_DEFAULT 0x00000000UL
626 #define CMU_STATUS_LFXOSEL_DEFAULT (_CMU_STATUS_LFXOSEL_DEFAULT << 13)
627 #define CMU_STATUS_CALBSY (0x1UL << 14)
628 #define _CMU_STATUS_CALBSY_SHIFT 14
629 #define _CMU_STATUS_CALBSY_MASK 0x4000UL
630 #define _CMU_STATUS_CALBSY_DEFAULT 0x00000000UL
631 #define CMU_STATUS_CALBSY_DEFAULT (_CMU_STATUS_CALBSY_DEFAULT << 14)
632 #define CMU_STATUS_USBCLFXOSEL (0x1UL << 16)
633 #define _CMU_STATUS_USBCLFXOSEL_SHIFT 16
634 #define _CMU_STATUS_USBCLFXOSEL_MASK 0x10000UL
635 #define _CMU_STATUS_USBCLFXOSEL_DEFAULT 0x00000000UL
636 #define CMU_STATUS_USBCLFXOSEL_DEFAULT (_CMU_STATUS_USBCLFXOSEL_DEFAULT << 16)
637 #define CMU_STATUS_USBCLFRCOSEL (0x1UL << 17)
638 #define _CMU_STATUS_USBCLFRCOSEL_SHIFT 17
639 #define _CMU_STATUS_USBCLFRCOSEL_MASK 0x20000UL
640 #define _CMU_STATUS_USBCLFRCOSEL_DEFAULT 0x00000000UL
641 #define CMU_STATUS_USBCLFRCOSEL_DEFAULT (_CMU_STATUS_USBCLFRCOSEL_DEFAULT << 17)
642 #define CMU_STATUS_USBCUSHFRCOSEL (0x1UL << 18)
643 #define _CMU_STATUS_USBCUSHFRCOSEL_SHIFT 18
644 #define _CMU_STATUS_USBCUSHFRCOSEL_MASK 0x40000UL
645 #define _CMU_STATUS_USBCUSHFRCOSEL_DEFAULT 0x00000000UL
646 #define CMU_STATUS_USBCUSHFRCOSEL_DEFAULT (_CMU_STATUS_USBCUSHFRCOSEL_DEFAULT << 18)
647 #define CMU_STATUS_USBCHFCLKSYNC (0x1UL << 20)
648 #define _CMU_STATUS_USBCHFCLKSYNC_SHIFT 20
649 #define _CMU_STATUS_USBCHFCLKSYNC_MASK 0x100000UL
650 #define _CMU_STATUS_USBCHFCLKSYNC_DEFAULT 0x00000000UL
651 #define CMU_STATUS_USBCHFCLKSYNC_DEFAULT (_CMU_STATUS_USBCHFCLKSYNC_DEFAULT << 20)
652 #define CMU_STATUS_USHFRCOENS (0x1UL << 21)
653 #define _CMU_STATUS_USHFRCOENS_SHIFT 21
654 #define _CMU_STATUS_USHFRCOENS_MASK 0x200000UL
655 #define _CMU_STATUS_USHFRCOENS_DEFAULT 0x00000000UL
656 #define CMU_STATUS_USHFRCOENS_DEFAULT (_CMU_STATUS_USHFRCOENS_DEFAULT << 21)
657 #define CMU_STATUS_USHFRCORDY (0x1UL << 22)
658 #define _CMU_STATUS_USHFRCORDY_SHIFT 22
659 #define _CMU_STATUS_USHFRCORDY_MASK 0x400000UL
660 #define _CMU_STATUS_USHFRCORDY_DEFAULT 0x00000000UL
661 #define CMU_STATUS_USHFRCORDY_DEFAULT (_CMU_STATUS_USHFRCORDY_DEFAULT << 22)
662 #define CMU_STATUS_USHFRCOSUSPEND (0x1UL << 23)
663 #define _CMU_STATUS_USHFRCOSUSPEND_SHIFT 23
664 #define _CMU_STATUS_USHFRCOSUSPEND_MASK 0x800000UL
665 #define _CMU_STATUS_USHFRCOSUSPEND_DEFAULT 0x00000000UL
666 #define CMU_STATUS_USHFRCOSUSPEND_DEFAULT (_CMU_STATUS_USHFRCOSUSPEND_DEFAULT << 23)
667 #define CMU_STATUS_USHFRCODIV2SEL (0x1UL << 26)
668 #define _CMU_STATUS_USHFRCODIV2SEL_SHIFT 26
669 #define _CMU_STATUS_USHFRCODIV2SEL_MASK 0x4000000UL
670 #define _CMU_STATUS_USHFRCODIV2SEL_DEFAULT 0x00000000UL
671 #define CMU_STATUS_USHFRCODIV2SEL_DEFAULT (_CMU_STATUS_USHFRCODIV2SEL_DEFAULT << 26)
673 /* Bit fields for CMU IF */
674 #define _CMU_IF_RESETVALUE 0x00000001UL
675 #define _CMU_IF_MASK 0x0000037FUL
676 #define CMU_IF_HFRCORDY (0x1UL << 0)
677 #define _CMU_IF_HFRCORDY_SHIFT 0
678 #define _CMU_IF_HFRCORDY_MASK 0x1UL
679 #define _CMU_IF_HFRCORDY_DEFAULT 0x00000001UL
680 #define CMU_IF_HFRCORDY_DEFAULT (_CMU_IF_HFRCORDY_DEFAULT << 0)
681 #define CMU_IF_HFXORDY (0x1UL << 1)
682 #define _CMU_IF_HFXORDY_SHIFT 1
683 #define _CMU_IF_HFXORDY_MASK 0x2UL
684 #define _CMU_IF_HFXORDY_DEFAULT 0x00000000UL
685 #define CMU_IF_HFXORDY_DEFAULT (_CMU_IF_HFXORDY_DEFAULT << 1)
686 #define CMU_IF_LFRCORDY (0x1UL << 2)
687 #define _CMU_IF_LFRCORDY_SHIFT 2
688 #define _CMU_IF_LFRCORDY_MASK 0x4UL
689 #define _CMU_IF_LFRCORDY_DEFAULT 0x00000000UL
690 #define CMU_IF_LFRCORDY_DEFAULT (_CMU_IF_LFRCORDY_DEFAULT << 2)
691 #define CMU_IF_LFXORDY (0x1UL << 3)
692 #define _CMU_IF_LFXORDY_SHIFT 3
693 #define _CMU_IF_LFXORDY_MASK 0x8UL
694 #define _CMU_IF_LFXORDY_DEFAULT 0x00000000UL
695 #define CMU_IF_LFXORDY_DEFAULT (_CMU_IF_LFXORDY_DEFAULT << 3)
696 #define CMU_IF_AUXHFRCORDY (0x1UL << 4)
697 #define _CMU_IF_AUXHFRCORDY_SHIFT 4
698 #define _CMU_IF_AUXHFRCORDY_MASK 0x10UL
699 #define _CMU_IF_AUXHFRCORDY_DEFAULT 0x00000000UL
700 #define CMU_IF_AUXHFRCORDY_DEFAULT (_CMU_IF_AUXHFRCORDY_DEFAULT << 4)
701 #define CMU_IF_CALRDY (0x1UL << 5)
702 #define _CMU_IF_CALRDY_SHIFT 5
703 #define _CMU_IF_CALRDY_MASK 0x20UL
704 #define _CMU_IF_CALRDY_DEFAULT 0x00000000UL
705 #define CMU_IF_CALRDY_DEFAULT (_CMU_IF_CALRDY_DEFAULT << 5)
706 #define CMU_IF_CALOF (0x1UL << 6)
707 #define _CMU_IF_CALOF_SHIFT 6
708 #define _CMU_IF_CALOF_MASK 0x40UL
709 #define _CMU_IF_CALOF_DEFAULT 0x00000000UL
710 #define CMU_IF_CALOF_DEFAULT (_CMU_IF_CALOF_DEFAULT << 6)
711 #define CMU_IF_USHFRCORDY (0x1UL << 8)
712 #define _CMU_IF_USHFRCORDY_SHIFT 8
713 #define _CMU_IF_USHFRCORDY_MASK 0x100UL
714 #define _CMU_IF_USHFRCORDY_DEFAULT 0x00000000UL
715 #define CMU_IF_USHFRCORDY_DEFAULT (_CMU_IF_USHFRCORDY_DEFAULT << 8)
716 #define CMU_IF_USBCHFOSCSEL (0x1UL << 9)
717 #define _CMU_IF_USBCHFOSCSEL_SHIFT 9
718 #define _CMU_IF_USBCHFOSCSEL_MASK 0x200UL
719 #define _CMU_IF_USBCHFOSCSEL_DEFAULT 0x00000000UL
720 #define CMU_IF_USBCHFOSCSEL_DEFAULT (_CMU_IF_USBCHFOSCSEL_DEFAULT << 9)
722 /* Bit fields for CMU IFS */
723 #define _CMU_IFS_RESETVALUE 0x00000000UL
724 #define _CMU_IFS_MASK 0x0000037FUL
725 #define CMU_IFS_HFRCORDY (0x1UL << 0)
726 #define _CMU_IFS_HFRCORDY_SHIFT 0
727 #define _CMU_IFS_HFRCORDY_MASK 0x1UL
728 #define _CMU_IFS_HFRCORDY_DEFAULT 0x00000000UL
729 #define CMU_IFS_HFRCORDY_DEFAULT (_CMU_IFS_HFRCORDY_DEFAULT << 0)
730 #define CMU_IFS_HFXORDY (0x1UL << 1)
731 #define _CMU_IFS_HFXORDY_SHIFT 1
732 #define _CMU_IFS_HFXORDY_MASK 0x2UL
733 #define _CMU_IFS_HFXORDY_DEFAULT 0x00000000UL
734 #define CMU_IFS_HFXORDY_DEFAULT (_CMU_IFS_HFXORDY_DEFAULT << 1)
735 #define CMU_IFS_LFRCORDY (0x1UL << 2)
736 #define _CMU_IFS_LFRCORDY_SHIFT 2
737 #define _CMU_IFS_LFRCORDY_MASK 0x4UL
738 #define _CMU_IFS_LFRCORDY_DEFAULT 0x00000000UL
739 #define CMU_IFS_LFRCORDY_DEFAULT (_CMU_IFS_LFRCORDY_DEFAULT << 2)
740 #define CMU_IFS_LFXORDY (0x1UL << 3)
741 #define _CMU_IFS_LFXORDY_SHIFT 3
742 #define _CMU_IFS_LFXORDY_MASK 0x8UL
743 #define _CMU_IFS_LFXORDY_DEFAULT 0x00000000UL
744 #define CMU_IFS_LFXORDY_DEFAULT (_CMU_IFS_LFXORDY_DEFAULT << 3)
745 #define CMU_IFS_AUXHFRCORDY (0x1UL << 4)
746 #define _CMU_IFS_AUXHFRCORDY_SHIFT 4
747 #define _CMU_IFS_AUXHFRCORDY_MASK 0x10UL
748 #define _CMU_IFS_AUXHFRCORDY_DEFAULT 0x00000000UL
749 #define CMU_IFS_AUXHFRCORDY_DEFAULT (_CMU_IFS_AUXHFRCORDY_DEFAULT << 4)
750 #define CMU_IFS_CALRDY (0x1UL << 5)
751 #define _CMU_IFS_CALRDY_SHIFT 5
752 #define _CMU_IFS_CALRDY_MASK 0x20UL
753 #define _CMU_IFS_CALRDY_DEFAULT 0x00000000UL
754 #define CMU_IFS_CALRDY_DEFAULT (_CMU_IFS_CALRDY_DEFAULT << 5)
755 #define CMU_IFS_CALOF (0x1UL << 6)
756 #define _CMU_IFS_CALOF_SHIFT 6
757 #define _CMU_IFS_CALOF_MASK 0x40UL
758 #define _CMU_IFS_CALOF_DEFAULT 0x00000000UL
759 #define CMU_IFS_CALOF_DEFAULT (_CMU_IFS_CALOF_DEFAULT << 6)
760 #define CMU_IFS_USHFRCORDY (0x1UL << 8)
761 #define _CMU_IFS_USHFRCORDY_SHIFT 8
762 #define _CMU_IFS_USHFRCORDY_MASK 0x100UL
763 #define _CMU_IFS_USHFRCORDY_DEFAULT 0x00000000UL
764 #define CMU_IFS_USHFRCORDY_DEFAULT (_CMU_IFS_USHFRCORDY_DEFAULT << 8)
765 #define CMU_IFS_USBCHFOSCSEL (0x1UL << 9)
766 #define _CMU_IFS_USBCHFOSCSEL_SHIFT 9
767 #define _CMU_IFS_USBCHFOSCSEL_MASK 0x200UL
768 #define _CMU_IFS_USBCHFOSCSEL_DEFAULT 0x00000000UL
769 #define CMU_IFS_USBCHFOSCSEL_DEFAULT (_CMU_IFS_USBCHFOSCSEL_DEFAULT << 9)
771 /* Bit fields for CMU IFC */
772 #define _CMU_IFC_RESETVALUE 0x00000000UL
773 #define _CMU_IFC_MASK 0x0000037FUL
774 #define CMU_IFC_HFRCORDY (0x1UL << 0)
775 #define _CMU_IFC_HFRCORDY_SHIFT 0
776 #define _CMU_IFC_HFRCORDY_MASK 0x1UL
777 #define _CMU_IFC_HFRCORDY_DEFAULT 0x00000000UL
778 #define CMU_IFC_HFRCORDY_DEFAULT (_CMU_IFC_HFRCORDY_DEFAULT << 0)
779 #define CMU_IFC_HFXORDY (0x1UL << 1)
780 #define _CMU_IFC_HFXORDY_SHIFT 1
781 #define _CMU_IFC_HFXORDY_MASK 0x2UL
782 #define _CMU_IFC_HFXORDY_DEFAULT 0x00000000UL
783 #define CMU_IFC_HFXORDY_DEFAULT (_CMU_IFC_HFXORDY_DEFAULT << 1)
784 #define CMU_IFC_LFRCORDY (0x1UL << 2)
785 #define _CMU_IFC_LFRCORDY_SHIFT 2
786 #define _CMU_IFC_LFRCORDY_MASK 0x4UL
787 #define _CMU_IFC_LFRCORDY_DEFAULT 0x00000000UL
788 #define CMU_IFC_LFRCORDY_DEFAULT (_CMU_IFC_LFRCORDY_DEFAULT << 2)
789 #define CMU_IFC_LFXORDY (0x1UL << 3)
790 #define _CMU_IFC_LFXORDY_SHIFT 3
791 #define _CMU_IFC_LFXORDY_MASK 0x8UL
792 #define _CMU_IFC_LFXORDY_DEFAULT 0x00000000UL
793 #define CMU_IFC_LFXORDY_DEFAULT (_CMU_IFC_LFXORDY_DEFAULT << 3)
794 #define CMU_IFC_AUXHFRCORDY (0x1UL << 4)
795 #define _CMU_IFC_AUXHFRCORDY_SHIFT 4
796 #define _CMU_IFC_AUXHFRCORDY_MASK 0x10UL
797 #define _CMU_IFC_AUXHFRCORDY_DEFAULT 0x00000000UL
798 #define CMU_IFC_AUXHFRCORDY_DEFAULT (_CMU_IFC_AUXHFRCORDY_DEFAULT << 4)
799 #define CMU_IFC_CALRDY (0x1UL << 5)
800 #define _CMU_IFC_CALRDY_SHIFT 5
801 #define _CMU_IFC_CALRDY_MASK 0x20UL
802 #define _CMU_IFC_CALRDY_DEFAULT 0x00000000UL
803 #define CMU_IFC_CALRDY_DEFAULT (_CMU_IFC_CALRDY_DEFAULT << 5)
804 #define CMU_IFC_CALOF (0x1UL << 6)
805 #define _CMU_IFC_CALOF_SHIFT 6
806 #define _CMU_IFC_CALOF_MASK 0x40UL
807 #define _CMU_IFC_CALOF_DEFAULT 0x00000000UL
808 #define CMU_IFC_CALOF_DEFAULT (_CMU_IFC_CALOF_DEFAULT << 6)
809 #define CMU_IFC_USHFRCORDY (0x1UL << 8)
810 #define _CMU_IFC_USHFRCORDY_SHIFT 8
811 #define _CMU_IFC_USHFRCORDY_MASK 0x100UL
812 #define _CMU_IFC_USHFRCORDY_DEFAULT 0x00000000UL
813 #define CMU_IFC_USHFRCORDY_DEFAULT (_CMU_IFC_USHFRCORDY_DEFAULT << 8)
814 #define CMU_IFC_USBCHFOSCSEL (0x1UL << 9)
815 #define _CMU_IFC_USBCHFOSCSEL_SHIFT 9
816 #define _CMU_IFC_USBCHFOSCSEL_MASK 0x200UL
817 #define _CMU_IFC_USBCHFOSCSEL_DEFAULT 0x00000000UL
818 #define CMU_IFC_USBCHFOSCSEL_DEFAULT (_CMU_IFC_USBCHFOSCSEL_DEFAULT << 9)
820 /* Bit fields for CMU IEN */
821 #define _CMU_IEN_RESETVALUE 0x00000000UL
822 #define _CMU_IEN_MASK 0x0000037FUL
823 #define CMU_IEN_HFRCORDY (0x1UL << 0)
824 #define _CMU_IEN_HFRCORDY_SHIFT 0
825 #define _CMU_IEN_HFRCORDY_MASK 0x1UL
826 #define _CMU_IEN_HFRCORDY_DEFAULT 0x00000000UL
827 #define CMU_IEN_HFRCORDY_DEFAULT (_CMU_IEN_HFRCORDY_DEFAULT << 0)
828 #define CMU_IEN_HFXORDY (0x1UL << 1)
829 #define _CMU_IEN_HFXORDY_SHIFT 1
830 #define _CMU_IEN_HFXORDY_MASK 0x2UL
831 #define _CMU_IEN_HFXORDY_DEFAULT 0x00000000UL
832 #define CMU_IEN_HFXORDY_DEFAULT (_CMU_IEN_HFXORDY_DEFAULT << 1)
833 #define CMU_IEN_LFRCORDY (0x1UL << 2)
834 #define _CMU_IEN_LFRCORDY_SHIFT 2
835 #define _CMU_IEN_LFRCORDY_MASK 0x4UL
836 #define _CMU_IEN_LFRCORDY_DEFAULT 0x00000000UL
837 #define CMU_IEN_LFRCORDY_DEFAULT (_CMU_IEN_LFRCORDY_DEFAULT << 2)
838 #define CMU_IEN_LFXORDY (0x1UL << 3)
839 #define _CMU_IEN_LFXORDY_SHIFT 3
840 #define _CMU_IEN_LFXORDY_MASK 0x8UL
841 #define _CMU_IEN_LFXORDY_DEFAULT 0x00000000UL
842 #define CMU_IEN_LFXORDY_DEFAULT (_CMU_IEN_LFXORDY_DEFAULT << 3)
843 #define CMU_IEN_AUXHFRCORDY (0x1UL << 4)
844 #define _CMU_IEN_AUXHFRCORDY_SHIFT 4
845 #define _CMU_IEN_AUXHFRCORDY_MASK 0x10UL
846 #define _CMU_IEN_AUXHFRCORDY_DEFAULT 0x00000000UL
847 #define CMU_IEN_AUXHFRCORDY_DEFAULT (_CMU_IEN_AUXHFRCORDY_DEFAULT << 4)
848 #define CMU_IEN_CALRDY (0x1UL << 5)
849 #define _CMU_IEN_CALRDY_SHIFT 5
850 #define _CMU_IEN_CALRDY_MASK 0x20UL
851 #define _CMU_IEN_CALRDY_DEFAULT 0x00000000UL
852 #define CMU_IEN_CALRDY_DEFAULT (_CMU_IEN_CALRDY_DEFAULT << 5)
853 #define CMU_IEN_CALOF (0x1UL << 6)
854 #define _CMU_IEN_CALOF_SHIFT 6
855 #define _CMU_IEN_CALOF_MASK 0x40UL
856 #define _CMU_IEN_CALOF_DEFAULT 0x00000000UL
857 #define CMU_IEN_CALOF_DEFAULT (_CMU_IEN_CALOF_DEFAULT << 6)
858 #define CMU_IEN_USHFRCORDY (0x1UL << 8)
859 #define _CMU_IEN_USHFRCORDY_SHIFT 8
860 #define _CMU_IEN_USHFRCORDY_MASK 0x100UL
861 #define _CMU_IEN_USHFRCORDY_DEFAULT 0x00000000UL
862 #define CMU_IEN_USHFRCORDY_DEFAULT (_CMU_IEN_USHFRCORDY_DEFAULT << 8)
863 #define CMU_IEN_USBCHFOSCSEL (0x1UL << 9)
864 #define _CMU_IEN_USBCHFOSCSEL_SHIFT 9
865 #define _CMU_IEN_USBCHFOSCSEL_MASK 0x200UL
866 #define _CMU_IEN_USBCHFOSCSEL_DEFAULT 0x00000000UL
867 #define CMU_IEN_USBCHFOSCSEL_DEFAULT (_CMU_IEN_USBCHFOSCSEL_DEFAULT << 9)
869 /* Bit fields for CMU HFCORECLKEN0 */
870 #define _CMU_HFCORECLKEN0_RESETVALUE 0x00000000UL
871 #define _CMU_HFCORECLKEN0_MASK 0x0000001FUL
872 #define CMU_HFCORECLKEN0_AES (0x1UL << 0)
873 #define _CMU_HFCORECLKEN0_AES_SHIFT 0
874 #define _CMU_HFCORECLKEN0_AES_MASK 0x1UL
875 #define _CMU_HFCORECLKEN0_AES_DEFAULT 0x00000000UL
876 #define CMU_HFCORECLKEN0_AES_DEFAULT (_CMU_HFCORECLKEN0_AES_DEFAULT << 0)
877 #define CMU_HFCORECLKEN0_DMA (0x1UL << 1)
878 #define _CMU_HFCORECLKEN0_DMA_SHIFT 1
879 #define _CMU_HFCORECLKEN0_DMA_MASK 0x2UL
880 #define _CMU_HFCORECLKEN0_DMA_DEFAULT 0x00000000UL
881 #define CMU_HFCORECLKEN0_DMA_DEFAULT (_CMU_HFCORECLKEN0_DMA_DEFAULT << 1)
882 #define CMU_HFCORECLKEN0_LE (0x1UL << 2)
883 #define _CMU_HFCORECLKEN0_LE_SHIFT 2
884 #define _CMU_HFCORECLKEN0_LE_MASK 0x4UL
885 #define _CMU_HFCORECLKEN0_LE_DEFAULT 0x00000000UL
886 #define CMU_HFCORECLKEN0_LE_DEFAULT (_CMU_HFCORECLKEN0_LE_DEFAULT << 2)
887 #define CMU_HFCORECLKEN0_USBC (0x1UL << 3)
888 #define _CMU_HFCORECLKEN0_USBC_SHIFT 3
889 #define _CMU_HFCORECLKEN0_USBC_MASK 0x8UL
890 #define _CMU_HFCORECLKEN0_USBC_DEFAULT 0x00000000UL
891 #define CMU_HFCORECLKEN0_USBC_DEFAULT (_CMU_HFCORECLKEN0_USBC_DEFAULT << 3)
892 #define CMU_HFCORECLKEN0_USB (0x1UL << 4)
893 #define _CMU_HFCORECLKEN0_USB_SHIFT 4
894 #define _CMU_HFCORECLKEN0_USB_MASK 0x10UL
895 #define _CMU_HFCORECLKEN0_USB_DEFAULT 0x00000000UL
896 #define CMU_HFCORECLKEN0_USB_DEFAULT (_CMU_HFCORECLKEN0_USB_DEFAULT << 4)
898 /* Bit fields for CMU HFPERCLKEN0 */
899 #define _CMU_HFPERCLKEN0_RESETVALUE 0x00000000UL
900 #define _CMU_HFPERCLKEN0_MASK 0x00000FFFUL
901 #define CMU_HFPERCLKEN0_TIMER0 (0x1UL << 0)
902 #define _CMU_HFPERCLKEN0_TIMER0_SHIFT 0
903 #define _CMU_HFPERCLKEN0_TIMER0_MASK 0x1UL
904 #define _CMU_HFPERCLKEN0_TIMER0_DEFAULT 0x00000000UL
905 #define CMU_HFPERCLKEN0_TIMER0_DEFAULT (_CMU_HFPERCLKEN0_TIMER0_DEFAULT << 0)
906 #define CMU_HFPERCLKEN0_TIMER1 (0x1UL << 1)
907 #define _CMU_HFPERCLKEN0_TIMER1_SHIFT 1
908 #define _CMU_HFPERCLKEN0_TIMER1_MASK 0x2UL
909 #define _CMU_HFPERCLKEN0_TIMER1_DEFAULT 0x00000000UL
910 #define CMU_HFPERCLKEN0_TIMER1_DEFAULT (_CMU_HFPERCLKEN0_TIMER1_DEFAULT << 1)
911 #define CMU_HFPERCLKEN0_TIMER2 (0x1UL << 2)
912 #define _CMU_HFPERCLKEN0_TIMER2_SHIFT 2
913 #define _CMU_HFPERCLKEN0_TIMER2_MASK 0x4UL
914 #define _CMU_HFPERCLKEN0_TIMER2_DEFAULT 0x00000000UL
915 #define CMU_HFPERCLKEN0_TIMER2_DEFAULT (_CMU_HFPERCLKEN0_TIMER2_DEFAULT << 2)
916 #define CMU_HFPERCLKEN0_USART0 (0x1UL << 3)
917 #define _CMU_HFPERCLKEN0_USART0_SHIFT 3
918 #define _CMU_HFPERCLKEN0_USART0_MASK 0x8UL
919 #define _CMU_HFPERCLKEN0_USART0_DEFAULT 0x00000000UL
920 #define CMU_HFPERCLKEN0_USART0_DEFAULT (_CMU_HFPERCLKEN0_USART0_DEFAULT << 3)
921 #define CMU_HFPERCLKEN0_USART1 (0x1UL << 4)
922 #define _CMU_HFPERCLKEN0_USART1_SHIFT 4
923 #define _CMU_HFPERCLKEN0_USART1_MASK 0x10UL
924 #define _CMU_HFPERCLKEN0_USART1_DEFAULT 0x00000000UL
925 #define CMU_HFPERCLKEN0_USART1_DEFAULT (_CMU_HFPERCLKEN0_USART1_DEFAULT << 4)
926 #define CMU_HFPERCLKEN0_ACMP0 (0x1UL << 5)
927 #define _CMU_HFPERCLKEN0_ACMP0_SHIFT 5
928 #define _CMU_HFPERCLKEN0_ACMP0_MASK 0x20UL
929 #define _CMU_HFPERCLKEN0_ACMP0_DEFAULT 0x00000000UL
930 #define CMU_HFPERCLKEN0_ACMP0_DEFAULT (_CMU_HFPERCLKEN0_ACMP0_DEFAULT << 5)
931 #define CMU_HFPERCLKEN0_PRS (0x1UL << 6)
932 #define _CMU_HFPERCLKEN0_PRS_SHIFT 6
933 #define _CMU_HFPERCLKEN0_PRS_MASK 0x40UL
934 #define _CMU_HFPERCLKEN0_PRS_DEFAULT 0x00000000UL
935 #define CMU_HFPERCLKEN0_PRS_DEFAULT (_CMU_HFPERCLKEN0_PRS_DEFAULT << 6)
936 #define CMU_HFPERCLKEN0_IDAC0 (0x1UL << 7)
937 #define _CMU_HFPERCLKEN0_IDAC0_SHIFT 7
938 #define _CMU_HFPERCLKEN0_IDAC0_MASK 0x80UL
939 #define _CMU_HFPERCLKEN0_IDAC0_DEFAULT 0x00000000UL
940 #define CMU_HFPERCLKEN0_IDAC0_DEFAULT (_CMU_HFPERCLKEN0_IDAC0_DEFAULT << 7)
941 #define CMU_HFPERCLKEN0_GPIO (0x1UL << 8)
942 #define _CMU_HFPERCLKEN0_GPIO_SHIFT 8
943 #define _CMU_HFPERCLKEN0_GPIO_MASK 0x100UL
944 #define _CMU_HFPERCLKEN0_GPIO_DEFAULT 0x00000000UL
945 #define CMU_HFPERCLKEN0_GPIO_DEFAULT (_CMU_HFPERCLKEN0_GPIO_DEFAULT << 8)
946 #define CMU_HFPERCLKEN0_VCMP (0x1UL << 9)
947 #define _CMU_HFPERCLKEN0_VCMP_SHIFT 9
948 #define _CMU_HFPERCLKEN0_VCMP_MASK 0x200UL
949 #define _CMU_HFPERCLKEN0_VCMP_DEFAULT 0x00000000UL
950 #define CMU_HFPERCLKEN0_VCMP_DEFAULT (_CMU_HFPERCLKEN0_VCMP_DEFAULT << 9)
951 #define CMU_HFPERCLKEN0_ADC0 (0x1UL << 10)
952 #define _CMU_HFPERCLKEN0_ADC0_SHIFT 10
953 #define _CMU_HFPERCLKEN0_ADC0_MASK 0x400UL
954 #define _CMU_HFPERCLKEN0_ADC0_DEFAULT 0x00000000UL
955 #define CMU_HFPERCLKEN0_ADC0_DEFAULT (_CMU_HFPERCLKEN0_ADC0_DEFAULT << 10)
956 #define CMU_HFPERCLKEN0_I2C0 (0x1UL << 11)
957 #define _CMU_HFPERCLKEN0_I2C0_SHIFT 11
958 #define _CMU_HFPERCLKEN0_I2C0_MASK 0x800UL
959 #define _CMU_HFPERCLKEN0_I2C0_DEFAULT 0x00000000UL
960 #define CMU_HFPERCLKEN0_I2C0_DEFAULT (_CMU_HFPERCLKEN0_I2C0_DEFAULT << 11)
962 /* Bit fields for CMU SYNCBUSY */
963 #define _CMU_SYNCBUSY_RESETVALUE 0x00000000UL
964 #define _CMU_SYNCBUSY_MASK 0x00000155UL
965 #define CMU_SYNCBUSY_LFACLKEN0 (0x1UL << 0)
966 #define _CMU_SYNCBUSY_LFACLKEN0_SHIFT 0
967 #define _CMU_SYNCBUSY_LFACLKEN0_MASK 0x1UL
968 #define _CMU_SYNCBUSY_LFACLKEN0_DEFAULT 0x00000000UL
969 #define CMU_SYNCBUSY_LFACLKEN0_DEFAULT (_CMU_SYNCBUSY_LFACLKEN0_DEFAULT << 0)
970 #define CMU_SYNCBUSY_LFAPRESC0 (0x1UL << 2)
971 #define _CMU_SYNCBUSY_LFAPRESC0_SHIFT 2
972 #define _CMU_SYNCBUSY_LFAPRESC0_MASK 0x4UL
973 #define _CMU_SYNCBUSY_LFAPRESC0_DEFAULT 0x00000000UL
974 #define CMU_SYNCBUSY_LFAPRESC0_DEFAULT (_CMU_SYNCBUSY_LFAPRESC0_DEFAULT << 2)
975 #define CMU_SYNCBUSY_LFBCLKEN0 (0x1UL << 4)
976 #define _CMU_SYNCBUSY_LFBCLKEN0_SHIFT 4
977 #define _CMU_SYNCBUSY_LFBCLKEN0_MASK 0x10UL
978 #define _CMU_SYNCBUSY_LFBCLKEN0_DEFAULT 0x00000000UL
979 #define CMU_SYNCBUSY_LFBCLKEN0_DEFAULT (_CMU_SYNCBUSY_LFBCLKEN0_DEFAULT << 4)
980 #define CMU_SYNCBUSY_LFBPRESC0 (0x1UL << 6)
981 #define _CMU_SYNCBUSY_LFBPRESC0_SHIFT 6
982 #define _CMU_SYNCBUSY_LFBPRESC0_MASK 0x40UL
983 #define _CMU_SYNCBUSY_LFBPRESC0_DEFAULT 0x00000000UL
984 #define CMU_SYNCBUSY_LFBPRESC0_DEFAULT (_CMU_SYNCBUSY_LFBPRESC0_DEFAULT << 6)
985 #define CMU_SYNCBUSY_LFCCLKEN0 (0x1UL << 8)
986 #define _CMU_SYNCBUSY_LFCCLKEN0_SHIFT 8
987 #define _CMU_SYNCBUSY_LFCCLKEN0_MASK 0x100UL
988 #define _CMU_SYNCBUSY_LFCCLKEN0_DEFAULT 0x00000000UL
989 #define CMU_SYNCBUSY_LFCCLKEN0_DEFAULT (_CMU_SYNCBUSY_LFCCLKEN0_DEFAULT << 8)
991 /* Bit fields for CMU FREEZE */
992 #define _CMU_FREEZE_RESETVALUE 0x00000000UL
993 #define _CMU_FREEZE_MASK 0x00000001UL
994 #define CMU_FREEZE_REGFREEZE (0x1UL << 0)
995 #define _CMU_FREEZE_REGFREEZE_SHIFT 0
996 #define _CMU_FREEZE_REGFREEZE_MASK 0x1UL
997 #define _CMU_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
998 #define _CMU_FREEZE_REGFREEZE_UPDATE 0x00000000UL
999 #define _CMU_FREEZE_REGFREEZE_FREEZE 0x00000001UL
1000 #define CMU_FREEZE_REGFREEZE_DEFAULT (_CMU_FREEZE_REGFREEZE_DEFAULT << 0)
1001 #define CMU_FREEZE_REGFREEZE_UPDATE (_CMU_FREEZE_REGFREEZE_UPDATE << 0)
1002 #define CMU_FREEZE_REGFREEZE_FREEZE (_CMU_FREEZE_REGFREEZE_FREEZE << 0)
1004 /* Bit fields for CMU LFACLKEN0 */
1005 #define _CMU_LFACLKEN0_RESETVALUE 0x00000000UL
1006 #define _CMU_LFACLKEN0_MASK 0x00000001UL
1007 #define CMU_LFACLKEN0_RTC (0x1UL << 0)
1008 #define _CMU_LFACLKEN0_RTC_SHIFT 0
1009 #define _CMU_LFACLKEN0_RTC_MASK 0x1UL
1010 #define _CMU_LFACLKEN0_RTC_DEFAULT 0x00000000UL
1011 #define CMU_LFACLKEN0_RTC_DEFAULT (_CMU_LFACLKEN0_RTC_DEFAULT << 0)
1013 /* Bit fields for CMU LFBCLKEN0 */
1014 #define _CMU_LFBCLKEN0_RESETVALUE 0x00000000UL
1015 #define _CMU_LFBCLKEN0_MASK 0x00000001UL
1016 #define CMU_LFBCLKEN0_LEUART0 (0x1UL << 0)
1017 #define _CMU_LFBCLKEN0_LEUART0_SHIFT 0
1018 #define _CMU_LFBCLKEN0_LEUART0_MASK 0x1UL
1019 #define _CMU_LFBCLKEN0_LEUART0_DEFAULT 0x00000000UL
1020 #define CMU_LFBCLKEN0_LEUART0_DEFAULT (_CMU_LFBCLKEN0_LEUART0_DEFAULT << 0)
1022 /* Bit fields for CMU LFCCLKEN0 */
1023 #define _CMU_LFCCLKEN0_RESETVALUE 0x00000000UL
1024 #define _CMU_LFCCLKEN0_MASK 0x00000001UL
1025 #define CMU_LFCCLKEN0_USBLE (0x1UL << 0)
1026 #define _CMU_LFCCLKEN0_USBLE_SHIFT 0
1027 #define _CMU_LFCCLKEN0_USBLE_MASK 0x1UL
1028 #define _CMU_LFCCLKEN0_USBLE_DEFAULT 0x00000000UL
1029 #define CMU_LFCCLKEN0_USBLE_DEFAULT (_CMU_LFCCLKEN0_USBLE_DEFAULT << 0)
1031 /* Bit fields for CMU LFAPRESC0 */
1032 #define _CMU_LFAPRESC0_RESETVALUE 0x00000000UL
1033 #define _CMU_LFAPRESC0_MASK 0x0000000FUL
1034 #define _CMU_LFAPRESC0_RTC_SHIFT 0
1035 #define _CMU_LFAPRESC0_RTC_MASK 0xFUL
1036 #define _CMU_LFAPRESC0_RTC_DIV1 0x00000000UL
1037 #define _CMU_LFAPRESC0_RTC_DIV2 0x00000001UL
1038 #define _CMU_LFAPRESC0_RTC_DIV4 0x00000002UL
1039 #define _CMU_LFAPRESC0_RTC_DIV8 0x00000003UL
1040 #define _CMU_LFAPRESC0_RTC_DIV16 0x00000004UL
1041 #define _CMU_LFAPRESC0_RTC_DIV32 0x00000005UL
1042 #define _CMU_LFAPRESC0_RTC_DIV64 0x00000006UL
1043 #define _CMU_LFAPRESC0_RTC_DIV128 0x00000007UL
1044 #define _CMU_LFAPRESC0_RTC_DIV256 0x00000008UL
1045 #define _CMU_LFAPRESC0_RTC_DIV512 0x00000009UL
1046 #define _CMU_LFAPRESC0_RTC_DIV1024 0x0000000AUL
1047 #define _CMU_LFAPRESC0_RTC_DIV2048 0x0000000BUL
1048 #define _CMU_LFAPRESC0_RTC_DIV4096 0x0000000CUL
1049 #define _CMU_LFAPRESC0_RTC_DIV8192 0x0000000DUL
1050 #define _CMU_LFAPRESC0_RTC_DIV16384 0x0000000EUL
1051 #define _CMU_LFAPRESC0_RTC_DIV32768 0x0000000FUL
1052 #define CMU_LFAPRESC0_RTC_DIV1 (_CMU_LFAPRESC0_RTC_DIV1 << 0)
1053 #define CMU_LFAPRESC0_RTC_DIV2 (_CMU_LFAPRESC0_RTC_DIV2 << 0)
1054 #define CMU_LFAPRESC0_RTC_DIV4 (_CMU_LFAPRESC0_RTC_DIV4 << 0)
1055 #define CMU_LFAPRESC0_RTC_DIV8 (_CMU_LFAPRESC0_RTC_DIV8 << 0)
1056 #define CMU_LFAPRESC0_RTC_DIV16 (_CMU_LFAPRESC0_RTC_DIV16 << 0)
1057 #define CMU_LFAPRESC0_RTC_DIV32 (_CMU_LFAPRESC0_RTC_DIV32 << 0)
1058 #define CMU_LFAPRESC0_RTC_DIV64 (_CMU_LFAPRESC0_RTC_DIV64 << 0)
1059 #define CMU_LFAPRESC0_RTC_DIV128 (_CMU_LFAPRESC0_RTC_DIV128 << 0)
1060 #define CMU_LFAPRESC0_RTC_DIV256 (_CMU_LFAPRESC0_RTC_DIV256 << 0)
1061 #define CMU_LFAPRESC0_RTC_DIV512 (_CMU_LFAPRESC0_RTC_DIV512 << 0)
1062 #define CMU_LFAPRESC0_RTC_DIV1024 (_CMU_LFAPRESC0_RTC_DIV1024 << 0)
1063 #define CMU_LFAPRESC0_RTC_DIV2048 (_CMU_LFAPRESC0_RTC_DIV2048 << 0)
1064 #define CMU_LFAPRESC0_RTC_DIV4096 (_CMU_LFAPRESC0_RTC_DIV4096 << 0)
1065 #define CMU_LFAPRESC0_RTC_DIV8192 (_CMU_LFAPRESC0_RTC_DIV8192 << 0)
1066 #define CMU_LFAPRESC0_RTC_DIV16384 (_CMU_LFAPRESC0_RTC_DIV16384 << 0)
1067 #define CMU_LFAPRESC0_RTC_DIV32768 (_CMU_LFAPRESC0_RTC_DIV32768 << 0)
1069 /* Bit fields for CMU LFBPRESC0 */
1070 #define _CMU_LFBPRESC0_RESETVALUE 0x00000000UL
1071 #define _CMU_LFBPRESC0_MASK 0x00000003UL
1072 #define _CMU_LFBPRESC0_LEUART0_SHIFT 0
1073 #define _CMU_LFBPRESC0_LEUART0_MASK 0x3UL
1074 #define _CMU_LFBPRESC0_LEUART0_DIV1 0x00000000UL
1075 #define _CMU_LFBPRESC0_LEUART0_DIV2 0x00000001UL
1076 #define _CMU_LFBPRESC0_LEUART0_DIV4 0x00000002UL
1077 #define _CMU_LFBPRESC0_LEUART0_DIV8 0x00000003UL
1078 #define CMU_LFBPRESC0_LEUART0_DIV1 (_CMU_LFBPRESC0_LEUART0_DIV1 << 0)
1079 #define CMU_LFBPRESC0_LEUART0_DIV2 (_CMU_LFBPRESC0_LEUART0_DIV2 << 0)
1080 #define CMU_LFBPRESC0_LEUART0_DIV4 (_CMU_LFBPRESC0_LEUART0_DIV4 << 0)
1081 #define CMU_LFBPRESC0_LEUART0_DIV8 (_CMU_LFBPRESC0_LEUART0_DIV8 << 0)
1083 /* Bit fields for CMU PCNTCTRL */
1084 #define _CMU_PCNTCTRL_RESETVALUE 0x00000000UL
1085 #define _CMU_PCNTCTRL_MASK 0x00000003UL
1086 #define CMU_PCNTCTRL_PCNT0CLKEN (0x1UL << 0)
1087 #define _CMU_PCNTCTRL_PCNT0CLKEN_SHIFT 0
1088 #define _CMU_PCNTCTRL_PCNT0CLKEN_MASK 0x1UL
1089 #define _CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT 0x00000000UL
1090 #define CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT (_CMU_PCNTCTRL_PCNT0CLKEN_DEFAULT << 0)
1091 #define CMU_PCNTCTRL_PCNT0CLKSEL (0x1UL << 1)
1092 #define _CMU_PCNTCTRL_PCNT0CLKSEL_SHIFT 1
1093 #define _CMU_PCNTCTRL_PCNT0CLKSEL_MASK 0x2UL
1094 #define _CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT 0x00000000UL
1095 #define _CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK 0x00000000UL
1096 #define _CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 0x00000001UL
1097 #define CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT (_CMU_PCNTCTRL_PCNT0CLKSEL_DEFAULT << 1)
1098 #define CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK (_CMU_PCNTCTRL_PCNT0CLKSEL_LFACLK << 1)
1099 #define CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 (_CMU_PCNTCTRL_PCNT0CLKSEL_PCNT0S0 << 1)
1101 /* Bit fields for CMU ROUTE */
1102 #define _CMU_ROUTE_RESETVALUE 0x00000000UL
1103 #define _CMU_ROUTE_MASK 0x0000001FUL
1104 #define CMU_ROUTE_CLKOUT0PEN (0x1UL << 0)
1105 #define _CMU_ROUTE_CLKOUT0PEN_SHIFT 0
1106 #define _CMU_ROUTE_CLKOUT0PEN_MASK 0x1UL
1107 #define _CMU_ROUTE_CLKOUT0PEN_DEFAULT 0x00000000UL
1108 #define CMU_ROUTE_CLKOUT0PEN_DEFAULT (_CMU_ROUTE_CLKOUT0PEN_DEFAULT << 0)
1109 #define CMU_ROUTE_CLKOUT1PEN (0x1UL << 1)
1110 #define _CMU_ROUTE_CLKOUT1PEN_SHIFT 1
1111 #define _CMU_ROUTE_CLKOUT1PEN_MASK 0x2UL
1112 #define _CMU_ROUTE_CLKOUT1PEN_DEFAULT 0x00000000UL
1113 #define CMU_ROUTE_CLKOUT1PEN_DEFAULT (_CMU_ROUTE_CLKOUT1PEN_DEFAULT << 1)
1114 #define _CMU_ROUTE_LOCATION_SHIFT 2
1115 #define _CMU_ROUTE_LOCATION_MASK 0x1CUL
1116 #define _CMU_ROUTE_LOCATION_LOC0 0x00000000UL
1117 #define _CMU_ROUTE_LOCATION_DEFAULT 0x00000000UL
1118 #define _CMU_ROUTE_LOCATION_LOC1 0x00000001UL
1119 #define _CMU_ROUTE_LOCATION_LOC2 0x00000002UL
1120 #define _CMU_ROUTE_LOCATION_LOC3 0x00000003UL
1121 #define CMU_ROUTE_LOCATION_LOC0 (_CMU_ROUTE_LOCATION_LOC0 << 2)
1122 #define CMU_ROUTE_LOCATION_DEFAULT (_CMU_ROUTE_LOCATION_DEFAULT << 2)
1123 #define CMU_ROUTE_LOCATION_LOC1 (_CMU_ROUTE_LOCATION_LOC1 << 2)
1124 #define CMU_ROUTE_LOCATION_LOC2 (_CMU_ROUTE_LOCATION_LOC2 << 2)
1125 #define CMU_ROUTE_LOCATION_LOC3 (_CMU_ROUTE_LOCATION_LOC3 << 2)
1127 /* Bit fields for CMU LOCK */
1128 #define _CMU_LOCK_RESETVALUE 0x00000000UL
1129 #define _CMU_LOCK_MASK 0x0000FFFFUL
1130 #define _CMU_LOCK_LOCKKEY_SHIFT 0
1131 #define _CMU_LOCK_LOCKKEY_MASK 0xFFFFUL
1132 #define _CMU_LOCK_LOCKKEY_DEFAULT 0x00000000UL
1133 #define _CMU_LOCK_LOCKKEY_LOCK 0x00000000UL
1134 #define _CMU_LOCK_LOCKKEY_UNLOCKED 0x00000000UL
1135 #define _CMU_LOCK_LOCKKEY_LOCKED 0x00000001UL
1136 #define _CMU_LOCK_LOCKKEY_UNLOCK 0x0000580EUL
1137 #define CMU_LOCK_LOCKKEY_DEFAULT (_CMU_LOCK_LOCKKEY_DEFAULT << 0)
1138 #define CMU_LOCK_LOCKKEY_LOCK (_CMU_LOCK_LOCKKEY_LOCK << 0)
1139 #define CMU_LOCK_LOCKKEY_UNLOCKED (_CMU_LOCK_LOCKKEY_UNLOCKED << 0)
1140 #define CMU_LOCK_LOCKKEY_LOCKED (_CMU_LOCK_LOCKKEY_LOCKED << 0)
1141 #define CMU_LOCK_LOCKKEY_UNLOCK (_CMU_LOCK_LOCKKEY_UNLOCK << 0)
1143 /* Bit fields for CMU USBCRCTRL */
1144 #define _CMU_USBCRCTRL_RESETVALUE 0x00000000UL
1145 #define _CMU_USBCRCTRL_MASK 0x00000003UL
1146 #define CMU_USBCRCTRL_EN (0x1UL << 0)
1147 #define _CMU_USBCRCTRL_EN_SHIFT 0
1148 #define _CMU_USBCRCTRL_EN_MASK 0x1UL
1149 #define _CMU_USBCRCTRL_EN_DEFAULT 0x00000000UL
1150 #define CMU_USBCRCTRL_EN_DEFAULT (_CMU_USBCRCTRL_EN_DEFAULT << 0)
1151 #define CMU_USBCRCTRL_LSMODE (0x1UL << 1)
1152 #define _CMU_USBCRCTRL_LSMODE_SHIFT 1
1153 #define _CMU_USBCRCTRL_LSMODE_MASK 0x2UL
1154 #define _CMU_USBCRCTRL_LSMODE_DEFAULT 0x00000000UL
1155 #define CMU_USBCRCTRL_LSMODE_DEFAULT (_CMU_USBCRCTRL_LSMODE_DEFAULT << 1)
1157 /* Bit fields for CMU USHFRCOCTRL */
1158 #define _CMU_USHFRCOCTRL_RESETVALUE 0x000FF040UL
1159 #define _CMU_USHFRCOCTRL_MASK 0x000FF37FUL
1160 #define _CMU_USHFRCOCTRL_TUNING_SHIFT 0
1161 #define _CMU_USHFRCOCTRL_TUNING_MASK 0x7FUL
1162 #define _CMU_USHFRCOCTRL_TUNING_DEFAULT 0x00000040UL
1163 #define CMU_USHFRCOCTRL_TUNING_DEFAULT (_CMU_USHFRCOCTRL_TUNING_DEFAULT << 0)
1164 #define CMU_USHFRCOCTRL_DITHEN (0x1UL << 8)
1165 #define _CMU_USHFRCOCTRL_DITHEN_SHIFT 8
1166 #define _CMU_USHFRCOCTRL_DITHEN_MASK 0x100UL
1167 #define _CMU_USHFRCOCTRL_DITHEN_DEFAULT 0x00000000UL
1168 #define CMU_USHFRCOCTRL_DITHEN_DEFAULT (_CMU_USHFRCOCTRL_DITHEN_DEFAULT << 8)
1169 #define CMU_USHFRCOCTRL_SUSPEND (0x1UL << 9)
1170 #define _CMU_USHFRCOCTRL_SUSPEND_SHIFT 9
1171 #define _CMU_USHFRCOCTRL_SUSPEND_MASK 0x200UL
1172 #define _CMU_USHFRCOCTRL_SUSPEND_DEFAULT 0x00000000UL
1173 #define CMU_USHFRCOCTRL_SUSPEND_DEFAULT (_CMU_USHFRCOCTRL_SUSPEND_DEFAULT << 9)
1174 #define _CMU_USHFRCOCTRL_TIMEOUT_SHIFT 12
1175 #define _CMU_USHFRCOCTRL_TIMEOUT_MASK 0xFF000UL
1176 #define _CMU_USHFRCOCTRL_TIMEOUT_DEFAULT 0x000000FFUL
1177 #define CMU_USHFRCOCTRL_TIMEOUT_DEFAULT (_CMU_USHFRCOCTRL_TIMEOUT_DEFAULT << 12)
1179 /* Bit fields for CMU USHFRCOTUNE */
1180 #define _CMU_USHFRCOTUNE_RESETVALUE 0x00000020UL
1181 #define _CMU_USHFRCOTUNE_MASK 0x0000003FUL
1182 #define _CMU_USHFRCOTUNE_FINETUNING_SHIFT 0
1183 #define _CMU_USHFRCOTUNE_FINETUNING_MASK 0x3FUL
1184 #define _CMU_USHFRCOTUNE_FINETUNING_DEFAULT 0x00000020UL
1185 #define CMU_USHFRCOTUNE_FINETUNING_DEFAULT (_CMU_USHFRCOTUNE_FINETUNING_DEFAULT << 0)
1187 /* Bit fields for CMU USHFRCOCONF */
1188 #define _CMU_USHFRCOCONF_RESETVALUE 0x00000001UL
1189 #define _CMU_USHFRCOCONF_MASK 0x00000017UL
1190 #define _CMU_USHFRCOCONF_BAND_SHIFT 0
1191 #define _CMU_USHFRCOCONF_BAND_MASK 0x7UL
1192 #define _CMU_USHFRCOCONF_BAND_DEFAULT 0x00000001UL
1193 #define _CMU_USHFRCOCONF_BAND_48MHZ 0x00000001UL
1194 #define _CMU_USHFRCOCONF_BAND_24MHZ 0x00000003UL
1195 #define CMU_USHFRCOCONF_BAND_DEFAULT (_CMU_USHFRCOCONF_BAND_DEFAULT << 0)
1196 #define CMU_USHFRCOCONF_BAND_48MHZ (_CMU_USHFRCOCONF_BAND_48MHZ << 0)
1197 #define CMU_USHFRCOCONF_BAND_24MHZ (_CMU_USHFRCOCONF_BAND_24MHZ << 0)
1198 #define CMU_USHFRCOCONF_USHFRCODIV2DIS (0x1UL << 4)
1199 #define _CMU_USHFRCOCONF_USHFRCODIV2DIS_SHIFT 4
1200 #define _CMU_USHFRCOCONF_USHFRCODIV2DIS_MASK 0x10UL
1201 #define _CMU_USHFRCOCONF_USHFRCODIV2DIS_DEFAULT 0x00000000UL
1202 #define CMU_USHFRCOCONF_USHFRCODIV2DIS_DEFAULT (_CMU_USHFRCOCONF_USHFRCODIV2DIS_DEFAULT << 4)
__IOM uint32_t CALCTRL
Definition: efm32hg_cmu.h:49
__IM uint32_t IF
Definition: efm32hg_cmu.h:55
__IOM uint32_t IEN
Definition: efm32hg_cmu.h:58
__IOM uint32_t LFACLKEN0
Definition: efm32hg_cmu.h:64
__IOM uint32_t PCNTCTRL
Definition: efm32hg_cmu.h:72
__IOM uint32_t LFAPRESC0
Definition: efm32hg_cmu.h:68
__IOM uint32_t IFC
Definition: efm32hg_cmu.h:57
__IOM uint32_t HFCORECLKDIV
Definition: efm32hg_cmu.h:44
__IOM uint32_t USBCRCTRL
Definition: efm32hg_cmu.h:79
__IOM uint32_t CTRL
Definition: efm32hg_cmu.h:43
__IOM uint32_t HFCORECLKEN0
Definition: efm32hg_cmu.h:59
__IOM uint32_t LFBPRESC0
Definition: efm32hg_cmu.h:70
__IOM uint32_t LFCCLKEN0
Definition: efm32hg_cmu.h:67
__IOM uint32_t AUXHFRCOCTRL
Definition: efm32hg_cmu.h:48
__IOM uint32_t OSCENCMD
Definition: efm32hg_cmu.h:51
__IOM uint32_t USHFRCOCTRL
Definition: efm32hg_cmu.h:80
__IOM uint32_t FREEZE
Definition: efm32hg_cmu.h:63
__IM uint32_t STATUS
Definition: efm32hg_cmu.h:54
__IOM uint32_t ROUTE
Definition: efm32hg_cmu.h:75
__IOM uint32_t LFBCLKEN0
Definition: efm32hg_cmu.h:66
__IOM uint32_t HFPERCLKDIV
Definition: efm32hg_cmu.h:45
__IOM uint32_t USHFRCOCONF
Definition: efm32hg_cmu.h:82
__IOM uint32_t CALCNT
Definition: efm32hg_cmu.h:50
__IOM uint32_t HFPERCLKEN0
Definition: efm32hg_cmu.h:60
__IOM uint32_t USHFRCOTUNE
Definition: efm32hg_cmu.h:81
__IOM uint32_t IFS
Definition: efm32hg_cmu.h:56
__IOM uint32_t HFRCOCTRL
Definition: efm32hg_cmu.h:46
__IOM uint32_t CMD
Definition: efm32hg_cmu.h:52
__IM uint32_t SYNCBUSY
Definition: efm32hg_cmu.h:62
__IOM uint32_t LFCLKSEL
Definition: efm32hg_cmu.h:53
__IOM uint32_t LFRCOCTRL
Definition: efm32hg_cmu.h:47
__IOM uint32_t LOCK
Definition: efm32hg_cmu.h:76