EFR32 Blue Gecko 13 Software Documentation  efr32bg13-doc-5.1.2
efr32bg13p_msc.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t READCTRL;
45  __IOM uint32_t WRITECTRL;
46  __IOM uint32_t WRITECMD;
47  __IOM uint32_t ADDRB;
48  uint32_t RESERVED0[1];
49  __IOM uint32_t WDATA;
50  __IM uint32_t STATUS;
52  uint32_t RESERVED1[4];
53  __IM uint32_t IF;
54  __IOM uint32_t IFS;
55  __IOM uint32_t IFC;
56  __IOM uint32_t IEN;
57  __IOM uint32_t LOCK;
58  __IOM uint32_t CACHECMD;
59  __IM uint32_t CACHEHITS;
60  __IM uint32_t CACHEMISSES;
62  uint32_t RESERVED2[1];
63  __IOM uint32_t MASSLOCK;
65  uint32_t RESERVED3[1];
66  __IOM uint32_t STARTUP;
68  uint32_t RESERVED4[5];
69  __IOM uint32_t CMD;
71  uint32_t RESERVED5[6];
72  __IOM uint32_t BOOTLOADERCTRL;
73  __IOM uint32_t AAPUNLOCKCMD;
74  __IOM uint32_t CACHECONFIG0;
75 } MSC_TypeDef;
77 /**************************************************************************/
82 /* Bit fields for MSC CTRL */
83 #define _MSC_CTRL_RESETVALUE 0x00000001UL
84 #define _MSC_CTRL_MASK 0x0000001FUL
85 #define MSC_CTRL_ADDRFAULTEN (0x1UL << 0)
86 #define _MSC_CTRL_ADDRFAULTEN_SHIFT 0
87 #define _MSC_CTRL_ADDRFAULTEN_MASK 0x1UL
88 #define _MSC_CTRL_ADDRFAULTEN_DEFAULT 0x00000001UL
89 #define MSC_CTRL_ADDRFAULTEN_DEFAULT (_MSC_CTRL_ADDRFAULTEN_DEFAULT << 0)
90 #define MSC_CTRL_CLKDISFAULTEN (0x1UL << 1)
91 #define _MSC_CTRL_CLKDISFAULTEN_SHIFT 1
92 #define _MSC_CTRL_CLKDISFAULTEN_MASK 0x2UL
93 #define _MSC_CTRL_CLKDISFAULTEN_DEFAULT 0x00000000UL
94 #define MSC_CTRL_CLKDISFAULTEN_DEFAULT (_MSC_CTRL_CLKDISFAULTEN_DEFAULT << 1)
95 #define MSC_CTRL_PWRUPONDEMAND (0x1UL << 2)
96 #define _MSC_CTRL_PWRUPONDEMAND_SHIFT 2
97 #define _MSC_CTRL_PWRUPONDEMAND_MASK 0x4UL
98 #define _MSC_CTRL_PWRUPONDEMAND_DEFAULT 0x00000000UL
99 #define MSC_CTRL_PWRUPONDEMAND_DEFAULT (_MSC_CTRL_PWRUPONDEMAND_DEFAULT << 2)
100 #define MSC_CTRL_IFCREADCLEAR (0x1UL << 3)
101 #define _MSC_CTRL_IFCREADCLEAR_SHIFT 3
102 #define _MSC_CTRL_IFCREADCLEAR_MASK 0x8UL
103 #define _MSC_CTRL_IFCREADCLEAR_DEFAULT 0x00000000UL
104 #define MSC_CTRL_IFCREADCLEAR_DEFAULT (_MSC_CTRL_IFCREADCLEAR_DEFAULT << 3)
105 #define MSC_CTRL_TIMEOUTFAULTEN (0x1UL << 4)
106 #define _MSC_CTRL_TIMEOUTFAULTEN_SHIFT 4
107 #define _MSC_CTRL_TIMEOUTFAULTEN_MASK 0x10UL
108 #define _MSC_CTRL_TIMEOUTFAULTEN_DEFAULT 0x00000000UL
109 #define MSC_CTRL_TIMEOUTFAULTEN_DEFAULT (_MSC_CTRL_TIMEOUTFAULTEN_DEFAULT << 4)
111 /* Bit fields for MSC READCTRL */
112 #define _MSC_READCTRL_RESETVALUE 0x01000100UL
113 #define _MSC_READCTRL_MASK 0x13000338UL
114 #define MSC_READCTRL_IFCDIS (0x1UL << 3)
115 #define _MSC_READCTRL_IFCDIS_SHIFT 3
116 #define _MSC_READCTRL_IFCDIS_MASK 0x8UL
117 #define _MSC_READCTRL_IFCDIS_DEFAULT 0x00000000UL
118 #define MSC_READCTRL_IFCDIS_DEFAULT (_MSC_READCTRL_IFCDIS_DEFAULT << 3)
119 #define MSC_READCTRL_AIDIS (0x1UL << 4)
120 #define _MSC_READCTRL_AIDIS_SHIFT 4
121 #define _MSC_READCTRL_AIDIS_MASK 0x10UL
122 #define _MSC_READCTRL_AIDIS_DEFAULT 0x00000000UL
123 #define MSC_READCTRL_AIDIS_DEFAULT (_MSC_READCTRL_AIDIS_DEFAULT << 4)
124 #define MSC_READCTRL_ICCDIS (0x1UL << 5)
125 #define _MSC_READCTRL_ICCDIS_SHIFT 5
126 #define _MSC_READCTRL_ICCDIS_MASK 0x20UL
127 #define _MSC_READCTRL_ICCDIS_DEFAULT 0x00000000UL
128 #define MSC_READCTRL_ICCDIS_DEFAULT (_MSC_READCTRL_ICCDIS_DEFAULT << 5)
129 #define MSC_READCTRL_PREFETCH (0x1UL << 8)
130 #define _MSC_READCTRL_PREFETCH_SHIFT 8
131 #define _MSC_READCTRL_PREFETCH_MASK 0x100UL
132 #define _MSC_READCTRL_PREFETCH_DEFAULT 0x00000001UL
133 #define MSC_READCTRL_PREFETCH_DEFAULT (_MSC_READCTRL_PREFETCH_DEFAULT << 8)
134 #define MSC_READCTRL_USEHPROT (0x1UL << 9)
135 #define _MSC_READCTRL_USEHPROT_SHIFT 9
136 #define _MSC_READCTRL_USEHPROT_MASK 0x200UL
137 #define _MSC_READCTRL_USEHPROT_DEFAULT 0x00000000UL
138 #define MSC_READCTRL_USEHPROT_DEFAULT (_MSC_READCTRL_USEHPROT_DEFAULT << 9)
139 #define _MSC_READCTRL_MODE_SHIFT 24
140 #define _MSC_READCTRL_MODE_MASK 0x3000000UL
141 #define _MSC_READCTRL_MODE_WS0 0x00000000UL
142 #define _MSC_READCTRL_MODE_DEFAULT 0x00000001UL
143 #define _MSC_READCTRL_MODE_WS1 0x00000001UL
144 #define _MSC_READCTRL_MODE_WS2 0x00000002UL
145 #define _MSC_READCTRL_MODE_WS3 0x00000003UL
146 #define MSC_READCTRL_MODE_WS0 (_MSC_READCTRL_MODE_WS0 << 24)
147 #define MSC_READCTRL_MODE_DEFAULT (_MSC_READCTRL_MODE_DEFAULT << 24)
148 #define MSC_READCTRL_MODE_WS1 (_MSC_READCTRL_MODE_WS1 << 24)
149 #define MSC_READCTRL_MODE_WS2 (_MSC_READCTRL_MODE_WS2 << 24)
150 #define MSC_READCTRL_MODE_WS3 (_MSC_READCTRL_MODE_WS3 << 24)
151 #define MSC_READCTRL_SCBTP (0x1UL << 28)
152 #define _MSC_READCTRL_SCBTP_SHIFT 28
153 #define _MSC_READCTRL_SCBTP_MASK 0x10000000UL
154 #define _MSC_READCTRL_SCBTP_DEFAULT 0x00000000UL
155 #define MSC_READCTRL_SCBTP_DEFAULT (_MSC_READCTRL_SCBTP_DEFAULT << 28)
157 /* Bit fields for MSC WRITECTRL */
158 #define _MSC_WRITECTRL_RESETVALUE 0x00000000UL
159 #define _MSC_WRITECTRL_MASK 0x00000003UL
160 #define MSC_WRITECTRL_WREN (0x1UL << 0)
161 #define _MSC_WRITECTRL_WREN_SHIFT 0
162 #define _MSC_WRITECTRL_WREN_MASK 0x1UL
163 #define _MSC_WRITECTRL_WREN_DEFAULT 0x00000000UL
164 #define MSC_WRITECTRL_WREN_DEFAULT (_MSC_WRITECTRL_WREN_DEFAULT << 0)
165 #define MSC_WRITECTRL_IRQERASEABORT (0x1UL << 1)
166 #define _MSC_WRITECTRL_IRQERASEABORT_SHIFT 1
167 #define _MSC_WRITECTRL_IRQERASEABORT_MASK 0x2UL
168 #define _MSC_WRITECTRL_IRQERASEABORT_DEFAULT 0x00000000UL
169 #define MSC_WRITECTRL_IRQERASEABORT_DEFAULT (_MSC_WRITECTRL_IRQERASEABORT_DEFAULT << 1)
171 /* Bit fields for MSC WRITECMD */
172 #define _MSC_WRITECMD_RESETVALUE 0x00000000UL
173 #define _MSC_WRITECMD_MASK 0x0000113FUL
174 #define MSC_WRITECMD_LADDRIM (0x1UL << 0)
175 #define _MSC_WRITECMD_LADDRIM_SHIFT 0
176 #define _MSC_WRITECMD_LADDRIM_MASK 0x1UL
177 #define _MSC_WRITECMD_LADDRIM_DEFAULT 0x00000000UL
178 #define MSC_WRITECMD_LADDRIM_DEFAULT (_MSC_WRITECMD_LADDRIM_DEFAULT << 0)
179 #define MSC_WRITECMD_ERASEPAGE (0x1UL << 1)
180 #define _MSC_WRITECMD_ERASEPAGE_SHIFT 1
181 #define _MSC_WRITECMD_ERASEPAGE_MASK 0x2UL
182 #define _MSC_WRITECMD_ERASEPAGE_DEFAULT 0x00000000UL
183 #define MSC_WRITECMD_ERASEPAGE_DEFAULT (_MSC_WRITECMD_ERASEPAGE_DEFAULT << 1)
184 #define MSC_WRITECMD_WRITEEND (0x1UL << 2)
185 #define _MSC_WRITECMD_WRITEEND_SHIFT 2
186 #define _MSC_WRITECMD_WRITEEND_MASK 0x4UL
187 #define _MSC_WRITECMD_WRITEEND_DEFAULT 0x00000000UL
188 #define MSC_WRITECMD_WRITEEND_DEFAULT (_MSC_WRITECMD_WRITEEND_DEFAULT << 2)
189 #define MSC_WRITECMD_WRITEONCE (0x1UL << 3)
190 #define _MSC_WRITECMD_WRITEONCE_SHIFT 3
191 #define _MSC_WRITECMD_WRITEONCE_MASK 0x8UL
192 #define _MSC_WRITECMD_WRITEONCE_DEFAULT 0x00000000UL
193 #define MSC_WRITECMD_WRITEONCE_DEFAULT (_MSC_WRITECMD_WRITEONCE_DEFAULT << 3)
194 #define MSC_WRITECMD_WRITETRIG (0x1UL << 4)
195 #define _MSC_WRITECMD_WRITETRIG_SHIFT 4
196 #define _MSC_WRITECMD_WRITETRIG_MASK 0x10UL
197 #define _MSC_WRITECMD_WRITETRIG_DEFAULT 0x00000000UL
198 #define MSC_WRITECMD_WRITETRIG_DEFAULT (_MSC_WRITECMD_WRITETRIG_DEFAULT << 4)
199 #define MSC_WRITECMD_ERASEABORT (0x1UL << 5)
200 #define _MSC_WRITECMD_ERASEABORT_SHIFT 5
201 #define _MSC_WRITECMD_ERASEABORT_MASK 0x20UL
202 #define _MSC_WRITECMD_ERASEABORT_DEFAULT 0x00000000UL
203 #define MSC_WRITECMD_ERASEABORT_DEFAULT (_MSC_WRITECMD_ERASEABORT_DEFAULT << 5)
204 #define MSC_WRITECMD_ERASEMAIN0 (0x1UL << 8)
205 #define _MSC_WRITECMD_ERASEMAIN0_SHIFT 8
206 #define _MSC_WRITECMD_ERASEMAIN0_MASK 0x100UL
207 #define _MSC_WRITECMD_ERASEMAIN0_DEFAULT 0x00000000UL
208 #define MSC_WRITECMD_ERASEMAIN0_DEFAULT (_MSC_WRITECMD_ERASEMAIN0_DEFAULT << 8)
209 #define MSC_WRITECMD_CLEARWDATA (0x1UL << 12)
210 #define _MSC_WRITECMD_CLEARWDATA_SHIFT 12
211 #define _MSC_WRITECMD_CLEARWDATA_MASK 0x1000UL
212 #define _MSC_WRITECMD_CLEARWDATA_DEFAULT 0x00000000UL
213 #define MSC_WRITECMD_CLEARWDATA_DEFAULT (_MSC_WRITECMD_CLEARWDATA_DEFAULT << 12)
215 /* Bit fields for MSC ADDRB */
216 #define _MSC_ADDRB_RESETVALUE 0x00000000UL
217 #define _MSC_ADDRB_MASK 0xFFFFFFFFUL
218 #define _MSC_ADDRB_ADDRB_SHIFT 0
219 #define _MSC_ADDRB_ADDRB_MASK 0xFFFFFFFFUL
220 #define _MSC_ADDRB_ADDRB_DEFAULT 0x00000000UL
221 #define MSC_ADDRB_ADDRB_DEFAULT (_MSC_ADDRB_ADDRB_DEFAULT << 0)
223 /* Bit fields for MSC WDATA */
224 #define _MSC_WDATA_RESETVALUE 0x00000000UL
225 #define _MSC_WDATA_MASK 0xFFFFFFFFUL
226 #define _MSC_WDATA_WDATA_SHIFT 0
227 #define _MSC_WDATA_WDATA_MASK 0xFFFFFFFFUL
228 #define _MSC_WDATA_WDATA_DEFAULT 0x00000000UL
229 #define MSC_WDATA_WDATA_DEFAULT (_MSC_WDATA_WDATA_DEFAULT << 0)
231 /* Bit fields for MSC STATUS */
232 #define _MSC_STATUS_RESETVALUE 0x00000008UL
233 #define _MSC_STATUS_MASK 0xFF00007FUL
234 #define MSC_STATUS_BUSY (0x1UL << 0)
235 #define _MSC_STATUS_BUSY_SHIFT 0
236 #define _MSC_STATUS_BUSY_MASK 0x1UL
237 #define _MSC_STATUS_BUSY_DEFAULT 0x00000000UL
238 #define MSC_STATUS_BUSY_DEFAULT (_MSC_STATUS_BUSY_DEFAULT << 0)
239 #define MSC_STATUS_LOCKED (0x1UL << 1)
240 #define _MSC_STATUS_LOCKED_SHIFT 1
241 #define _MSC_STATUS_LOCKED_MASK 0x2UL
242 #define _MSC_STATUS_LOCKED_DEFAULT 0x00000000UL
243 #define MSC_STATUS_LOCKED_DEFAULT (_MSC_STATUS_LOCKED_DEFAULT << 1)
244 #define MSC_STATUS_INVADDR (0x1UL << 2)
245 #define _MSC_STATUS_INVADDR_SHIFT 2
246 #define _MSC_STATUS_INVADDR_MASK 0x4UL
247 #define _MSC_STATUS_INVADDR_DEFAULT 0x00000000UL
248 #define MSC_STATUS_INVADDR_DEFAULT (_MSC_STATUS_INVADDR_DEFAULT << 2)
249 #define MSC_STATUS_WDATAREADY (0x1UL << 3)
250 #define _MSC_STATUS_WDATAREADY_SHIFT 3
251 #define _MSC_STATUS_WDATAREADY_MASK 0x8UL
252 #define _MSC_STATUS_WDATAREADY_DEFAULT 0x00000001UL
253 #define MSC_STATUS_WDATAREADY_DEFAULT (_MSC_STATUS_WDATAREADY_DEFAULT << 3)
254 #define MSC_STATUS_WORDTIMEOUT (0x1UL << 4)
255 #define _MSC_STATUS_WORDTIMEOUT_SHIFT 4
256 #define _MSC_STATUS_WORDTIMEOUT_MASK 0x10UL
257 #define _MSC_STATUS_WORDTIMEOUT_DEFAULT 0x00000000UL
258 #define MSC_STATUS_WORDTIMEOUT_DEFAULT (_MSC_STATUS_WORDTIMEOUT_DEFAULT << 4)
259 #define MSC_STATUS_ERASEABORTED (0x1UL << 5)
260 #define _MSC_STATUS_ERASEABORTED_SHIFT 5
261 #define _MSC_STATUS_ERASEABORTED_MASK 0x20UL
262 #define _MSC_STATUS_ERASEABORTED_DEFAULT 0x00000000UL
263 #define MSC_STATUS_ERASEABORTED_DEFAULT (_MSC_STATUS_ERASEABORTED_DEFAULT << 5)
264 #define MSC_STATUS_PCRUNNING (0x1UL << 6)
265 #define _MSC_STATUS_PCRUNNING_SHIFT 6
266 #define _MSC_STATUS_PCRUNNING_MASK 0x40UL
267 #define _MSC_STATUS_PCRUNNING_DEFAULT 0x00000000UL
268 #define MSC_STATUS_PCRUNNING_DEFAULT (_MSC_STATUS_PCRUNNING_DEFAULT << 6)
269 #define _MSC_STATUS_WDATAVALID_SHIFT 24
270 #define _MSC_STATUS_WDATAVALID_MASK 0xF000000UL
271 #define _MSC_STATUS_WDATAVALID_DEFAULT 0x00000000UL
272 #define MSC_STATUS_WDATAVALID_DEFAULT (_MSC_STATUS_WDATAVALID_DEFAULT << 24)
273 #define _MSC_STATUS_PWRUPCKBDFAILCOUNT_SHIFT 28
274 #define _MSC_STATUS_PWRUPCKBDFAILCOUNT_MASK 0xF0000000UL
275 #define _MSC_STATUS_PWRUPCKBDFAILCOUNT_DEFAULT 0x00000000UL
276 #define MSC_STATUS_PWRUPCKBDFAILCOUNT_DEFAULT (_MSC_STATUS_PWRUPCKBDFAILCOUNT_DEFAULT << 28)
278 /* Bit fields for MSC IF */
279 #define _MSC_IF_RESETVALUE 0x00000000UL
280 #define _MSC_IF_MASK 0x0000017FUL
281 #define MSC_IF_ERASE (0x1UL << 0)
282 #define _MSC_IF_ERASE_SHIFT 0
283 #define _MSC_IF_ERASE_MASK 0x1UL
284 #define _MSC_IF_ERASE_DEFAULT 0x00000000UL
285 #define MSC_IF_ERASE_DEFAULT (_MSC_IF_ERASE_DEFAULT << 0)
286 #define MSC_IF_WRITE (0x1UL << 1)
287 #define _MSC_IF_WRITE_SHIFT 1
288 #define _MSC_IF_WRITE_MASK 0x2UL
289 #define _MSC_IF_WRITE_DEFAULT 0x00000000UL
290 #define MSC_IF_WRITE_DEFAULT (_MSC_IF_WRITE_DEFAULT << 1)
291 #define MSC_IF_CHOF (0x1UL << 2)
292 #define _MSC_IF_CHOF_SHIFT 2
293 #define _MSC_IF_CHOF_MASK 0x4UL
294 #define _MSC_IF_CHOF_DEFAULT 0x00000000UL
295 #define MSC_IF_CHOF_DEFAULT (_MSC_IF_CHOF_DEFAULT << 2)
296 #define MSC_IF_CMOF (0x1UL << 3)
297 #define _MSC_IF_CMOF_SHIFT 3
298 #define _MSC_IF_CMOF_MASK 0x8UL
299 #define _MSC_IF_CMOF_DEFAULT 0x00000000UL
300 #define MSC_IF_CMOF_DEFAULT (_MSC_IF_CMOF_DEFAULT << 3)
301 #define MSC_IF_PWRUPF (0x1UL << 4)
302 #define _MSC_IF_PWRUPF_SHIFT 4
303 #define _MSC_IF_PWRUPF_MASK 0x10UL
304 #define _MSC_IF_PWRUPF_DEFAULT 0x00000000UL
305 #define MSC_IF_PWRUPF_DEFAULT (_MSC_IF_PWRUPF_DEFAULT << 4)
306 #define MSC_IF_ICACHERR (0x1UL << 5)
307 #define _MSC_IF_ICACHERR_SHIFT 5
308 #define _MSC_IF_ICACHERR_MASK 0x20UL
309 #define _MSC_IF_ICACHERR_DEFAULT 0x00000000UL
310 #define MSC_IF_ICACHERR_DEFAULT (_MSC_IF_ICACHERR_DEFAULT << 5)
311 #define MSC_IF_WDATAOV (0x1UL << 6)
312 #define _MSC_IF_WDATAOV_SHIFT 6
313 #define _MSC_IF_WDATAOV_MASK 0x40UL
314 #define _MSC_IF_WDATAOV_DEFAULT 0x00000000UL
315 #define MSC_IF_WDATAOV_DEFAULT (_MSC_IF_WDATAOV_DEFAULT << 6)
316 #define MSC_IF_LVEWRITE (0x1UL << 8)
317 #define _MSC_IF_LVEWRITE_SHIFT 8
318 #define _MSC_IF_LVEWRITE_MASK 0x100UL
319 #define _MSC_IF_LVEWRITE_DEFAULT 0x00000000UL
320 #define MSC_IF_LVEWRITE_DEFAULT (_MSC_IF_LVEWRITE_DEFAULT << 8)
322 /* Bit fields for MSC IFS */
323 #define _MSC_IFS_RESETVALUE 0x00000000UL
324 #define _MSC_IFS_MASK 0x0000017FUL
325 #define MSC_IFS_ERASE (0x1UL << 0)
326 #define _MSC_IFS_ERASE_SHIFT 0
327 #define _MSC_IFS_ERASE_MASK 0x1UL
328 #define _MSC_IFS_ERASE_DEFAULT 0x00000000UL
329 #define MSC_IFS_ERASE_DEFAULT (_MSC_IFS_ERASE_DEFAULT << 0)
330 #define MSC_IFS_WRITE (0x1UL << 1)
331 #define _MSC_IFS_WRITE_SHIFT 1
332 #define _MSC_IFS_WRITE_MASK 0x2UL
333 #define _MSC_IFS_WRITE_DEFAULT 0x00000000UL
334 #define MSC_IFS_WRITE_DEFAULT (_MSC_IFS_WRITE_DEFAULT << 1)
335 #define MSC_IFS_CHOF (0x1UL << 2)
336 #define _MSC_IFS_CHOF_SHIFT 2
337 #define _MSC_IFS_CHOF_MASK 0x4UL
338 #define _MSC_IFS_CHOF_DEFAULT 0x00000000UL
339 #define MSC_IFS_CHOF_DEFAULT (_MSC_IFS_CHOF_DEFAULT << 2)
340 #define MSC_IFS_CMOF (0x1UL << 3)
341 #define _MSC_IFS_CMOF_SHIFT 3
342 #define _MSC_IFS_CMOF_MASK 0x8UL
343 #define _MSC_IFS_CMOF_DEFAULT 0x00000000UL
344 #define MSC_IFS_CMOF_DEFAULT (_MSC_IFS_CMOF_DEFAULT << 3)
345 #define MSC_IFS_PWRUPF (0x1UL << 4)
346 #define _MSC_IFS_PWRUPF_SHIFT 4
347 #define _MSC_IFS_PWRUPF_MASK 0x10UL
348 #define _MSC_IFS_PWRUPF_DEFAULT 0x00000000UL
349 #define MSC_IFS_PWRUPF_DEFAULT (_MSC_IFS_PWRUPF_DEFAULT << 4)
350 #define MSC_IFS_ICACHERR (0x1UL << 5)
351 #define _MSC_IFS_ICACHERR_SHIFT 5
352 #define _MSC_IFS_ICACHERR_MASK 0x20UL
353 #define _MSC_IFS_ICACHERR_DEFAULT 0x00000000UL
354 #define MSC_IFS_ICACHERR_DEFAULT (_MSC_IFS_ICACHERR_DEFAULT << 5)
355 #define MSC_IFS_WDATAOV (0x1UL << 6)
356 #define _MSC_IFS_WDATAOV_SHIFT 6
357 #define _MSC_IFS_WDATAOV_MASK 0x40UL
358 #define _MSC_IFS_WDATAOV_DEFAULT 0x00000000UL
359 #define MSC_IFS_WDATAOV_DEFAULT (_MSC_IFS_WDATAOV_DEFAULT << 6)
360 #define MSC_IFS_LVEWRITE (0x1UL << 8)
361 #define _MSC_IFS_LVEWRITE_SHIFT 8
362 #define _MSC_IFS_LVEWRITE_MASK 0x100UL
363 #define _MSC_IFS_LVEWRITE_DEFAULT 0x00000000UL
364 #define MSC_IFS_LVEWRITE_DEFAULT (_MSC_IFS_LVEWRITE_DEFAULT << 8)
366 /* Bit fields for MSC IFC */
367 #define _MSC_IFC_RESETVALUE 0x00000000UL
368 #define _MSC_IFC_MASK 0x0000017FUL
369 #define MSC_IFC_ERASE (0x1UL << 0)
370 #define _MSC_IFC_ERASE_SHIFT 0
371 #define _MSC_IFC_ERASE_MASK 0x1UL
372 #define _MSC_IFC_ERASE_DEFAULT 0x00000000UL
373 #define MSC_IFC_ERASE_DEFAULT (_MSC_IFC_ERASE_DEFAULT << 0)
374 #define MSC_IFC_WRITE (0x1UL << 1)
375 #define _MSC_IFC_WRITE_SHIFT 1
376 #define _MSC_IFC_WRITE_MASK 0x2UL
377 #define _MSC_IFC_WRITE_DEFAULT 0x00000000UL
378 #define MSC_IFC_WRITE_DEFAULT (_MSC_IFC_WRITE_DEFAULT << 1)
379 #define MSC_IFC_CHOF (0x1UL << 2)
380 #define _MSC_IFC_CHOF_SHIFT 2
381 #define _MSC_IFC_CHOF_MASK 0x4UL
382 #define _MSC_IFC_CHOF_DEFAULT 0x00000000UL
383 #define MSC_IFC_CHOF_DEFAULT (_MSC_IFC_CHOF_DEFAULT << 2)
384 #define MSC_IFC_CMOF (0x1UL << 3)
385 #define _MSC_IFC_CMOF_SHIFT 3
386 #define _MSC_IFC_CMOF_MASK 0x8UL
387 #define _MSC_IFC_CMOF_DEFAULT 0x00000000UL
388 #define MSC_IFC_CMOF_DEFAULT (_MSC_IFC_CMOF_DEFAULT << 3)
389 #define MSC_IFC_PWRUPF (0x1UL << 4)
390 #define _MSC_IFC_PWRUPF_SHIFT 4
391 #define _MSC_IFC_PWRUPF_MASK 0x10UL
392 #define _MSC_IFC_PWRUPF_DEFAULT 0x00000000UL
393 #define MSC_IFC_PWRUPF_DEFAULT (_MSC_IFC_PWRUPF_DEFAULT << 4)
394 #define MSC_IFC_ICACHERR (0x1UL << 5)
395 #define _MSC_IFC_ICACHERR_SHIFT 5
396 #define _MSC_IFC_ICACHERR_MASK 0x20UL
397 #define _MSC_IFC_ICACHERR_DEFAULT 0x00000000UL
398 #define MSC_IFC_ICACHERR_DEFAULT (_MSC_IFC_ICACHERR_DEFAULT << 5)
399 #define MSC_IFC_WDATAOV (0x1UL << 6)
400 #define _MSC_IFC_WDATAOV_SHIFT 6
401 #define _MSC_IFC_WDATAOV_MASK 0x40UL
402 #define _MSC_IFC_WDATAOV_DEFAULT 0x00000000UL
403 #define MSC_IFC_WDATAOV_DEFAULT (_MSC_IFC_WDATAOV_DEFAULT << 6)
404 #define MSC_IFC_LVEWRITE (0x1UL << 8)
405 #define _MSC_IFC_LVEWRITE_SHIFT 8
406 #define _MSC_IFC_LVEWRITE_MASK 0x100UL
407 #define _MSC_IFC_LVEWRITE_DEFAULT 0x00000000UL
408 #define MSC_IFC_LVEWRITE_DEFAULT (_MSC_IFC_LVEWRITE_DEFAULT << 8)
410 /* Bit fields for MSC IEN */
411 #define _MSC_IEN_RESETVALUE 0x00000000UL
412 #define _MSC_IEN_MASK 0x0000017FUL
413 #define MSC_IEN_ERASE (0x1UL << 0)
414 #define _MSC_IEN_ERASE_SHIFT 0
415 #define _MSC_IEN_ERASE_MASK 0x1UL
416 #define _MSC_IEN_ERASE_DEFAULT 0x00000000UL
417 #define MSC_IEN_ERASE_DEFAULT (_MSC_IEN_ERASE_DEFAULT << 0)
418 #define MSC_IEN_WRITE (0x1UL << 1)
419 #define _MSC_IEN_WRITE_SHIFT 1
420 #define _MSC_IEN_WRITE_MASK 0x2UL
421 #define _MSC_IEN_WRITE_DEFAULT 0x00000000UL
422 #define MSC_IEN_WRITE_DEFAULT (_MSC_IEN_WRITE_DEFAULT << 1)
423 #define MSC_IEN_CHOF (0x1UL << 2)
424 #define _MSC_IEN_CHOF_SHIFT 2
425 #define _MSC_IEN_CHOF_MASK 0x4UL
426 #define _MSC_IEN_CHOF_DEFAULT 0x00000000UL
427 #define MSC_IEN_CHOF_DEFAULT (_MSC_IEN_CHOF_DEFAULT << 2)
428 #define MSC_IEN_CMOF (0x1UL << 3)
429 #define _MSC_IEN_CMOF_SHIFT 3
430 #define _MSC_IEN_CMOF_MASK 0x8UL
431 #define _MSC_IEN_CMOF_DEFAULT 0x00000000UL
432 #define MSC_IEN_CMOF_DEFAULT (_MSC_IEN_CMOF_DEFAULT << 3)
433 #define MSC_IEN_PWRUPF (0x1UL << 4)
434 #define _MSC_IEN_PWRUPF_SHIFT 4
435 #define _MSC_IEN_PWRUPF_MASK 0x10UL
436 #define _MSC_IEN_PWRUPF_DEFAULT 0x00000000UL
437 #define MSC_IEN_PWRUPF_DEFAULT (_MSC_IEN_PWRUPF_DEFAULT << 4)
438 #define MSC_IEN_ICACHERR (0x1UL << 5)
439 #define _MSC_IEN_ICACHERR_SHIFT 5
440 #define _MSC_IEN_ICACHERR_MASK 0x20UL
441 #define _MSC_IEN_ICACHERR_DEFAULT 0x00000000UL
442 #define MSC_IEN_ICACHERR_DEFAULT (_MSC_IEN_ICACHERR_DEFAULT << 5)
443 #define MSC_IEN_WDATAOV (0x1UL << 6)
444 #define _MSC_IEN_WDATAOV_SHIFT 6
445 #define _MSC_IEN_WDATAOV_MASK 0x40UL
446 #define _MSC_IEN_WDATAOV_DEFAULT 0x00000000UL
447 #define MSC_IEN_WDATAOV_DEFAULT (_MSC_IEN_WDATAOV_DEFAULT << 6)
448 #define MSC_IEN_LVEWRITE (0x1UL << 8)
449 #define _MSC_IEN_LVEWRITE_SHIFT 8
450 #define _MSC_IEN_LVEWRITE_MASK 0x100UL
451 #define _MSC_IEN_LVEWRITE_DEFAULT 0x00000000UL
452 #define MSC_IEN_LVEWRITE_DEFAULT (_MSC_IEN_LVEWRITE_DEFAULT << 8)
454 /* Bit fields for MSC LOCK */
455 #define _MSC_LOCK_RESETVALUE 0x00000000UL
456 #define _MSC_LOCK_MASK 0x0000FFFFUL
457 #define _MSC_LOCK_LOCKKEY_SHIFT 0
458 #define _MSC_LOCK_LOCKKEY_MASK 0xFFFFUL
459 #define _MSC_LOCK_LOCKKEY_DEFAULT 0x00000000UL
460 #define _MSC_LOCK_LOCKKEY_LOCK 0x00000000UL
461 #define _MSC_LOCK_LOCKKEY_UNLOCKED 0x00000000UL
462 #define _MSC_LOCK_LOCKKEY_LOCKED 0x00000001UL
463 #define _MSC_LOCK_LOCKKEY_UNLOCK 0x00001B71UL
464 #define MSC_LOCK_LOCKKEY_DEFAULT (_MSC_LOCK_LOCKKEY_DEFAULT << 0)
465 #define MSC_LOCK_LOCKKEY_LOCK (_MSC_LOCK_LOCKKEY_LOCK << 0)
466 #define MSC_LOCK_LOCKKEY_UNLOCKED (_MSC_LOCK_LOCKKEY_UNLOCKED << 0)
467 #define MSC_LOCK_LOCKKEY_LOCKED (_MSC_LOCK_LOCKKEY_LOCKED << 0)
468 #define MSC_LOCK_LOCKKEY_UNLOCK (_MSC_LOCK_LOCKKEY_UNLOCK << 0)
470 /* Bit fields for MSC CACHECMD */
471 #define _MSC_CACHECMD_RESETVALUE 0x00000000UL
472 #define _MSC_CACHECMD_MASK 0x00000007UL
473 #define MSC_CACHECMD_INVCACHE (0x1UL << 0)
474 #define _MSC_CACHECMD_INVCACHE_SHIFT 0
475 #define _MSC_CACHECMD_INVCACHE_MASK 0x1UL
476 #define _MSC_CACHECMD_INVCACHE_DEFAULT 0x00000000UL
477 #define MSC_CACHECMD_INVCACHE_DEFAULT (_MSC_CACHECMD_INVCACHE_DEFAULT << 0)
478 #define MSC_CACHECMD_STARTPC (0x1UL << 1)
479 #define _MSC_CACHECMD_STARTPC_SHIFT 1
480 #define _MSC_CACHECMD_STARTPC_MASK 0x2UL
481 #define _MSC_CACHECMD_STARTPC_DEFAULT 0x00000000UL
482 #define MSC_CACHECMD_STARTPC_DEFAULT (_MSC_CACHECMD_STARTPC_DEFAULT << 1)
483 #define MSC_CACHECMD_STOPPC (0x1UL << 2)
484 #define _MSC_CACHECMD_STOPPC_SHIFT 2
485 #define _MSC_CACHECMD_STOPPC_MASK 0x4UL
486 #define _MSC_CACHECMD_STOPPC_DEFAULT 0x00000000UL
487 #define MSC_CACHECMD_STOPPC_DEFAULT (_MSC_CACHECMD_STOPPC_DEFAULT << 2)
489 /* Bit fields for MSC CACHEHITS */
490 #define _MSC_CACHEHITS_RESETVALUE 0x00000000UL
491 #define _MSC_CACHEHITS_MASK 0x000FFFFFUL
492 #define _MSC_CACHEHITS_CACHEHITS_SHIFT 0
493 #define _MSC_CACHEHITS_CACHEHITS_MASK 0xFFFFFUL
494 #define _MSC_CACHEHITS_CACHEHITS_DEFAULT 0x00000000UL
495 #define MSC_CACHEHITS_CACHEHITS_DEFAULT (_MSC_CACHEHITS_CACHEHITS_DEFAULT << 0)
497 /* Bit fields for MSC CACHEMISSES */
498 #define _MSC_CACHEMISSES_RESETVALUE 0x00000000UL
499 #define _MSC_CACHEMISSES_MASK 0x000FFFFFUL
500 #define _MSC_CACHEMISSES_CACHEMISSES_SHIFT 0
501 #define _MSC_CACHEMISSES_CACHEMISSES_MASK 0xFFFFFUL
502 #define _MSC_CACHEMISSES_CACHEMISSES_DEFAULT 0x00000000UL
503 #define MSC_CACHEMISSES_CACHEMISSES_DEFAULT (_MSC_CACHEMISSES_CACHEMISSES_DEFAULT << 0)
505 /* Bit fields for MSC MASSLOCK */
506 #define _MSC_MASSLOCK_RESETVALUE 0x00000001UL
507 #define _MSC_MASSLOCK_MASK 0x0000FFFFUL
508 #define _MSC_MASSLOCK_LOCKKEY_SHIFT 0
509 #define _MSC_MASSLOCK_LOCKKEY_MASK 0xFFFFUL
510 #define _MSC_MASSLOCK_LOCKKEY_LOCK 0x00000000UL
511 #define _MSC_MASSLOCK_LOCKKEY_UNLOCKED 0x00000000UL
512 #define _MSC_MASSLOCK_LOCKKEY_DEFAULT 0x00000001UL
513 #define _MSC_MASSLOCK_LOCKKEY_LOCKED 0x00000001UL
514 #define _MSC_MASSLOCK_LOCKKEY_UNLOCK 0x0000631AUL
515 #define MSC_MASSLOCK_LOCKKEY_LOCK (_MSC_MASSLOCK_LOCKKEY_LOCK << 0)
516 #define MSC_MASSLOCK_LOCKKEY_UNLOCKED (_MSC_MASSLOCK_LOCKKEY_UNLOCKED << 0)
517 #define MSC_MASSLOCK_LOCKKEY_DEFAULT (_MSC_MASSLOCK_LOCKKEY_DEFAULT << 0)
518 #define MSC_MASSLOCK_LOCKKEY_LOCKED (_MSC_MASSLOCK_LOCKKEY_LOCKED << 0)
519 #define MSC_MASSLOCK_LOCKKEY_UNLOCK (_MSC_MASSLOCK_LOCKKEY_UNLOCK << 0)
521 /* Bit fields for MSC STARTUP */
522 #define _MSC_STARTUP_RESETVALUE 0x1300104DUL
523 #define _MSC_STARTUP_MASK 0x773FF3FFUL
524 #define _MSC_STARTUP_STDLY0_SHIFT 0
525 #define _MSC_STARTUP_STDLY0_MASK 0x3FFUL
526 #define _MSC_STARTUP_STDLY0_DEFAULT 0x0000004DUL
527 #define MSC_STARTUP_STDLY0_DEFAULT (_MSC_STARTUP_STDLY0_DEFAULT << 0)
528 #define _MSC_STARTUP_STDLY1_SHIFT 12
529 #define _MSC_STARTUP_STDLY1_MASK 0x3FF000UL
530 #define _MSC_STARTUP_STDLY1_DEFAULT 0x00000001UL
531 #define MSC_STARTUP_STDLY1_DEFAULT (_MSC_STARTUP_STDLY1_DEFAULT << 12)
532 #define MSC_STARTUP_ASTWAIT (0x1UL << 24)
533 #define _MSC_STARTUP_ASTWAIT_SHIFT 24
534 #define _MSC_STARTUP_ASTWAIT_MASK 0x1000000UL
535 #define _MSC_STARTUP_ASTWAIT_DEFAULT 0x00000001UL
536 #define MSC_STARTUP_ASTWAIT_DEFAULT (_MSC_STARTUP_ASTWAIT_DEFAULT << 24)
537 #define MSC_STARTUP_STWSEN (0x1UL << 25)
538 #define _MSC_STARTUP_STWSEN_SHIFT 25
539 #define _MSC_STARTUP_STWSEN_MASK 0x2000000UL
540 #define _MSC_STARTUP_STWSEN_DEFAULT 0x00000001UL
541 #define MSC_STARTUP_STWSEN_DEFAULT (_MSC_STARTUP_STWSEN_DEFAULT << 25)
542 #define MSC_STARTUP_STWSAEN (0x1UL << 26)
543 #define _MSC_STARTUP_STWSAEN_SHIFT 26
544 #define _MSC_STARTUP_STWSAEN_MASK 0x4000000UL
545 #define _MSC_STARTUP_STWSAEN_DEFAULT 0x00000000UL
546 #define MSC_STARTUP_STWSAEN_DEFAULT (_MSC_STARTUP_STWSAEN_DEFAULT << 26)
547 #define _MSC_STARTUP_STWS_SHIFT 28
548 #define _MSC_STARTUP_STWS_MASK 0x70000000UL
549 #define _MSC_STARTUP_STWS_DEFAULT 0x00000001UL
550 #define MSC_STARTUP_STWS_DEFAULT (_MSC_STARTUP_STWS_DEFAULT << 28)
552 /* Bit fields for MSC CMD */
553 #define _MSC_CMD_RESETVALUE 0x00000000UL
554 #define _MSC_CMD_MASK 0x00000001UL
555 #define MSC_CMD_PWRUP (0x1UL << 0)
556 #define _MSC_CMD_PWRUP_SHIFT 0
557 #define _MSC_CMD_PWRUP_MASK 0x1UL
558 #define _MSC_CMD_PWRUP_DEFAULT 0x00000000UL
559 #define MSC_CMD_PWRUP_DEFAULT (_MSC_CMD_PWRUP_DEFAULT << 0)
561 /* Bit fields for MSC BOOTLOADERCTRL */
562 #define _MSC_BOOTLOADERCTRL_RESETVALUE 0x00000000UL
563 #define _MSC_BOOTLOADERCTRL_MASK 0x00000003UL
564 #define MSC_BOOTLOADERCTRL_BLRDIS (0x1UL << 0)
565 #define _MSC_BOOTLOADERCTRL_BLRDIS_SHIFT 0
566 #define _MSC_BOOTLOADERCTRL_BLRDIS_MASK 0x1UL
567 #define _MSC_BOOTLOADERCTRL_BLRDIS_DEFAULT 0x00000000UL
568 #define MSC_BOOTLOADERCTRL_BLRDIS_DEFAULT (_MSC_BOOTLOADERCTRL_BLRDIS_DEFAULT << 0)
569 #define MSC_BOOTLOADERCTRL_BLWDIS (0x1UL << 1)
570 #define _MSC_BOOTLOADERCTRL_BLWDIS_SHIFT 1
571 #define _MSC_BOOTLOADERCTRL_BLWDIS_MASK 0x2UL
572 #define _MSC_BOOTLOADERCTRL_BLWDIS_DEFAULT 0x00000000UL
573 #define MSC_BOOTLOADERCTRL_BLWDIS_DEFAULT (_MSC_BOOTLOADERCTRL_BLWDIS_DEFAULT << 1)
575 /* Bit fields for MSC AAPUNLOCKCMD */
576 #define _MSC_AAPUNLOCKCMD_RESETVALUE 0x00000000UL
577 #define _MSC_AAPUNLOCKCMD_MASK 0x00000001UL
578 #define MSC_AAPUNLOCKCMD_UNLOCKAAP (0x1UL << 0)
579 #define _MSC_AAPUNLOCKCMD_UNLOCKAAP_SHIFT 0
580 #define _MSC_AAPUNLOCKCMD_UNLOCKAAP_MASK 0x1UL
581 #define _MSC_AAPUNLOCKCMD_UNLOCKAAP_DEFAULT 0x00000000UL
582 #define MSC_AAPUNLOCKCMD_UNLOCKAAP_DEFAULT (_MSC_AAPUNLOCKCMD_UNLOCKAAP_DEFAULT << 0)
584 /* Bit fields for MSC CACHECONFIG0 */
585 #define _MSC_CACHECONFIG0_RESETVALUE 0x00000003UL
586 #define _MSC_CACHECONFIG0_MASK 0x00000003UL
587 #define _MSC_CACHECONFIG0_CACHELPLEVEL_SHIFT 0
588 #define _MSC_CACHECONFIG0_CACHELPLEVEL_MASK 0x3UL
589 #define _MSC_CACHECONFIG0_CACHELPLEVEL_BASE 0x00000000UL
590 #define _MSC_CACHECONFIG0_CACHELPLEVEL_ADVANCED 0x00000001UL
591 #define _MSC_CACHECONFIG0_CACHELPLEVEL_DEFAULT 0x00000003UL
592 #define _MSC_CACHECONFIG0_CACHELPLEVEL_MINACTIVITY 0x00000003UL
593 #define MSC_CACHECONFIG0_CACHELPLEVEL_BASE (_MSC_CACHECONFIG0_CACHELPLEVEL_BASE << 0)
594 #define MSC_CACHECONFIG0_CACHELPLEVEL_ADVANCED (_MSC_CACHECONFIG0_CACHELPLEVEL_ADVANCED << 0)
595 #define MSC_CACHECONFIG0_CACHELPLEVEL_DEFAULT (_MSC_CACHECONFIG0_CACHELPLEVEL_DEFAULT << 0)
596 #define MSC_CACHECONFIG0_CACHELPLEVEL_MINACTIVITY (_MSC_CACHECONFIG0_CACHELPLEVEL_MINACTIVITY << 0)
__IOM uint32_t MASSLOCK
__IOM uint32_t AAPUNLOCKCMD
__IM uint32_t CACHEHITS
__IOM uint32_t BOOTLOADERCTRL
__IOM uint32_t LOCK
__IOM uint32_t CACHECONFIG0
__IOM uint32_t IEN
__IM uint32_t STATUS
__IOM uint32_t WDATA
__IOM uint32_t READCTRL
__IOM uint32_t IFC
__IOM uint32_t STARTUP
__IOM uint32_t ADDRB
__IM uint32_t CACHEMISSES
__IOM uint32_t IFS
__IOM uint32_t WRITECTRL
__IOM uint32_t CACHECMD
__IOM uint32_t CMD
__IOM uint32_t CTRL
__IM uint32_t IF
__IOM uint32_t WRITECMD