EFM32 Giant Gecko Software Documentation  efm32gg-doc-5.1.2
efm32gg_etm.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t ETMCR;
44  __IM uint32_t ETMCCR;
45  __IOM uint32_t ETMTRIGGER;
46  uint32_t RESERVED0[1];
47  __IOM uint32_t ETMSR;
48  __IM uint32_t ETMSCR;
49  uint32_t RESERVED1[2];
50  __IOM uint32_t ETMTEEVR;
51  __IOM uint32_t ETMTECR1;
52  uint32_t RESERVED2[1];
53  __IOM uint32_t ETMFFLR;
54  uint32_t RESERVED3[68];
55  __IOM uint32_t ETMCNTRLDVR1;
56  uint32_t RESERVED4[39];
57  __IOM uint32_t ETMSYNCFR;
58  __IM uint32_t ETMIDR;
59  __IM uint32_t ETMCCER;
60  uint32_t RESERVED5[1];
61  __IOM uint32_t ETMTESSEICR;
62  uint32_t RESERVED6[1];
63  __IOM uint32_t ETMTSEVR;
64  uint32_t RESERVED7[1];
65  __IOM uint32_t ETMTRACEIDR;
66  uint32_t RESERVED8[1];
67  __IM uint32_t ETMIDR2;
68  uint32_t RESERVED9[66];
69  __IM uint32_t ETMPDSR;
70  uint32_t RESERVED10[754];
71  __IOM uint32_t ETMISCIN;
72  uint32_t RESERVED11[1];
73  __OM uint32_t ITTRIGOUT;
74  uint32_t RESERVED12[1];
75  __IM uint32_t ETMITATBCTR2;
76  uint32_t RESERVED13[1];
77  __OM uint32_t ETMITATBCTR0;
78  uint32_t RESERVED14[1];
79  __IOM uint32_t ETMITCTRL;
80  uint32_t RESERVED15[39];
81  __IOM uint32_t ETMCLAIMSET;
82  __IOM uint32_t ETMCLAIMCLR;
83  uint32_t RESERVED16[2];
84  __IOM uint32_t ETMLAR;
85  __IM uint32_t ETMLSR;
86  __IM uint32_t ETMAUTHSTATUS;
87  uint32_t RESERVED17[4];
88  __IM uint32_t ETMDEVTYPE;
89  __IM uint32_t ETMPIDR4;
90  __OM uint32_t ETMPIDR5;
91  __OM uint32_t ETMPIDR6;
92  __OM uint32_t ETMPIDR7;
93  __IM uint32_t ETMPIDR0;
94  __IM uint32_t ETMPIDR1;
95  __IM uint32_t ETMPIDR2;
96  __IM uint32_t ETMPIDR3;
97  __IM uint32_t ETMCIDR0;
98  __IM uint32_t ETMCIDR1;
99  __IM uint32_t ETMCIDR2;
100  __IM uint32_t ETMCIDR3;
101 } ETM_TypeDef;
103 /**************************************************************************/
108 /* Bit fields for ETM ETMCR */
109 #define _ETM_ETMCR_RESETVALUE 0x00000411UL
110 #define _ETM_ETMCR_MASK 0x10632FF1UL
111 #define ETM_ETMCR_POWERDWN (0x1UL << 0)
112 #define _ETM_ETMCR_POWERDWN_SHIFT 0
113 #define _ETM_ETMCR_POWERDWN_MASK 0x1UL
114 #define _ETM_ETMCR_POWERDWN_DEFAULT 0x00000001UL
115 #define ETM_ETMCR_POWERDWN_DEFAULT (_ETM_ETMCR_POWERDWN_DEFAULT << 0)
116 #define _ETM_ETMCR_PORTSIZE_SHIFT 4
117 #define _ETM_ETMCR_PORTSIZE_MASK 0x70UL
118 #define _ETM_ETMCR_PORTSIZE_DEFAULT 0x00000001UL
119 #define ETM_ETMCR_PORTSIZE_DEFAULT (_ETM_ETMCR_PORTSIZE_DEFAULT << 4)
120 #define ETM_ETMCR_STALL (0x1UL << 7)
121 #define _ETM_ETMCR_STALL_SHIFT 7
122 #define _ETM_ETMCR_STALL_MASK 0x80UL
123 #define _ETM_ETMCR_STALL_DEFAULT 0x00000000UL
124 #define ETM_ETMCR_STALL_DEFAULT (_ETM_ETMCR_STALL_DEFAULT << 7)
125 #define ETM_ETMCR_BRANCHOUTPUT (0x1UL << 8)
126 #define _ETM_ETMCR_BRANCHOUTPUT_SHIFT 8
127 #define _ETM_ETMCR_BRANCHOUTPUT_MASK 0x100UL
128 #define _ETM_ETMCR_BRANCHOUTPUT_DEFAULT 0x00000000UL
129 #define ETM_ETMCR_BRANCHOUTPUT_DEFAULT (_ETM_ETMCR_BRANCHOUTPUT_DEFAULT << 8)
130 #define ETM_ETMCR_DBGREQCTRL (0x1UL << 9)
131 #define _ETM_ETMCR_DBGREQCTRL_SHIFT 9
132 #define _ETM_ETMCR_DBGREQCTRL_MASK 0x200UL
133 #define _ETM_ETMCR_DBGREQCTRL_DEFAULT 0x00000000UL
134 #define ETM_ETMCR_DBGREQCTRL_DEFAULT (_ETM_ETMCR_DBGREQCTRL_DEFAULT << 9)
135 #define ETM_ETMCR_ETMPROG (0x1UL << 10)
136 #define _ETM_ETMCR_ETMPROG_SHIFT 10
137 #define _ETM_ETMCR_ETMPROG_MASK 0x400UL
138 #define _ETM_ETMCR_ETMPROG_DEFAULT 0x00000001UL
139 #define ETM_ETMCR_ETMPROG_DEFAULT (_ETM_ETMCR_ETMPROG_DEFAULT << 10)
140 #define ETM_ETMCR_ETMPORTSEL (0x1UL << 11)
141 #define _ETM_ETMCR_ETMPORTSEL_SHIFT 11
142 #define _ETM_ETMCR_ETMPORTSEL_MASK 0x800UL
143 #define _ETM_ETMCR_ETMPORTSEL_DEFAULT 0x00000000UL
144 #define _ETM_ETMCR_ETMPORTSEL_ETMLOW 0x00000000UL
145 #define _ETM_ETMCR_ETMPORTSEL_ETMHIGH 0x00000001UL
146 #define ETM_ETMCR_ETMPORTSEL_DEFAULT (_ETM_ETMCR_ETMPORTSEL_DEFAULT << 11)
147 #define ETM_ETMCR_ETMPORTSEL_ETMLOW (_ETM_ETMCR_ETMPORTSEL_ETMLOW << 11)
148 #define ETM_ETMCR_ETMPORTSEL_ETMHIGH (_ETM_ETMCR_ETMPORTSEL_ETMHIGH << 11)
149 #define ETM_ETMCR_PORTMODE2 (0x1UL << 13)
150 #define _ETM_ETMCR_PORTMODE2_SHIFT 13
151 #define _ETM_ETMCR_PORTMODE2_MASK 0x2000UL
152 #define _ETM_ETMCR_PORTMODE2_DEFAULT 0x00000000UL
153 #define ETM_ETMCR_PORTMODE2_DEFAULT (_ETM_ETMCR_PORTMODE2_DEFAULT << 13)
154 #define _ETM_ETMCR_PORTMODE_SHIFT 16
155 #define _ETM_ETMCR_PORTMODE_MASK 0x30000UL
156 #define _ETM_ETMCR_PORTMODE_DEFAULT 0x00000000UL
157 #define ETM_ETMCR_PORTMODE_DEFAULT (_ETM_ETMCR_PORTMODE_DEFAULT << 16)
158 #define _ETM_ETMCR_EPORTSIZE_SHIFT 21
159 #define _ETM_ETMCR_EPORTSIZE_MASK 0x600000UL
160 #define _ETM_ETMCR_EPORTSIZE_DEFAULT 0x00000000UL
161 #define ETM_ETMCR_EPORTSIZE_DEFAULT (_ETM_ETMCR_EPORTSIZE_DEFAULT << 21)
162 #define ETM_ETMCR_TSTAMPEN (0x1UL << 28)
163 #define _ETM_ETMCR_TSTAMPEN_SHIFT 28
164 #define _ETM_ETMCR_TSTAMPEN_MASK 0x10000000UL
165 #define _ETM_ETMCR_TSTAMPEN_DEFAULT 0x00000000UL
166 #define ETM_ETMCR_TSTAMPEN_DEFAULT (_ETM_ETMCR_TSTAMPEN_DEFAULT << 28)
168 /* Bit fields for ETM ETMCCR */
169 #define _ETM_ETMCCR_RESETVALUE 0x8C802000UL
170 #define _ETM_ETMCCR_MASK 0x8FFFFFFFUL
171 #define _ETM_ETMCCR_ADRCMPPAIR_SHIFT 0
172 #define _ETM_ETMCCR_ADRCMPPAIR_MASK 0xFUL
173 #define _ETM_ETMCCR_ADRCMPPAIR_DEFAULT 0x00000000UL
174 #define ETM_ETMCCR_ADRCMPPAIR_DEFAULT (_ETM_ETMCCR_ADRCMPPAIR_DEFAULT << 0)
175 #define _ETM_ETMCCR_DATACMPNUM_SHIFT 4
176 #define _ETM_ETMCCR_DATACMPNUM_MASK 0xF0UL
177 #define _ETM_ETMCCR_DATACMPNUM_DEFAULT 0x00000000UL
178 #define ETM_ETMCCR_DATACMPNUM_DEFAULT (_ETM_ETMCCR_DATACMPNUM_DEFAULT << 4)
179 #define _ETM_ETMCCR_MMDECCNT_SHIFT 8
180 #define _ETM_ETMCCR_MMDECCNT_MASK 0x1F00UL
181 #define _ETM_ETMCCR_MMDECCNT_DEFAULT 0x00000000UL
182 #define ETM_ETMCCR_MMDECCNT_DEFAULT (_ETM_ETMCCR_MMDECCNT_DEFAULT << 8)
183 #define _ETM_ETMCCR_COUNTNUM_SHIFT 13
184 #define _ETM_ETMCCR_COUNTNUM_MASK 0xE000UL
185 #define _ETM_ETMCCR_COUNTNUM_DEFAULT 0x00000001UL
186 #define ETM_ETMCCR_COUNTNUM_DEFAULT (_ETM_ETMCCR_COUNTNUM_DEFAULT << 13)
187 #define ETM_ETMCCR_SEQPRES (0x1UL << 16)
188 #define _ETM_ETMCCR_SEQPRES_SHIFT 16
189 #define _ETM_ETMCCR_SEQPRES_MASK 0x10000UL
190 #define _ETM_ETMCCR_SEQPRES_DEFAULT 0x00000000UL
191 #define ETM_ETMCCR_SEQPRES_DEFAULT (_ETM_ETMCCR_SEQPRES_DEFAULT << 16)
192 #define _ETM_ETMCCR_EXTINPNUM_SHIFT 17
193 #define _ETM_ETMCCR_EXTINPNUM_MASK 0xE0000UL
194 #define _ETM_ETMCCR_EXTINPNUM_DEFAULT 0x00000000UL
195 #define _ETM_ETMCCR_EXTINPNUM_ZERO 0x00000000UL
196 #define _ETM_ETMCCR_EXTINPNUM_ONE 0x00000001UL
197 #define _ETM_ETMCCR_EXTINPNUM_TWO 0x00000002UL
198 #define ETM_ETMCCR_EXTINPNUM_DEFAULT (_ETM_ETMCCR_EXTINPNUM_DEFAULT << 17)
199 #define ETM_ETMCCR_EXTINPNUM_ZERO (_ETM_ETMCCR_EXTINPNUM_ZERO << 17)
200 #define ETM_ETMCCR_EXTINPNUM_ONE (_ETM_ETMCCR_EXTINPNUM_ONE << 17)
201 #define ETM_ETMCCR_EXTINPNUM_TWO (_ETM_ETMCCR_EXTINPNUM_TWO << 17)
202 #define _ETM_ETMCCR_EXTOUTNUM_SHIFT 20
203 #define _ETM_ETMCCR_EXTOUTNUM_MASK 0x700000UL
204 #define _ETM_ETMCCR_EXTOUTNUM_DEFAULT 0x00000000UL
205 #define ETM_ETMCCR_EXTOUTNUM_DEFAULT (_ETM_ETMCCR_EXTOUTNUM_DEFAULT << 20)
206 #define ETM_ETMCCR_FIFOFULLPRES (0x1UL << 23)
207 #define _ETM_ETMCCR_FIFOFULLPRES_SHIFT 23
208 #define _ETM_ETMCCR_FIFOFULLPRES_MASK 0x800000UL
209 #define _ETM_ETMCCR_FIFOFULLPRES_DEFAULT 0x00000001UL
210 #define ETM_ETMCCR_FIFOFULLPRES_DEFAULT (_ETM_ETMCCR_FIFOFULLPRES_DEFAULT << 23)
211 #define _ETM_ETMCCR_IDCOMPNUM_SHIFT 24
212 #define _ETM_ETMCCR_IDCOMPNUM_MASK 0x3000000UL
213 #define _ETM_ETMCCR_IDCOMPNUM_DEFAULT 0x00000000UL
214 #define ETM_ETMCCR_IDCOMPNUM_DEFAULT (_ETM_ETMCCR_IDCOMPNUM_DEFAULT << 24)
215 #define ETM_ETMCCR_TRACESS (0x1UL << 26)
216 #define _ETM_ETMCCR_TRACESS_SHIFT 26
217 #define _ETM_ETMCCR_TRACESS_MASK 0x4000000UL
218 #define _ETM_ETMCCR_TRACESS_DEFAULT 0x00000001UL
219 #define ETM_ETMCCR_TRACESS_DEFAULT (_ETM_ETMCCR_TRACESS_DEFAULT << 26)
220 #define ETM_ETMCCR_MMACCESS (0x1UL << 27)
221 #define _ETM_ETMCCR_MMACCESS_SHIFT 27
222 #define _ETM_ETMCCR_MMACCESS_MASK 0x8000000UL
223 #define _ETM_ETMCCR_MMACCESS_DEFAULT 0x00000001UL
224 #define ETM_ETMCCR_MMACCESS_DEFAULT (_ETM_ETMCCR_MMACCESS_DEFAULT << 27)
225 #define ETM_ETMCCR_ETMID (0x1UL << 31)
226 #define _ETM_ETMCCR_ETMID_SHIFT 31
227 #define _ETM_ETMCCR_ETMID_MASK 0x80000000UL
228 #define _ETM_ETMCCR_ETMID_DEFAULT 0x00000001UL
229 #define ETM_ETMCCR_ETMID_DEFAULT (_ETM_ETMCCR_ETMID_DEFAULT << 31)
231 /* Bit fields for ETM ETMTRIGGER */
232 #define _ETM_ETMTRIGGER_RESETVALUE 0x00000000UL
233 #define _ETM_ETMTRIGGER_MASK 0x0001FFFFUL
234 #define _ETM_ETMTRIGGER_RESA_SHIFT 0
235 #define _ETM_ETMTRIGGER_RESA_MASK 0x7FUL
236 #define _ETM_ETMTRIGGER_RESA_DEFAULT 0x00000000UL
237 #define ETM_ETMTRIGGER_RESA_DEFAULT (_ETM_ETMTRIGGER_RESA_DEFAULT << 0)
238 #define _ETM_ETMTRIGGER_RESB_SHIFT 7
239 #define _ETM_ETMTRIGGER_RESB_MASK 0x3F80UL
240 #define _ETM_ETMTRIGGER_RESB_DEFAULT 0x00000000UL
241 #define ETM_ETMTRIGGER_RESB_DEFAULT (_ETM_ETMTRIGGER_RESB_DEFAULT << 7)
242 #define _ETM_ETMTRIGGER_ETMFCN_SHIFT 14
243 #define _ETM_ETMTRIGGER_ETMFCN_MASK 0x1C000UL
244 #define _ETM_ETMTRIGGER_ETMFCN_DEFAULT 0x00000000UL
245 #define ETM_ETMTRIGGER_ETMFCN_DEFAULT (_ETM_ETMTRIGGER_ETMFCN_DEFAULT << 14)
247 /* Bit fields for ETM ETMSR */
248 #define _ETM_ETMSR_RESETVALUE 0x00000002UL
249 #define _ETM_ETMSR_MASK 0x0000000FUL
250 #define ETM_ETMSR_ETHOF (0x1UL << 0)
251 #define _ETM_ETMSR_ETHOF_SHIFT 0
252 #define _ETM_ETMSR_ETHOF_MASK 0x1UL
253 #define _ETM_ETMSR_ETHOF_DEFAULT 0x00000000UL
254 #define ETM_ETMSR_ETHOF_DEFAULT (_ETM_ETMSR_ETHOF_DEFAULT << 0)
255 #define ETM_ETMSR_ETMPROGBIT (0x1UL << 1)
256 #define _ETM_ETMSR_ETMPROGBIT_SHIFT 1
257 #define _ETM_ETMSR_ETMPROGBIT_MASK 0x2UL
258 #define _ETM_ETMSR_ETMPROGBIT_DEFAULT 0x00000001UL
259 #define ETM_ETMSR_ETMPROGBIT_DEFAULT (_ETM_ETMSR_ETMPROGBIT_DEFAULT << 1)
260 #define ETM_ETMSR_TRACESTAT (0x1UL << 2)
261 #define _ETM_ETMSR_TRACESTAT_SHIFT 2
262 #define _ETM_ETMSR_TRACESTAT_MASK 0x4UL
263 #define _ETM_ETMSR_TRACESTAT_DEFAULT 0x00000000UL
264 #define ETM_ETMSR_TRACESTAT_DEFAULT (_ETM_ETMSR_TRACESTAT_DEFAULT << 2)
265 #define ETM_ETMSR_TRIGBIT (0x1UL << 3)
266 #define _ETM_ETMSR_TRIGBIT_SHIFT 3
267 #define _ETM_ETMSR_TRIGBIT_MASK 0x8UL
268 #define _ETM_ETMSR_TRIGBIT_DEFAULT 0x00000000UL
269 #define ETM_ETMSR_TRIGBIT_DEFAULT (_ETM_ETMSR_TRIGBIT_DEFAULT << 3)
271 /* Bit fields for ETM ETMSCR */
272 #define _ETM_ETMSCR_RESETVALUE 0x00020D09UL
273 #define _ETM_ETMSCR_MASK 0x00027F0FUL
274 #define _ETM_ETMSCR_MAXPORTSIZE_SHIFT 0
275 #define _ETM_ETMSCR_MAXPORTSIZE_MASK 0x7UL
276 #define _ETM_ETMSCR_MAXPORTSIZE_DEFAULT 0x00000001UL
277 #define ETM_ETMSCR_MAXPORTSIZE_DEFAULT (_ETM_ETMSCR_MAXPORTSIZE_DEFAULT << 0)
278 #define ETM_ETMSCR_Reserved (0x1UL << 3)
279 #define _ETM_ETMSCR_Reserved_SHIFT 3
280 #define _ETM_ETMSCR_Reserved_MASK 0x8UL
281 #define _ETM_ETMSCR_Reserved_DEFAULT 0x00000001UL
282 #define ETM_ETMSCR_Reserved_DEFAULT (_ETM_ETMSCR_Reserved_DEFAULT << 3)
283 #define ETM_ETMSCR_FIFOFULL (0x1UL << 8)
284 #define _ETM_ETMSCR_FIFOFULL_SHIFT 8
285 #define _ETM_ETMSCR_FIFOFULL_MASK 0x100UL
286 #define _ETM_ETMSCR_FIFOFULL_DEFAULT 0x00000001UL
287 #define ETM_ETMSCR_FIFOFULL_DEFAULT (_ETM_ETMSCR_FIFOFULL_DEFAULT << 8)
288 #define ETM_ETMSCR_MAXPORTSIZE3 (0x1UL << 9)
289 #define _ETM_ETMSCR_MAXPORTSIZE3_SHIFT 9
290 #define _ETM_ETMSCR_MAXPORTSIZE3_MASK 0x200UL
291 #define _ETM_ETMSCR_MAXPORTSIZE3_DEFAULT 0x00000000UL
292 #define ETM_ETMSCR_MAXPORTSIZE3_DEFAULT (_ETM_ETMSCR_MAXPORTSIZE3_DEFAULT << 9)
293 #define ETM_ETMSCR_PORTSIZE (0x1UL << 10)
294 #define _ETM_ETMSCR_PORTSIZE_SHIFT 10
295 #define _ETM_ETMSCR_PORTSIZE_MASK 0x400UL
296 #define _ETM_ETMSCR_PORTSIZE_DEFAULT 0x00000001UL
297 #define ETM_ETMSCR_PORTSIZE_DEFAULT (_ETM_ETMSCR_PORTSIZE_DEFAULT << 10)
298 #define ETM_ETMSCR_PORTMODE (0x1UL << 11)
299 #define _ETM_ETMSCR_PORTMODE_SHIFT 11
300 #define _ETM_ETMSCR_PORTMODE_MASK 0x800UL
301 #define _ETM_ETMSCR_PORTMODE_DEFAULT 0x00000001UL
302 #define ETM_ETMSCR_PORTMODE_DEFAULT (_ETM_ETMSCR_PORTMODE_DEFAULT << 11)
303 #define _ETM_ETMSCR_PROCNUM_SHIFT 12
304 #define _ETM_ETMSCR_PROCNUM_MASK 0x7000UL
305 #define _ETM_ETMSCR_PROCNUM_DEFAULT 0x00000000UL
306 #define ETM_ETMSCR_PROCNUM_DEFAULT (_ETM_ETMSCR_PROCNUM_DEFAULT << 12)
307 #define ETM_ETMSCR_NOFETCHCOMP (0x1UL << 17)
308 #define _ETM_ETMSCR_NOFETCHCOMP_SHIFT 17
309 #define _ETM_ETMSCR_NOFETCHCOMP_MASK 0x20000UL
310 #define _ETM_ETMSCR_NOFETCHCOMP_DEFAULT 0x00000001UL
311 #define ETM_ETMSCR_NOFETCHCOMP_DEFAULT (_ETM_ETMSCR_NOFETCHCOMP_DEFAULT << 17)
313 /* Bit fields for ETM ETMTEEVR */
314 #define _ETM_ETMTEEVR_RESETVALUE 0x00000000UL
315 #define _ETM_ETMTEEVR_MASK 0x0001FFFFUL
316 #define _ETM_ETMTEEVR_RESA_SHIFT 0
317 #define _ETM_ETMTEEVR_RESA_MASK 0x7FUL
318 #define _ETM_ETMTEEVR_RESA_DEFAULT 0x00000000UL
319 #define ETM_ETMTEEVR_RESA_DEFAULT (_ETM_ETMTEEVR_RESA_DEFAULT << 0)
320 #define _ETM_ETMTEEVR_RESB_SHIFT 7
321 #define _ETM_ETMTEEVR_RESB_MASK 0x3F80UL
322 #define _ETM_ETMTEEVR_RESB_DEFAULT 0x00000000UL
323 #define ETM_ETMTEEVR_RESB_DEFAULT (_ETM_ETMTEEVR_RESB_DEFAULT << 7)
324 #define _ETM_ETMTEEVR_ETMFCNEN_SHIFT 14
325 #define _ETM_ETMTEEVR_ETMFCNEN_MASK 0x1C000UL
326 #define _ETM_ETMTEEVR_ETMFCNEN_DEFAULT 0x00000000UL
327 #define ETM_ETMTEEVR_ETMFCNEN_DEFAULT (_ETM_ETMTEEVR_ETMFCNEN_DEFAULT << 14)
329 /* Bit fields for ETM ETMTECR1 */
330 #define _ETM_ETMTECR1_RESETVALUE 0x00000000UL
331 #define _ETM_ETMTECR1_MASK 0x03FFFFFFUL
332 #define _ETM_ETMTECR1_ADRCMP_SHIFT 0
333 #define _ETM_ETMTECR1_ADRCMP_MASK 0xFFUL
334 #define _ETM_ETMTECR1_ADRCMP_DEFAULT 0x00000000UL
335 #define ETM_ETMTECR1_ADRCMP_DEFAULT (_ETM_ETMTECR1_ADRCMP_DEFAULT << 0)
336 #define _ETM_ETMTECR1_MEMMAP_SHIFT 8
337 #define _ETM_ETMTECR1_MEMMAP_MASK 0xFFFF00UL
338 #define _ETM_ETMTECR1_MEMMAP_DEFAULT 0x00000000UL
339 #define ETM_ETMTECR1_MEMMAP_DEFAULT (_ETM_ETMTECR1_MEMMAP_DEFAULT << 8)
340 #define ETM_ETMTECR1_INCEXCTL (0x1UL << 24)
341 #define _ETM_ETMTECR1_INCEXCTL_SHIFT 24
342 #define _ETM_ETMTECR1_INCEXCTL_MASK 0x1000000UL
343 #define _ETM_ETMTECR1_INCEXCTL_DEFAULT 0x00000000UL
344 #define _ETM_ETMTECR1_INCEXCTL_INC 0x00000000UL
345 #define _ETM_ETMTECR1_INCEXCTL_EXC 0x00000001UL
346 #define ETM_ETMTECR1_INCEXCTL_DEFAULT (_ETM_ETMTECR1_INCEXCTL_DEFAULT << 24)
347 #define ETM_ETMTECR1_INCEXCTL_INC (_ETM_ETMTECR1_INCEXCTL_INC << 24)
348 #define ETM_ETMTECR1_INCEXCTL_EXC (_ETM_ETMTECR1_INCEXCTL_EXC << 24)
349 #define ETM_ETMTECR1_TCE (0x1UL << 25)
350 #define _ETM_ETMTECR1_TCE_SHIFT 25
351 #define _ETM_ETMTECR1_TCE_MASK 0x2000000UL
352 #define _ETM_ETMTECR1_TCE_DEFAULT 0x00000000UL
353 #define _ETM_ETMTECR1_TCE_EN 0x00000000UL
354 #define _ETM_ETMTECR1_TCE_DIS 0x00000001UL
355 #define ETM_ETMTECR1_TCE_DEFAULT (_ETM_ETMTECR1_TCE_DEFAULT << 25)
356 #define ETM_ETMTECR1_TCE_EN (_ETM_ETMTECR1_TCE_EN << 25)
357 #define ETM_ETMTECR1_TCE_DIS (_ETM_ETMTECR1_TCE_DIS << 25)
359 /* Bit fields for ETM ETMFFLR */
360 #define _ETM_ETMFFLR_RESETVALUE 0x00000000UL
361 #define _ETM_ETMFFLR_MASK 0x000000FFUL
362 #define _ETM_ETMFFLR_BYTENUM_SHIFT 0
363 #define _ETM_ETMFFLR_BYTENUM_MASK 0xFFUL
364 #define _ETM_ETMFFLR_BYTENUM_DEFAULT 0x00000000UL
365 #define ETM_ETMFFLR_BYTENUM_DEFAULT (_ETM_ETMFFLR_BYTENUM_DEFAULT << 0)
367 /* Bit fields for ETM ETMCNTRLDVR1 */
368 #define _ETM_ETMCNTRLDVR1_RESETVALUE 0x00000000UL
369 #define _ETM_ETMCNTRLDVR1_MASK 0x0000FFFFUL
370 #define _ETM_ETMCNTRLDVR1_COUNT_SHIFT 0
371 #define _ETM_ETMCNTRLDVR1_COUNT_MASK 0xFFFFUL
372 #define _ETM_ETMCNTRLDVR1_COUNT_DEFAULT 0x00000000UL
373 #define ETM_ETMCNTRLDVR1_COUNT_DEFAULT (_ETM_ETMCNTRLDVR1_COUNT_DEFAULT << 0)
375 /* Bit fields for ETM ETMSYNCFR */
376 #define _ETM_ETMSYNCFR_RESETVALUE 0x00000400UL
377 #define _ETM_ETMSYNCFR_MASK 0x00000FFFUL
378 #define _ETM_ETMSYNCFR_FREQ_SHIFT 0
379 #define _ETM_ETMSYNCFR_FREQ_MASK 0xFFFUL
380 #define _ETM_ETMSYNCFR_FREQ_DEFAULT 0x00000400UL
381 #define ETM_ETMSYNCFR_FREQ_DEFAULT (_ETM_ETMSYNCFR_FREQ_DEFAULT << 0)
383 /* Bit fields for ETM ETMIDR */
384 #define _ETM_ETMIDR_RESETVALUE 0x4114F253UL
385 #define _ETM_ETMIDR_MASK 0xFF1DFFFFUL
386 #define _ETM_ETMIDR_IMPVER_SHIFT 0
387 #define _ETM_ETMIDR_IMPVER_MASK 0xFUL
388 #define _ETM_ETMIDR_IMPVER_DEFAULT 0x00000003UL
389 #define ETM_ETMIDR_IMPVER_DEFAULT (_ETM_ETMIDR_IMPVER_DEFAULT << 0)
390 #define _ETM_ETMIDR_ETMMINVER_SHIFT 4
391 #define _ETM_ETMIDR_ETMMINVER_MASK 0xF0UL
392 #define _ETM_ETMIDR_ETMMINVER_DEFAULT 0x00000005UL
393 #define ETM_ETMIDR_ETMMINVER_DEFAULT (_ETM_ETMIDR_ETMMINVER_DEFAULT << 4)
394 #define _ETM_ETMIDR_ETMMAJVER_SHIFT 8
395 #define _ETM_ETMIDR_ETMMAJVER_MASK 0xF00UL
396 #define _ETM_ETMIDR_ETMMAJVER_DEFAULT 0x00000002UL
397 #define ETM_ETMIDR_ETMMAJVER_DEFAULT (_ETM_ETMIDR_ETMMAJVER_DEFAULT << 8)
398 #define _ETM_ETMIDR_PROCFAM_SHIFT 12
399 #define _ETM_ETMIDR_PROCFAM_MASK 0xF000UL
400 #define _ETM_ETMIDR_PROCFAM_DEFAULT 0x0000000FUL
401 #define ETM_ETMIDR_PROCFAM_DEFAULT (_ETM_ETMIDR_PROCFAM_DEFAULT << 12)
402 #define ETM_ETMIDR_LPCF (0x1UL << 16)
403 #define _ETM_ETMIDR_LPCF_SHIFT 16
404 #define _ETM_ETMIDR_LPCF_MASK 0x10000UL
405 #define _ETM_ETMIDR_LPCF_DEFAULT 0x00000000UL
406 #define ETM_ETMIDR_LPCF_DEFAULT (_ETM_ETMIDR_LPCF_DEFAULT << 16)
407 #define ETM_ETMIDR_THUMBT (0x1UL << 18)
408 #define _ETM_ETMIDR_THUMBT_SHIFT 18
409 #define _ETM_ETMIDR_THUMBT_MASK 0x40000UL
410 #define _ETM_ETMIDR_THUMBT_DEFAULT 0x00000001UL
411 #define ETM_ETMIDR_THUMBT_DEFAULT (_ETM_ETMIDR_THUMBT_DEFAULT << 18)
412 #define ETM_ETMIDR_SECEXT (0x1UL << 19)
413 #define _ETM_ETMIDR_SECEXT_SHIFT 19
414 #define _ETM_ETMIDR_SECEXT_MASK 0x80000UL
415 #define _ETM_ETMIDR_SECEXT_DEFAULT 0x00000000UL
416 #define ETM_ETMIDR_SECEXT_DEFAULT (_ETM_ETMIDR_SECEXT_DEFAULT << 19)
417 #define ETM_ETMIDR_BPE (0x1UL << 20)
418 #define _ETM_ETMIDR_BPE_SHIFT 20
419 #define _ETM_ETMIDR_BPE_MASK 0x100000UL
420 #define _ETM_ETMIDR_BPE_DEFAULT 0x00000001UL
421 #define ETM_ETMIDR_BPE_DEFAULT (_ETM_ETMIDR_BPE_DEFAULT << 20)
422 #define _ETM_ETMIDR_IMPCODE_SHIFT 24
423 #define _ETM_ETMIDR_IMPCODE_MASK 0xFF000000UL
424 #define _ETM_ETMIDR_IMPCODE_DEFAULT 0x00000041UL
425 #define ETM_ETMIDR_IMPCODE_DEFAULT (_ETM_ETMIDR_IMPCODE_DEFAULT << 24)
427 /* Bit fields for ETM ETMCCER */
428 #define _ETM_ETMCCER_RESETVALUE 0x18541800UL
429 #define _ETM_ETMCCER_MASK 0x387FFFFBUL
430 #define _ETM_ETMCCER_EXTINPSEL_SHIFT 0
431 #define _ETM_ETMCCER_EXTINPSEL_MASK 0x3UL
432 #define _ETM_ETMCCER_EXTINPSEL_DEFAULT 0x00000000UL
433 #define ETM_ETMCCER_EXTINPSEL_DEFAULT (_ETM_ETMCCER_EXTINPSEL_DEFAULT << 0)
434 #define _ETM_ETMCCER_EXTINPBUS_SHIFT 3
435 #define _ETM_ETMCCER_EXTINPBUS_MASK 0x7F8UL
436 #define _ETM_ETMCCER_EXTINPBUS_DEFAULT 0x00000000UL
437 #define ETM_ETMCCER_EXTINPBUS_DEFAULT (_ETM_ETMCCER_EXTINPBUS_DEFAULT << 3)
438 #define ETM_ETMCCER_READREGS (0x1UL << 11)
439 #define _ETM_ETMCCER_READREGS_SHIFT 11
440 #define _ETM_ETMCCER_READREGS_MASK 0x800UL
441 #define _ETM_ETMCCER_READREGS_DEFAULT 0x00000001UL
442 #define ETM_ETMCCER_READREGS_DEFAULT (_ETM_ETMCCER_READREGS_DEFAULT << 11)
443 #define ETM_ETMCCER_DADDRCMP (0x1UL << 12)
444 #define _ETM_ETMCCER_DADDRCMP_SHIFT 12
445 #define _ETM_ETMCCER_DADDRCMP_MASK 0x1000UL
446 #define _ETM_ETMCCER_DADDRCMP_DEFAULT 0x00000001UL
447 #define ETM_ETMCCER_DADDRCMP_DEFAULT (_ETM_ETMCCER_DADDRCMP_DEFAULT << 12)
448 #define _ETM_ETMCCER_INSTRES_SHIFT 13
449 #define _ETM_ETMCCER_INSTRES_MASK 0xE000UL
450 #define _ETM_ETMCCER_INSTRES_DEFAULT 0x00000000UL
451 #define ETM_ETMCCER_INSTRES_DEFAULT (_ETM_ETMCCER_INSTRES_DEFAULT << 13)
452 #define _ETM_ETMCCER_EICEWPNT_SHIFT 16
453 #define _ETM_ETMCCER_EICEWPNT_MASK 0xF0000UL
454 #define _ETM_ETMCCER_EICEWPNT_DEFAULT 0x00000004UL
455 #define ETM_ETMCCER_EICEWPNT_DEFAULT (_ETM_ETMCCER_EICEWPNT_DEFAULT << 16)
456 #define ETM_ETMCCER_TEICEWPNT (0x1UL << 20)
457 #define _ETM_ETMCCER_TEICEWPNT_SHIFT 20
458 #define _ETM_ETMCCER_TEICEWPNT_MASK 0x100000UL
459 #define _ETM_ETMCCER_TEICEWPNT_DEFAULT 0x00000001UL
460 #define ETM_ETMCCER_TEICEWPNT_DEFAULT (_ETM_ETMCCER_TEICEWPNT_DEFAULT << 20)
461 #define ETM_ETMCCER_EICEIMP (0x1UL << 21)
462 #define _ETM_ETMCCER_EICEIMP_SHIFT 21
463 #define _ETM_ETMCCER_EICEIMP_MASK 0x200000UL
464 #define _ETM_ETMCCER_EICEIMP_DEFAULT 0x00000000UL
465 #define ETM_ETMCCER_EICEIMP_DEFAULT (_ETM_ETMCCER_EICEIMP_DEFAULT << 21)
466 #define ETM_ETMCCER_TIMP (0x1UL << 22)
467 #define _ETM_ETMCCER_TIMP_SHIFT 22
468 #define _ETM_ETMCCER_TIMP_MASK 0x400000UL
469 #define _ETM_ETMCCER_TIMP_DEFAULT 0x00000001UL
470 #define ETM_ETMCCER_TIMP_DEFAULT (_ETM_ETMCCER_TIMP_DEFAULT << 22)
471 #define ETM_ETMCCER_RFCNT (0x1UL << 27)
472 #define _ETM_ETMCCER_RFCNT_SHIFT 27
473 #define _ETM_ETMCCER_RFCNT_MASK 0x8000000UL
474 #define _ETM_ETMCCER_RFCNT_DEFAULT 0x00000001UL
475 #define ETM_ETMCCER_RFCNT_DEFAULT (_ETM_ETMCCER_RFCNT_DEFAULT << 27)
476 #define ETM_ETMCCER_TENC (0x1UL << 28)
477 #define _ETM_ETMCCER_TENC_SHIFT 28
478 #define _ETM_ETMCCER_TENC_MASK 0x10000000UL
479 #define _ETM_ETMCCER_TENC_DEFAULT 0x00000001UL
480 #define ETM_ETMCCER_TENC_DEFAULT (_ETM_ETMCCER_TENC_DEFAULT << 28)
481 #define ETM_ETMCCER_TSIZE (0x1UL << 29)
482 #define _ETM_ETMCCER_TSIZE_SHIFT 29
483 #define _ETM_ETMCCER_TSIZE_MASK 0x20000000UL
484 #define _ETM_ETMCCER_TSIZE_DEFAULT 0x00000000UL
485 #define ETM_ETMCCER_TSIZE_DEFAULT (_ETM_ETMCCER_TSIZE_DEFAULT << 29)
487 /* Bit fields for ETM ETMTESSEICR */
488 #define _ETM_ETMTESSEICR_RESETVALUE 0x00000000UL
489 #define _ETM_ETMTESSEICR_MASK 0x000F000FUL
490 #define _ETM_ETMTESSEICR_STARTRSEL_SHIFT 0
491 #define _ETM_ETMTESSEICR_STARTRSEL_MASK 0xFUL
492 #define _ETM_ETMTESSEICR_STARTRSEL_DEFAULT 0x00000000UL
493 #define ETM_ETMTESSEICR_STARTRSEL_DEFAULT (_ETM_ETMTESSEICR_STARTRSEL_DEFAULT << 0)
494 #define _ETM_ETMTESSEICR_STOPRSEL_SHIFT 16
495 #define _ETM_ETMTESSEICR_STOPRSEL_MASK 0xF0000UL
496 #define _ETM_ETMTESSEICR_STOPRSEL_DEFAULT 0x00000000UL
497 #define ETM_ETMTESSEICR_STOPRSEL_DEFAULT (_ETM_ETMTESSEICR_STOPRSEL_DEFAULT << 16)
499 /* Bit fields for ETM ETMTSEVR */
500 #define _ETM_ETMTSEVR_RESETVALUE 0x00000000UL
501 #define _ETM_ETMTSEVR_MASK 0x0001FFFFUL
502 #define _ETM_ETMTSEVR_RESAEVT_SHIFT 0
503 #define _ETM_ETMTSEVR_RESAEVT_MASK 0x7FUL
504 #define _ETM_ETMTSEVR_RESAEVT_DEFAULT 0x00000000UL
505 #define ETM_ETMTSEVR_RESAEVT_DEFAULT (_ETM_ETMTSEVR_RESAEVT_DEFAULT << 0)
506 #define _ETM_ETMTSEVR_RESBEVT_SHIFT 7
507 #define _ETM_ETMTSEVR_RESBEVT_MASK 0x3F80UL
508 #define _ETM_ETMTSEVR_RESBEVT_DEFAULT 0x00000000UL
509 #define ETM_ETMTSEVR_RESBEVT_DEFAULT (_ETM_ETMTSEVR_RESBEVT_DEFAULT << 7)
510 #define _ETM_ETMTSEVR_ETMFCNEVT_SHIFT 14
511 #define _ETM_ETMTSEVR_ETMFCNEVT_MASK 0x1C000UL
512 #define _ETM_ETMTSEVR_ETMFCNEVT_DEFAULT 0x00000000UL
513 #define ETM_ETMTSEVR_ETMFCNEVT_DEFAULT (_ETM_ETMTSEVR_ETMFCNEVT_DEFAULT << 14)
515 /* Bit fields for ETM ETMTRACEIDR */
516 #define _ETM_ETMTRACEIDR_RESETVALUE 0x00000000UL
517 #define _ETM_ETMTRACEIDR_MASK 0x0000007FUL
518 #define _ETM_ETMTRACEIDR_TRACEID_SHIFT 0
519 #define _ETM_ETMTRACEIDR_TRACEID_MASK 0x7FUL
520 #define _ETM_ETMTRACEIDR_TRACEID_DEFAULT 0x00000000UL
521 #define ETM_ETMTRACEIDR_TRACEID_DEFAULT (_ETM_ETMTRACEIDR_TRACEID_DEFAULT << 0)
523 /* Bit fields for ETM ETMIDR2 */
524 #define _ETM_ETMIDR2_RESETVALUE 0x00000000UL
525 #define _ETM_ETMIDR2_MASK 0x00000003UL
526 #define ETM_ETMIDR2_RFE (0x1UL << 0)
527 #define _ETM_ETMIDR2_RFE_SHIFT 0
528 #define _ETM_ETMIDR2_RFE_MASK 0x1UL
529 #define _ETM_ETMIDR2_RFE_DEFAULT 0x00000000UL
530 #define _ETM_ETMIDR2_RFE_PC 0x00000000UL
531 #define _ETM_ETMIDR2_RFE_CPSR 0x00000001UL
532 #define ETM_ETMIDR2_RFE_DEFAULT (_ETM_ETMIDR2_RFE_DEFAULT << 0)
533 #define ETM_ETMIDR2_RFE_PC (_ETM_ETMIDR2_RFE_PC << 0)
534 #define ETM_ETMIDR2_RFE_CPSR (_ETM_ETMIDR2_RFE_CPSR << 0)
535 #define ETM_ETMIDR2_SWP (0x1UL << 1)
536 #define _ETM_ETMIDR2_SWP_SHIFT 1
537 #define _ETM_ETMIDR2_SWP_MASK 0x2UL
538 #define _ETM_ETMIDR2_SWP_DEFAULT 0x00000000UL
539 #define _ETM_ETMIDR2_SWP_LOAD 0x00000000UL
540 #define _ETM_ETMIDR2_SWP_STORE 0x00000001UL
541 #define ETM_ETMIDR2_SWP_DEFAULT (_ETM_ETMIDR2_SWP_DEFAULT << 1)
542 #define ETM_ETMIDR2_SWP_LOAD (_ETM_ETMIDR2_SWP_LOAD << 1)
543 #define ETM_ETMIDR2_SWP_STORE (_ETM_ETMIDR2_SWP_STORE << 1)
545 /* Bit fields for ETM ETMPDSR */
546 #define _ETM_ETMPDSR_RESETVALUE 0x00000001UL
547 #define _ETM_ETMPDSR_MASK 0x00000001UL
548 #define ETM_ETMPDSR_ETMUP (0x1UL << 0)
549 #define _ETM_ETMPDSR_ETMUP_SHIFT 0
550 #define _ETM_ETMPDSR_ETMUP_MASK 0x1UL
551 #define _ETM_ETMPDSR_ETMUP_DEFAULT 0x00000001UL
552 #define ETM_ETMPDSR_ETMUP_DEFAULT (_ETM_ETMPDSR_ETMUP_DEFAULT << 0)
554 /* Bit fields for ETM ETMISCIN */
555 #define _ETM_ETMISCIN_RESETVALUE 0x00000000UL
556 #define _ETM_ETMISCIN_MASK 0x00000013UL
557 #define _ETM_ETMISCIN_EXTIN_SHIFT 0
558 #define _ETM_ETMISCIN_EXTIN_MASK 0x3UL
559 #define _ETM_ETMISCIN_EXTIN_DEFAULT 0x00000000UL
560 #define ETM_ETMISCIN_EXTIN_DEFAULT (_ETM_ETMISCIN_EXTIN_DEFAULT << 0)
561 #define ETM_ETMISCIN_COREHALT (0x1UL << 4)
562 #define _ETM_ETMISCIN_COREHALT_SHIFT 4
563 #define _ETM_ETMISCIN_COREHALT_MASK 0x10UL
564 #define _ETM_ETMISCIN_COREHALT_DEFAULT 0x00000000UL
565 #define ETM_ETMISCIN_COREHALT_DEFAULT (_ETM_ETMISCIN_COREHALT_DEFAULT << 4)
567 /* Bit fields for ETM ITTRIGOUT */
568 #define _ETM_ITTRIGOUT_RESETVALUE 0x00000000UL
569 #define _ETM_ITTRIGOUT_MASK 0x00000001UL
570 #define ETM_ITTRIGOUT_TRIGGEROUT (0x1UL << 0)
571 #define _ETM_ITTRIGOUT_TRIGGEROUT_SHIFT 0
572 #define _ETM_ITTRIGOUT_TRIGGEROUT_MASK 0x1UL
573 #define _ETM_ITTRIGOUT_TRIGGEROUT_DEFAULT 0x00000000UL
574 #define ETM_ITTRIGOUT_TRIGGEROUT_DEFAULT (_ETM_ITTRIGOUT_TRIGGEROUT_DEFAULT << 0)
576 /* Bit fields for ETM ETMITATBCTR2 */
577 #define _ETM_ETMITATBCTR2_RESETVALUE 0x00000001UL
578 #define _ETM_ETMITATBCTR2_MASK 0x00000001UL
579 #define ETM_ETMITATBCTR2_ATREADY (0x1UL << 0)
580 #define _ETM_ETMITATBCTR2_ATREADY_SHIFT 0
581 #define _ETM_ETMITATBCTR2_ATREADY_MASK 0x1UL
582 #define _ETM_ETMITATBCTR2_ATREADY_DEFAULT 0x00000001UL
583 #define ETM_ETMITATBCTR2_ATREADY_DEFAULT (_ETM_ETMITATBCTR2_ATREADY_DEFAULT << 0)
585 /* Bit fields for ETM ETMITATBCTR0 */
586 #define _ETM_ETMITATBCTR0_RESETVALUE 0x00000000UL
587 #define _ETM_ETMITATBCTR0_MASK 0x00000001UL
588 #define ETM_ETMITATBCTR0_ATVALID (0x1UL << 0)
589 #define _ETM_ETMITATBCTR0_ATVALID_SHIFT 0
590 #define _ETM_ETMITATBCTR0_ATVALID_MASK 0x1UL
591 #define _ETM_ETMITATBCTR0_ATVALID_DEFAULT 0x00000000UL
592 #define ETM_ETMITATBCTR0_ATVALID_DEFAULT (_ETM_ETMITATBCTR0_ATVALID_DEFAULT << 0)
594 /* Bit fields for ETM ETMITCTRL */
595 #define _ETM_ETMITCTRL_RESETVALUE 0x00000000UL
596 #define _ETM_ETMITCTRL_MASK 0x00000001UL
597 #define ETM_ETMITCTRL_ITEN (0x1UL << 0)
598 #define _ETM_ETMITCTRL_ITEN_SHIFT 0
599 #define _ETM_ETMITCTRL_ITEN_MASK 0x1UL
600 #define _ETM_ETMITCTRL_ITEN_DEFAULT 0x00000000UL
601 #define ETM_ETMITCTRL_ITEN_DEFAULT (_ETM_ETMITCTRL_ITEN_DEFAULT << 0)
603 /* Bit fields for ETM ETMCLAIMSET */
604 #define _ETM_ETMCLAIMSET_RESETVALUE 0x0000000FUL
605 #define _ETM_ETMCLAIMSET_MASK 0x000000FFUL
606 #define _ETM_ETMCLAIMSET_SETTAG_SHIFT 0
607 #define _ETM_ETMCLAIMSET_SETTAG_MASK 0xFFUL
608 #define _ETM_ETMCLAIMSET_SETTAG_DEFAULT 0x0000000FUL
609 #define ETM_ETMCLAIMSET_SETTAG_DEFAULT (_ETM_ETMCLAIMSET_SETTAG_DEFAULT << 0)
611 /* Bit fields for ETM ETMCLAIMCLR */
612 #define _ETM_ETMCLAIMCLR_RESETVALUE 0x00000000UL
613 #define _ETM_ETMCLAIMCLR_MASK 0x00000001UL
614 #define ETM_ETMCLAIMCLR_CLRTAG (0x1UL << 0)
615 #define _ETM_ETMCLAIMCLR_CLRTAG_SHIFT 0
616 #define _ETM_ETMCLAIMCLR_CLRTAG_MASK 0x1UL
617 #define _ETM_ETMCLAIMCLR_CLRTAG_DEFAULT 0x00000000UL
618 #define ETM_ETMCLAIMCLR_CLRTAG_DEFAULT (_ETM_ETMCLAIMCLR_CLRTAG_DEFAULT << 0)
620 /* Bit fields for ETM ETMLAR */
621 #define _ETM_ETMLAR_RESETVALUE 0x00000000UL
622 #define _ETM_ETMLAR_MASK 0x00000001UL
623 #define ETM_ETMLAR_KEY (0x1UL << 0)
624 #define _ETM_ETMLAR_KEY_SHIFT 0
625 #define _ETM_ETMLAR_KEY_MASK 0x1UL
626 #define _ETM_ETMLAR_KEY_DEFAULT 0x00000000UL
627 #define ETM_ETMLAR_KEY_DEFAULT (_ETM_ETMLAR_KEY_DEFAULT << 0)
629 /* Bit fields for ETM ETMLSR */
630 #define _ETM_ETMLSR_RESETVALUE 0x00000003UL
631 #define _ETM_ETMLSR_MASK 0x00000003UL
632 #define ETM_ETMLSR_LOCKIMP (0x1UL << 0)
633 #define _ETM_ETMLSR_LOCKIMP_SHIFT 0
634 #define _ETM_ETMLSR_LOCKIMP_MASK 0x1UL
635 #define _ETM_ETMLSR_LOCKIMP_DEFAULT 0x00000001UL
636 #define ETM_ETMLSR_LOCKIMP_DEFAULT (_ETM_ETMLSR_LOCKIMP_DEFAULT << 0)
637 #define ETM_ETMLSR_LOCKED (0x1UL << 1)
638 #define _ETM_ETMLSR_LOCKED_SHIFT 1
639 #define _ETM_ETMLSR_LOCKED_MASK 0x2UL
640 #define _ETM_ETMLSR_LOCKED_DEFAULT 0x00000001UL
641 #define ETM_ETMLSR_LOCKED_DEFAULT (_ETM_ETMLSR_LOCKED_DEFAULT << 1)
643 /* Bit fields for ETM ETMAUTHSTATUS */
644 #define _ETM_ETMAUTHSTATUS_RESETVALUE 0x000000C0UL
645 #define _ETM_ETMAUTHSTATUS_MASK 0x000000FFUL
646 #define _ETM_ETMAUTHSTATUS_NONSECINVDBG_SHIFT 0
647 #define _ETM_ETMAUTHSTATUS_NONSECINVDBG_MASK 0x3UL
648 #define _ETM_ETMAUTHSTATUS_NONSECINVDBG_DEFAULT 0x00000000UL
649 #define ETM_ETMAUTHSTATUS_NONSECINVDBG_DEFAULT (_ETM_ETMAUTHSTATUS_NONSECINVDBG_DEFAULT << 0)
650 #define _ETM_ETMAUTHSTATUS_NONSECNONINVDBG_SHIFT 2
651 #define _ETM_ETMAUTHSTATUS_NONSECNONINVDBG_MASK 0xCUL
652 #define _ETM_ETMAUTHSTATUS_NONSECNONINVDBG_DEFAULT 0x00000000UL
653 #define _ETM_ETMAUTHSTATUS_NONSECNONINVDBG_DISABLE 0x00000002UL
654 #define _ETM_ETMAUTHSTATUS_NONSECNONINVDBG_ENABLE 0x00000003UL
655 #define ETM_ETMAUTHSTATUS_NONSECNONINVDBG_DEFAULT (_ETM_ETMAUTHSTATUS_NONSECNONINVDBG_DEFAULT << 2)
656 #define ETM_ETMAUTHSTATUS_NONSECNONINVDBG_DISABLE (_ETM_ETMAUTHSTATUS_NONSECNONINVDBG_DISABLE << 2)
657 #define ETM_ETMAUTHSTATUS_NONSECNONINVDBG_ENABLE (_ETM_ETMAUTHSTATUS_NONSECNONINVDBG_ENABLE << 2)
658 #define _ETM_ETMAUTHSTATUS_SECINVDBG_SHIFT 4
659 #define _ETM_ETMAUTHSTATUS_SECINVDBG_MASK 0x30UL
660 #define _ETM_ETMAUTHSTATUS_SECINVDBG_DEFAULT 0x00000000UL
661 #define ETM_ETMAUTHSTATUS_SECINVDBG_DEFAULT (_ETM_ETMAUTHSTATUS_SECINVDBG_DEFAULT << 4)
662 #define _ETM_ETMAUTHSTATUS_SECNONINVDBG_SHIFT 6
663 #define _ETM_ETMAUTHSTATUS_SECNONINVDBG_MASK 0xC0UL
664 #define _ETM_ETMAUTHSTATUS_SECNONINVDBG_DEFAULT 0x00000003UL
665 #define ETM_ETMAUTHSTATUS_SECNONINVDBG_DEFAULT (_ETM_ETMAUTHSTATUS_SECNONINVDBG_DEFAULT << 6)
667 /* Bit fields for ETM ETMDEVTYPE */
668 #define _ETM_ETMDEVTYPE_RESETVALUE 0x00000013UL
669 #define _ETM_ETMDEVTYPE_MASK 0x000000FFUL
670 #define _ETM_ETMDEVTYPE_TRACESRC_SHIFT 0
671 #define _ETM_ETMDEVTYPE_TRACESRC_MASK 0xFUL
672 #define _ETM_ETMDEVTYPE_TRACESRC_DEFAULT 0x00000003UL
673 #define ETM_ETMDEVTYPE_TRACESRC_DEFAULT (_ETM_ETMDEVTYPE_TRACESRC_DEFAULT << 0)
674 #define _ETM_ETMDEVTYPE_PROCTRACE_SHIFT 4
675 #define _ETM_ETMDEVTYPE_PROCTRACE_MASK 0xF0UL
676 #define _ETM_ETMDEVTYPE_PROCTRACE_DEFAULT 0x00000001UL
677 #define ETM_ETMDEVTYPE_PROCTRACE_DEFAULT (_ETM_ETMDEVTYPE_PROCTRACE_DEFAULT << 4)
679 /* Bit fields for ETM ETMPIDR4 */
680 #define _ETM_ETMPIDR4_RESETVALUE 0x00000004UL
681 #define _ETM_ETMPIDR4_MASK 0x000000FFUL
682 #define _ETM_ETMPIDR4_CONTCODE_SHIFT 0
683 #define _ETM_ETMPIDR4_CONTCODE_MASK 0xFUL
684 #define _ETM_ETMPIDR4_CONTCODE_DEFAULT 0x00000004UL
685 #define ETM_ETMPIDR4_CONTCODE_DEFAULT (_ETM_ETMPIDR4_CONTCODE_DEFAULT << 0)
686 #define _ETM_ETMPIDR4_COUNT_SHIFT 4
687 #define _ETM_ETMPIDR4_COUNT_MASK 0xF0UL
688 #define _ETM_ETMPIDR4_COUNT_DEFAULT 0x00000000UL
689 #define ETM_ETMPIDR4_COUNT_DEFAULT (_ETM_ETMPIDR4_COUNT_DEFAULT << 4)
691 /* Bit fields for ETM ETMPIDR5 */
692 #define _ETM_ETMPIDR5_RESETVALUE 0x00000000UL
693 #define _ETM_ETMPIDR5_MASK 0x00000000UL
695 /* Bit fields for ETM ETMPIDR6 */
696 #define _ETM_ETMPIDR6_RESETVALUE 0x00000000UL
697 #define _ETM_ETMPIDR6_MASK 0x00000000UL
699 /* Bit fields for ETM ETMPIDR7 */
700 #define _ETM_ETMPIDR7_RESETVALUE 0x00000000UL
701 #define _ETM_ETMPIDR7_MASK 0x00000000UL
703 /* Bit fields for ETM ETMPIDR0 */
704 #define _ETM_ETMPIDR0_RESETVALUE 0x00000024UL
705 #define _ETM_ETMPIDR0_MASK 0x000000FFUL
706 #define _ETM_ETMPIDR0_PARTNUM_SHIFT 0
707 #define _ETM_ETMPIDR0_PARTNUM_MASK 0xFFUL
708 #define _ETM_ETMPIDR0_PARTNUM_DEFAULT 0x00000024UL
709 #define ETM_ETMPIDR0_PARTNUM_DEFAULT (_ETM_ETMPIDR0_PARTNUM_DEFAULT << 0)
711 /* Bit fields for ETM ETMPIDR1 */
712 #define _ETM_ETMPIDR1_RESETVALUE 0x000000B9UL
713 #define _ETM_ETMPIDR1_MASK 0x000000FFUL
714 #define _ETM_ETMPIDR1_PARTNUM_SHIFT 0
715 #define _ETM_ETMPIDR1_PARTNUM_MASK 0xFUL
716 #define _ETM_ETMPIDR1_PARTNUM_DEFAULT 0x00000009UL
717 #define ETM_ETMPIDR1_PARTNUM_DEFAULT (_ETM_ETMPIDR1_PARTNUM_DEFAULT << 0)
718 #define _ETM_ETMPIDR1_IDCODE_SHIFT 4
719 #define _ETM_ETMPIDR1_IDCODE_MASK 0xF0UL
720 #define _ETM_ETMPIDR1_IDCODE_DEFAULT 0x0000000BUL
721 #define ETM_ETMPIDR1_IDCODE_DEFAULT (_ETM_ETMPIDR1_IDCODE_DEFAULT << 4)
723 /* Bit fields for ETM ETMPIDR2 */
724 #define _ETM_ETMPIDR2_RESETVALUE 0x0000003BUL
725 #define _ETM_ETMPIDR2_MASK 0x000000FFUL
726 #define _ETM_ETMPIDR2_IDCODE_SHIFT 0
727 #define _ETM_ETMPIDR2_IDCODE_MASK 0x7UL
728 #define _ETM_ETMPIDR2_IDCODE_DEFAULT 0x00000003UL
729 #define ETM_ETMPIDR2_IDCODE_DEFAULT (_ETM_ETMPIDR2_IDCODE_DEFAULT << 0)
730 #define ETM_ETMPIDR2_ALWAYS1 (0x1UL << 3)
731 #define _ETM_ETMPIDR2_ALWAYS1_SHIFT 3
732 #define _ETM_ETMPIDR2_ALWAYS1_MASK 0x8UL
733 #define _ETM_ETMPIDR2_ALWAYS1_DEFAULT 0x00000001UL
734 #define ETM_ETMPIDR2_ALWAYS1_DEFAULT (_ETM_ETMPIDR2_ALWAYS1_DEFAULT << 3)
735 #define _ETM_ETMPIDR2_REV_SHIFT 4
736 #define _ETM_ETMPIDR2_REV_MASK 0xF0UL
737 #define _ETM_ETMPIDR2_REV_DEFAULT 0x00000003UL
738 #define ETM_ETMPIDR2_REV_DEFAULT (_ETM_ETMPIDR2_REV_DEFAULT << 4)
740 /* Bit fields for ETM ETMPIDR3 */
741 #define _ETM_ETMPIDR3_RESETVALUE 0x00000000UL
742 #define _ETM_ETMPIDR3_MASK 0x000000FFUL
743 #define _ETM_ETMPIDR3_CUSTMOD_SHIFT 0
744 #define _ETM_ETMPIDR3_CUSTMOD_MASK 0xFUL
745 #define _ETM_ETMPIDR3_CUSTMOD_DEFAULT 0x00000000UL
746 #define ETM_ETMPIDR3_CUSTMOD_DEFAULT (_ETM_ETMPIDR3_CUSTMOD_DEFAULT << 0)
747 #define _ETM_ETMPIDR3_REVAND_SHIFT 4
748 #define _ETM_ETMPIDR3_REVAND_MASK 0xF0UL
749 #define _ETM_ETMPIDR3_REVAND_DEFAULT 0x00000000UL
750 #define ETM_ETMPIDR3_REVAND_DEFAULT (_ETM_ETMPIDR3_REVAND_DEFAULT << 4)
752 /* Bit fields for ETM ETMCIDR0 */
753 #define _ETM_ETMCIDR0_RESETVALUE 0x0000000DUL
754 #define _ETM_ETMCIDR0_MASK 0x000000FFUL
755 #define _ETM_ETMCIDR0_PREAMB_SHIFT 0
756 #define _ETM_ETMCIDR0_PREAMB_MASK 0xFFUL
757 #define _ETM_ETMCIDR0_PREAMB_DEFAULT 0x0000000DUL
758 #define ETM_ETMCIDR0_PREAMB_DEFAULT (_ETM_ETMCIDR0_PREAMB_DEFAULT << 0)
760 /* Bit fields for ETM ETMCIDR1 */
761 #define _ETM_ETMCIDR1_RESETVALUE 0x00000090UL
762 #define _ETM_ETMCIDR1_MASK 0x000000FFUL
763 #define _ETM_ETMCIDR1_PREAMB_SHIFT 0
764 #define _ETM_ETMCIDR1_PREAMB_MASK 0xFFUL
765 #define _ETM_ETMCIDR1_PREAMB_DEFAULT 0x00000090UL
766 #define ETM_ETMCIDR1_PREAMB_DEFAULT (_ETM_ETMCIDR1_PREAMB_DEFAULT << 0)
768 /* Bit fields for ETM ETMCIDR2 */
769 #define _ETM_ETMCIDR2_RESETVALUE 0x00000005UL
770 #define _ETM_ETMCIDR2_MASK 0x000000FFUL
771 #define _ETM_ETMCIDR2_PREAMB_SHIFT 0
772 #define _ETM_ETMCIDR2_PREAMB_MASK 0xFFUL
773 #define _ETM_ETMCIDR2_PREAMB_DEFAULT 0x00000005UL
774 #define ETM_ETMCIDR2_PREAMB_DEFAULT (_ETM_ETMCIDR2_PREAMB_DEFAULT << 0)
776 /* Bit fields for ETM ETMCIDR3 */
777 #define _ETM_ETMCIDR3_RESETVALUE 0x000000B1UL
778 #define _ETM_ETMCIDR3_MASK 0x000000FFUL
779 #define _ETM_ETMCIDR3_PREAMB_SHIFT 0
780 #define _ETM_ETMCIDR3_PREAMB_MASK 0xFFUL
781 #define _ETM_ETMCIDR3_PREAMB_DEFAULT 0x000000B1UL
782 #define ETM_ETMCIDR3_PREAMB_DEFAULT (_ETM_ETMCIDR3_PREAMB_DEFAULT << 0)
__IOM uint32_t ETMSR
Definition: efm32gg_etm.h:47
__IOM uint32_t ETMTRIGGER
Definition: efm32gg_etm.h:45
__IM uint32_t ETMCCR
Definition: efm32gg_etm.h:44
__IM uint32_t ETMCIDR1
Definition: efm32gg_etm.h:98
__IOM uint32_t ETMTECR1
Definition: efm32gg_etm.h:51
__IOM uint32_t ETMTSEVR
Definition: efm32gg_etm.h:63
__IM uint32_t ETMPDSR
Definition: efm32gg_etm.h:69
__IM uint32_t ETMITATBCTR2
Definition: efm32gg_etm.h:75
__IOM uint32_t ETMITCTRL
Definition: efm32gg_etm.h:79
__IM uint32_t ETMCIDR2
Definition: efm32gg_etm.h:99
__IM uint32_t ETMSCR
Definition: efm32gg_etm.h:48
__IM uint32_t ETMPIDR1
Definition: efm32gg_etm.h:94
__IOM uint32_t ETMCNTRLDVR1
Definition: efm32gg_etm.h:55
__IOM uint32_t ETMLAR
Definition: efm32gg_etm.h:84
__IOM uint32_t ETMISCIN
Definition: efm32gg_etm.h:71
__OM uint32_t ETMPIDR5
Definition: efm32gg_etm.h:90
__IOM uint32_t ETMFFLR
Definition: efm32gg_etm.h:53
__IM uint32_t ETMDEVTYPE
Definition: efm32gg_etm.h:88
__IM uint32_t ETMPIDR3
Definition: efm32gg_etm.h:96
__IM uint32_t ETMCIDR0
Definition: efm32gg_etm.h:97
__IOM uint32_t ETMSYNCFR
Definition: efm32gg_etm.h:57
__IOM uint32_t ETMTEEVR
Definition: efm32gg_etm.h:50
__OM uint32_t ETMPIDR7
Definition: efm32gg_etm.h:92
__IOM uint32_t ETMCLAIMSET
Definition: efm32gg_etm.h:81
__IM uint32_t ETMAUTHSTATUS
Definition: efm32gg_etm.h:86
__OM uint32_t ETMPIDR6
Definition: efm32gg_etm.h:91
__IOM uint32_t ETMTESSEICR
Definition: efm32gg_etm.h:61
__IOM uint32_t ETMTRACEIDR
Definition: efm32gg_etm.h:65
__IM uint32_t ETMPIDR0
Definition: efm32gg_etm.h:93
__OM uint32_t ITTRIGOUT
Definition: efm32gg_etm.h:73
__IOM uint32_t ETMCR
Definition: efm32gg_etm.h:43
__IM uint32_t ETMIDR
Definition: efm32gg_etm.h:58
__IM uint32_t ETMPIDR2
Definition: efm32gg_etm.h:95
__IM uint32_t ETMCIDR3
Definition: efm32gg_etm.h:100
__IM uint32_t ETMIDR2
Definition: efm32gg_etm.h:67
__OM uint32_t ETMITATBCTR0
Definition: efm32gg_etm.h:77
__IM uint32_t ETMLSR
Definition: efm32gg_etm.h:85
__IOM uint32_t ETMCLAIMCLR
Definition: efm32gg_etm.h:82
__IM uint32_t ETMCCER
Definition: efm32gg_etm.h:59
__IM uint32_t ETMPIDR4
Definition: efm32gg_etm.h:89