Software APIs
top_earlgrey.h
Go to the documentation of this file.
1// Copyright lowRISC contributors (OpenTitan project).
2// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3// SPDX-License-Identifier: Apache-2.0
4//
5// ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------//
6// PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND:
7// util/topgen.py -t hw/top_earlgrey/data/top_earlgrey.hjson
8// -o hw/top_earlgrey/
9
10#ifndef OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_
11#define OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_
12
13/**
14 * @file
15 * @brief Top-specific Definitions
16 *
17 * This file contains preprocessor and type definitions for use within the
18 * device C/C++ codebase.
19 *
20 * These definitions are for information that depends on the top-specific chip
21 * configuration, which includes:
22 * - Device Memory Information (for Peripherals and Memory)
23 * - PLIC Interrupt ID Names and Source Mappings
24 * - Alert ID Names and Source Mappings
25 * - Pinmux Pin/Select Names
26 * - Power Manager Wakeups
27 */
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/**
34 * Peripheral base address for uart0 in top earlgrey.
35 *
36 * This should be used with #mmio_region_from_addr to access the memory-mapped
37 * registers associated with the peripheral (usually via a DIF).
38 */
39#define TOP_EARLGREY_UART0_BASE_ADDR 0x40000000u
40
41/**
42 * Peripheral size for uart0 in top earlgrey.
43 *
44 * This is the size (in bytes) of the peripheral's reserved memory area. All
45 * memory-mapped registers associated with this peripheral should have an
46 * address between #TOP_EARLGREY_UART0_BASE_ADDR and
47 * `TOP_EARLGREY_UART0_BASE_ADDR + TOP_EARLGREY_UART0_SIZE_BYTES`.
48 */
49#define TOP_EARLGREY_UART0_SIZE_BYTES 0x40u
50
51/**
52 * Peripheral base address for uart1 in top earlgrey.
53 *
54 * This should be used with #mmio_region_from_addr to access the memory-mapped
55 * registers associated with the peripheral (usually via a DIF).
56 */
57#define TOP_EARLGREY_UART1_BASE_ADDR 0x40010000u
58
59/**
60 * Peripheral size for uart1 in top earlgrey.
61 *
62 * This is the size (in bytes) of the peripheral's reserved memory area. All
63 * memory-mapped registers associated with this peripheral should have an
64 * address between #TOP_EARLGREY_UART1_BASE_ADDR and
65 * `TOP_EARLGREY_UART1_BASE_ADDR + TOP_EARLGREY_UART1_SIZE_BYTES`.
66 */
67#define TOP_EARLGREY_UART1_SIZE_BYTES 0x40u
68
69/**
70 * Peripheral base address for uart2 in top earlgrey.
71 *
72 * This should be used with #mmio_region_from_addr to access the memory-mapped
73 * registers associated with the peripheral (usually via a DIF).
74 */
75#define TOP_EARLGREY_UART2_BASE_ADDR 0x40020000u
76
77/**
78 * Peripheral size for uart2 in top earlgrey.
79 *
80 * This is the size (in bytes) of the peripheral's reserved memory area. All
81 * memory-mapped registers associated with this peripheral should have an
82 * address between #TOP_EARLGREY_UART2_BASE_ADDR and
83 * `TOP_EARLGREY_UART2_BASE_ADDR + TOP_EARLGREY_UART2_SIZE_BYTES`.
84 */
85#define TOP_EARLGREY_UART2_SIZE_BYTES 0x40u
86
87/**
88 * Peripheral base address for uart3 in top earlgrey.
89 *
90 * This should be used with #mmio_region_from_addr to access the memory-mapped
91 * registers associated with the peripheral (usually via a DIF).
92 */
93#define TOP_EARLGREY_UART3_BASE_ADDR 0x40030000u
94
95/**
96 * Peripheral size for uart3 in top earlgrey.
97 *
98 * This is the size (in bytes) of the peripheral's reserved memory area. All
99 * memory-mapped registers associated with this peripheral should have an
100 * address between #TOP_EARLGREY_UART3_BASE_ADDR and
101 * `TOP_EARLGREY_UART3_BASE_ADDR + TOP_EARLGREY_UART3_SIZE_BYTES`.
102 */
103#define TOP_EARLGREY_UART3_SIZE_BYTES 0x40u
104
105/**
106 * Peripheral base address for gpio in top earlgrey.
107 *
108 * This should be used with #mmio_region_from_addr to access the memory-mapped
109 * registers associated with the peripheral (usually via a DIF).
110 */
111#define TOP_EARLGREY_GPIO_BASE_ADDR 0x40040000u
112
113/**
114 * Peripheral size for gpio in top earlgrey.
115 *
116 * This is the size (in bytes) of the peripheral's reserved memory area. All
117 * memory-mapped registers associated with this peripheral should have an
118 * address between #TOP_EARLGREY_GPIO_BASE_ADDR and
119 * `TOP_EARLGREY_GPIO_BASE_ADDR + TOP_EARLGREY_GPIO_SIZE_BYTES`.
120 */
121#define TOP_EARLGREY_GPIO_SIZE_BYTES 0x80u
122
123/**
124 * Peripheral base address for spi_device in top earlgrey.
125 *
126 * This should be used with #mmio_region_from_addr to access the memory-mapped
127 * registers associated with the peripheral (usually via a DIF).
128 */
129#define TOP_EARLGREY_SPI_DEVICE_BASE_ADDR 0x40050000u
130
131/**
132 * Peripheral size for spi_device in top earlgrey.
133 *
134 * This is the size (in bytes) of the peripheral's reserved memory area. All
135 * memory-mapped registers associated with this peripheral should have an
136 * address between #TOP_EARLGREY_SPI_DEVICE_BASE_ADDR and
137 * `TOP_EARLGREY_SPI_DEVICE_BASE_ADDR + TOP_EARLGREY_SPI_DEVICE_SIZE_BYTES`.
138 */
139#define TOP_EARLGREY_SPI_DEVICE_SIZE_BYTES 0x2000u
140
141/**
142 * Peripheral base address for i2c0 in top earlgrey.
143 *
144 * This should be used with #mmio_region_from_addr to access the memory-mapped
145 * registers associated with the peripheral (usually via a DIF).
146 */
147#define TOP_EARLGREY_I2C0_BASE_ADDR 0x40080000u
148
149/**
150 * Peripheral size for i2c0 in top earlgrey.
151 *
152 * This is the size (in bytes) of the peripheral's reserved memory area. All
153 * memory-mapped registers associated with this peripheral should have an
154 * address between #TOP_EARLGREY_I2C0_BASE_ADDR and
155 * `TOP_EARLGREY_I2C0_BASE_ADDR + TOP_EARLGREY_I2C0_SIZE_BYTES`.
156 */
157#define TOP_EARLGREY_I2C0_SIZE_BYTES 0x80u
158
159/**
160 * Peripheral base address for i2c1 in top earlgrey.
161 *
162 * This should be used with #mmio_region_from_addr to access the memory-mapped
163 * registers associated with the peripheral (usually via a DIF).
164 */
165#define TOP_EARLGREY_I2C1_BASE_ADDR 0x40090000u
166
167/**
168 * Peripheral size for i2c1 in top earlgrey.
169 *
170 * This is the size (in bytes) of the peripheral's reserved memory area. All
171 * memory-mapped registers associated with this peripheral should have an
172 * address between #TOP_EARLGREY_I2C1_BASE_ADDR and
173 * `TOP_EARLGREY_I2C1_BASE_ADDR + TOP_EARLGREY_I2C1_SIZE_BYTES`.
174 */
175#define TOP_EARLGREY_I2C1_SIZE_BYTES 0x80u
176
177/**
178 * Peripheral base address for i2c2 in top earlgrey.
179 *
180 * This should be used with #mmio_region_from_addr to access the memory-mapped
181 * registers associated with the peripheral (usually via a DIF).
182 */
183#define TOP_EARLGREY_I2C2_BASE_ADDR 0x400A0000u
184
185/**
186 * Peripheral size for i2c2 in top earlgrey.
187 *
188 * This is the size (in bytes) of the peripheral's reserved memory area. All
189 * memory-mapped registers associated with this peripheral should have an
190 * address between #TOP_EARLGREY_I2C2_BASE_ADDR and
191 * `TOP_EARLGREY_I2C2_BASE_ADDR + TOP_EARLGREY_I2C2_SIZE_BYTES`.
192 */
193#define TOP_EARLGREY_I2C2_SIZE_BYTES 0x80u
194
195/**
196 * Peripheral base address for rv_timer in top earlgrey.
197 *
198 * This should be used with #mmio_region_from_addr to access the memory-mapped
199 * registers associated with the peripheral (usually via a DIF).
200 */
201#define TOP_EARLGREY_RV_TIMER_BASE_ADDR 0x40100000u
202
203/**
204 * Peripheral size for rv_timer in top earlgrey.
205 *
206 * This is the size (in bytes) of the peripheral's reserved memory area. All
207 * memory-mapped registers associated with this peripheral should have an
208 * address between #TOP_EARLGREY_RV_TIMER_BASE_ADDR and
209 * `TOP_EARLGREY_RV_TIMER_BASE_ADDR + TOP_EARLGREY_RV_TIMER_SIZE_BYTES`.
210 */
211#define TOP_EARLGREY_RV_TIMER_SIZE_BYTES 0x200u
212
213/**
214 * Peripheral base address for core device on otp_ctrl in top earlgrey.
215 *
216 * This should be used with #mmio_region_from_addr to access the memory-mapped
217 * registers associated with the peripheral (usually via a DIF).
218 */
219#define TOP_EARLGREY_OTP_CTRL_CORE_BASE_ADDR 0x40130000u
220
221/**
222 * Peripheral size for core device on otp_ctrl in top earlgrey.
223 *
224 * This is the size (in bytes) of the peripheral's reserved memory area. All
225 * memory-mapped registers associated with this peripheral should have an
226 * address between #TOP_EARLGREY_OTP_CTRL_CORE_BASE_ADDR and
227 * `TOP_EARLGREY_OTP_CTRL_CORE_BASE_ADDR + TOP_EARLGREY_OTP_CTRL_CORE_SIZE_BYTES`.
228 */
229#define TOP_EARLGREY_OTP_CTRL_CORE_SIZE_BYTES 0x1000u
230
231/**
232 * Peripheral base address for prim device on otp_macro in top earlgrey.
233 *
234 * This should be used with #mmio_region_from_addr to access the memory-mapped
235 * registers associated with the peripheral (usually via a DIF).
236 */
237#define TOP_EARLGREY_OTP_MACRO_PRIM_BASE_ADDR 0x40138000u
238
239/**
240 * Peripheral size for prim device on otp_macro in top earlgrey.
241 *
242 * This is the size (in bytes) of the peripheral's reserved memory area. All
243 * memory-mapped registers associated with this peripheral should have an
244 * address between #TOP_EARLGREY_OTP_MACRO_PRIM_BASE_ADDR and
245 * `TOP_EARLGREY_OTP_MACRO_PRIM_BASE_ADDR + TOP_EARLGREY_OTP_MACRO_PRIM_SIZE_BYTES`.
246 */
247#define TOP_EARLGREY_OTP_MACRO_PRIM_SIZE_BYTES 0x20u
248
249/**
250 * Peripheral base address for regs device on lc_ctrl in top earlgrey.
251 *
252 * This should be used with #mmio_region_from_addr to access the memory-mapped
253 * registers associated with the peripheral (usually via a DIF).
254 */
255#define TOP_EARLGREY_LC_CTRL_REGS_BASE_ADDR 0x40140000u
256
257/**
258 * Peripheral size for regs device on lc_ctrl in top earlgrey.
259 *
260 * This is the size (in bytes) of the peripheral's reserved memory area. All
261 * memory-mapped registers associated with this peripheral should have an
262 * address between #TOP_EARLGREY_LC_CTRL_REGS_BASE_ADDR and
263 * `TOP_EARLGREY_LC_CTRL_REGS_BASE_ADDR + TOP_EARLGREY_LC_CTRL_REGS_SIZE_BYTES`.
264 */
265#define TOP_EARLGREY_LC_CTRL_REGS_SIZE_BYTES 0x100u
266
267/**
268 * Peripheral base address for alert_handler in top earlgrey.
269 *
270 * This should be used with #mmio_region_from_addr to access the memory-mapped
271 * registers associated with the peripheral (usually via a DIF).
272 */
273#define TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR 0x40150000u
274
275/**
276 * Peripheral size for alert_handler in top earlgrey.
277 *
278 * This is the size (in bytes) of the peripheral's reserved memory area. All
279 * memory-mapped registers associated with this peripheral should have an
280 * address between #TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR and
281 * `TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR + TOP_EARLGREY_ALERT_HANDLER_SIZE_BYTES`.
282 */
283#define TOP_EARLGREY_ALERT_HANDLER_SIZE_BYTES 0x800u
284
285/**
286 * Peripheral base address for spi_host0 in top earlgrey.
287 *
288 * This should be used with #mmio_region_from_addr to access the memory-mapped
289 * registers associated with the peripheral (usually via a DIF).
290 */
291#define TOP_EARLGREY_SPI_HOST0_BASE_ADDR 0x40300000u
292
293/**
294 * Peripheral size for spi_host0 in top earlgrey.
295 *
296 * This is the size (in bytes) of the peripheral's reserved memory area. All
297 * memory-mapped registers associated with this peripheral should have an
298 * address between #TOP_EARLGREY_SPI_HOST0_BASE_ADDR and
299 * `TOP_EARLGREY_SPI_HOST0_BASE_ADDR + TOP_EARLGREY_SPI_HOST0_SIZE_BYTES`.
300 */
301#define TOP_EARLGREY_SPI_HOST0_SIZE_BYTES 0x40u
302
303/**
304 * Peripheral base address for spi_host1 in top earlgrey.
305 *
306 * This should be used with #mmio_region_from_addr to access the memory-mapped
307 * registers associated with the peripheral (usually via a DIF).
308 */
309#define TOP_EARLGREY_SPI_HOST1_BASE_ADDR 0x40310000u
310
311/**
312 * Peripheral size for spi_host1 in top earlgrey.
313 *
314 * This is the size (in bytes) of the peripheral's reserved memory area. All
315 * memory-mapped registers associated with this peripheral should have an
316 * address between #TOP_EARLGREY_SPI_HOST1_BASE_ADDR and
317 * `TOP_EARLGREY_SPI_HOST1_BASE_ADDR + TOP_EARLGREY_SPI_HOST1_SIZE_BYTES`.
318 */
319#define TOP_EARLGREY_SPI_HOST1_SIZE_BYTES 0x40u
320
321/**
322 * Peripheral base address for usbdev in top earlgrey.
323 *
324 * This should be used with #mmio_region_from_addr to access the memory-mapped
325 * registers associated with the peripheral (usually via a DIF).
326 */
327#define TOP_EARLGREY_USBDEV_BASE_ADDR 0x40320000u
328
329/**
330 * Peripheral size for usbdev in top earlgrey.
331 *
332 * This is the size (in bytes) of the peripheral's reserved memory area. All
333 * memory-mapped registers associated with this peripheral should have an
334 * address between #TOP_EARLGREY_USBDEV_BASE_ADDR and
335 * `TOP_EARLGREY_USBDEV_BASE_ADDR + TOP_EARLGREY_USBDEV_SIZE_BYTES`.
336 */
337#define TOP_EARLGREY_USBDEV_SIZE_BYTES 0x1000u
338
339/**
340 * Peripheral base address for pwrmgr in top earlgrey.
341 *
342 * This should be used with #mmio_region_from_addr to access the memory-mapped
343 * registers associated with the peripheral (usually via a DIF).
344 */
345#define TOP_EARLGREY_PWRMGR_BASE_ADDR 0x40400000u
346
347/**
348 * Peripheral size for pwrmgr in top earlgrey.
349 *
350 * This is the size (in bytes) of the peripheral's reserved memory area. All
351 * memory-mapped registers associated with this peripheral should have an
352 * address between #TOP_EARLGREY_PWRMGR_BASE_ADDR and
353 * `TOP_EARLGREY_PWRMGR_BASE_ADDR + TOP_EARLGREY_PWRMGR_SIZE_BYTES`.
354 */
355#define TOP_EARLGREY_PWRMGR_SIZE_BYTES 0x80u
356
357/**
358 * Peripheral base address for rstmgr in top earlgrey.
359 *
360 * This should be used with #mmio_region_from_addr to access the memory-mapped
361 * registers associated with the peripheral (usually via a DIF).
362 */
363#define TOP_EARLGREY_RSTMGR_BASE_ADDR 0x40410000u
364
365/**
366 * Peripheral size for rstmgr in top earlgrey.
367 *
368 * This is the size (in bytes) of the peripheral's reserved memory area. All
369 * memory-mapped registers associated with this peripheral should have an
370 * address between #TOP_EARLGREY_RSTMGR_BASE_ADDR and
371 * `TOP_EARLGREY_RSTMGR_BASE_ADDR + TOP_EARLGREY_RSTMGR_SIZE_BYTES`.
372 */
373#define TOP_EARLGREY_RSTMGR_SIZE_BYTES 0x80u
374
375/**
376 * Peripheral base address for clkmgr in top earlgrey.
377 *
378 * This should be used with #mmio_region_from_addr to access the memory-mapped
379 * registers associated with the peripheral (usually via a DIF).
380 */
381#define TOP_EARLGREY_CLKMGR_BASE_ADDR 0x40420000u
382
383/**
384 * Peripheral size for clkmgr in top earlgrey.
385 *
386 * This is the size (in bytes) of the peripheral's reserved memory area. All
387 * memory-mapped registers associated with this peripheral should have an
388 * address between #TOP_EARLGREY_CLKMGR_BASE_ADDR and
389 * `TOP_EARLGREY_CLKMGR_BASE_ADDR + TOP_EARLGREY_CLKMGR_SIZE_BYTES`.
390 */
391#define TOP_EARLGREY_CLKMGR_SIZE_BYTES 0x80u
392
393/**
394 * Peripheral base address for sysrst_ctrl in top earlgrey.
395 *
396 * This should be used with #mmio_region_from_addr to access the memory-mapped
397 * registers associated with the peripheral (usually via a DIF).
398 */
399#define TOP_EARLGREY_SYSRST_CTRL_BASE_ADDR 0x40430000u
400
401/**
402 * Peripheral size for sysrst_ctrl in top earlgrey.
403 *
404 * This is the size (in bytes) of the peripheral's reserved memory area. All
405 * memory-mapped registers associated with this peripheral should have an
406 * address between #TOP_EARLGREY_SYSRST_CTRL_BASE_ADDR and
407 * `TOP_EARLGREY_SYSRST_CTRL_BASE_ADDR + TOP_EARLGREY_SYSRST_CTRL_SIZE_BYTES`.
408 */
409#define TOP_EARLGREY_SYSRST_CTRL_SIZE_BYTES 0x100u
410
411/**
412 * Peripheral base address for adc_ctrl in top earlgrey.
413 *
414 * This should be used with #mmio_region_from_addr to access the memory-mapped
415 * registers associated with the peripheral (usually via a DIF).
416 */
417#define TOP_EARLGREY_ADC_CTRL_BASE_ADDR 0x40440000u
418
419/**
420 * Peripheral size for adc_ctrl in top earlgrey.
421 *
422 * This is the size (in bytes) of the peripheral's reserved memory area. All
423 * memory-mapped registers associated with this peripheral should have an
424 * address between #TOP_EARLGREY_ADC_CTRL_BASE_ADDR and
425 * `TOP_EARLGREY_ADC_CTRL_BASE_ADDR + TOP_EARLGREY_ADC_CTRL_SIZE_BYTES`.
426 */
427#define TOP_EARLGREY_ADC_CTRL_SIZE_BYTES 0x80u
428
429/**
430 * Peripheral base address for pinmux in top earlgrey.
431 *
432 * This should be used with #mmio_region_from_addr to access the memory-mapped
433 * registers associated with the peripheral (usually via a DIF).
434 */
435#define TOP_EARLGREY_PINMUX_BASE_ADDR 0x40460000u
436
437/**
438 * Peripheral size for pinmux in top earlgrey.
439 *
440 * This is the size (in bytes) of the peripheral's reserved memory area. All
441 * memory-mapped registers associated with this peripheral should have an
442 * address between #TOP_EARLGREY_PINMUX_BASE_ADDR and
443 * `TOP_EARLGREY_PINMUX_BASE_ADDR + TOP_EARLGREY_PINMUX_SIZE_BYTES`.
444 */
445#define TOP_EARLGREY_PINMUX_SIZE_BYTES 0x1000u
446
447/**
448 * Peripheral base address for aon_timer in top earlgrey.
449 *
450 * This should be used with #mmio_region_from_addr to access the memory-mapped
451 * registers associated with the peripheral (usually via a DIF).
452 */
453#define TOP_EARLGREY_AON_TIMER_BASE_ADDR 0x40470000u
454
455/**
456 * Peripheral size for aon_timer in top earlgrey.
457 *
458 * This is the size (in bytes) of the peripheral's reserved memory area. All
459 * memory-mapped registers associated with this peripheral should have an
460 * address between #TOP_EARLGREY_AON_TIMER_BASE_ADDR and
461 * `TOP_EARLGREY_AON_TIMER_BASE_ADDR + TOP_EARLGREY_AON_TIMER_SIZE_BYTES`.
462 */
463#define TOP_EARLGREY_AON_TIMER_SIZE_BYTES 0x40u
464
465/**
466 * Peripheral base address for ast in top earlgrey.
467 *
468 * This should be used with #mmio_region_from_addr to access the memory-mapped
469 * registers associated with the peripheral (usually via a DIF).
470 */
471#define TOP_EARLGREY_AST_BASE_ADDR 0x40480000u
472
473/**
474 * Peripheral size for ast in top earlgrey.
475 *
476 * This is the size (in bytes) of the peripheral's reserved memory area. All
477 * memory-mapped registers associated with this peripheral should have an
478 * address between #TOP_EARLGREY_AST_BASE_ADDR and
479 * `TOP_EARLGREY_AST_BASE_ADDR + TOP_EARLGREY_AST_SIZE_BYTES`.
480 */
481#define TOP_EARLGREY_AST_SIZE_BYTES 0x400u
482
483/**
484 * Peripheral base address for sensor_ctrl in top earlgrey.
485 *
486 * This should be used with #mmio_region_from_addr to access the memory-mapped
487 * registers associated with the peripheral (usually via a DIF).
488 */
489#define TOP_EARLGREY_SENSOR_CTRL_BASE_ADDR 0x40490000u
490
491/**
492 * Peripheral size for sensor_ctrl in top earlgrey.
493 *
494 * This is the size (in bytes) of the peripheral's reserved memory area. All
495 * memory-mapped registers associated with this peripheral should have an
496 * address between #TOP_EARLGREY_SENSOR_CTRL_BASE_ADDR and
497 * `TOP_EARLGREY_SENSOR_CTRL_BASE_ADDR + TOP_EARLGREY_SENSOR_CTRL_SIZE_BYTES`.
498 */
499#define TOP_EARLGREY_SENSOR_CTRL_SIZE_BYTES 0x80u
500
501/**
502 * Peripheral base address for regs device on sram_ctrl_ret in top earlgrey.
503 *
504 * This should be used with #mmio_region_from_addr to access the memory-mapped
505 * registers associated with the peripheral (usually via a DIF).
506 */
507#define TOP_EARLGREY_SRAM_CTRL_RET_REGS_BASE_ADDR 0x40500000u
508
509/**
510 * Peripheral size for regs device on sram_ctrl_ret in top earlgrey.
511 *
512 * This is the size (in bytes) of the peripheral's reserved memory area. All
513 * memory-mapped registers associated with this peripheral should have an
514 * address between #TOP_EARLGREY_SRAM_CTRL_RET_REGS_BASE_ADDR and
515 * `TOP_EARLGREY_SRAM_CTRL_RET_REGS_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_RET_REGS_SIZE_BYTES`.
516 */
517#define TOP_EARLGREY_SRAM_CTRL_RET_REGS_SIZE_BYTES 0x40u
518
519/**
520 * Peripheral base address for core device on flash_ctrl in top earlgrey.
521 *
522 * This should be used with #mmio_region_from_addr to access the memory-mapped
523 * registers associated with the peripheral (usually via a DIF).
524 */
525#define TOP_EARLGREY_FLASH_CTRL_CORE_BASE_ADDR 0x41000000u
526
527/**
528 * Peripheral size for core device on flash_ctrl in top earlgrey.
529 *
530 * This is the size (in bytes) of the peripheral's reserved memory area. All
531 * memory-mapped registers associated with this peripheral should have an
532 * address between #TOP_EARLGREY_FLASH_CTRL_CORE_BASE_ADDR and
533 * `TOP_EARLGREY_FLASH_CTRL_CORE_BASE_ADDR + TOP_EARLGREY_FLASH_CTRL_CORE_SIZE_BYTES`.
534 */
535#define TOP_EARLGREY_FLASH_CTRL_CORE_SIZE_BYTES 0x200u
536
537/**
538 * Peripheral base address for prim device on flash_ctrl in top earlgrey.
539 *
540 * This should be used with #mmio_region_from_addr to access the memory-mapped
541 * registers associated with the peripheral (usually via a DIF).
542 */
543#define TOP_EARLGREY_FLASH_CTRL_PRIM_BASE_ADDR 0x41008000u
544
545/**
546 * Peripheral size for prim device on flash_ctrl in top earlgrey.
547 *
548 * This is the size (in bytes) of the peripheral's reserved memory area. All
549 * memory-mapped registers associated with this peripheral should have an
550 * address between #TOP_EARLGREY_FLASH_CTRL_PRIM_BASE_ADDR and
551 * `TOP_EARLGREY_FLASH_CTRL_PRIM_BASE_ADDR + TOP_EARLGREY_FLASH_CTRL_PRIM_SIZE_BYTES`.
552 */
553#define TOP_EARLGREY_FLASH_CTRL_PRIM_SIZE_BYTES 0x80u
554
555/**
556 * Peripheral base address for core device on rram_ctrl in top earlgrey.
557 *
558 * This should be used with #mmio_region_from_addr to access the memory-mapped
559 * registers associated with the peripheral (usually via a DIF).
560 */
561#define TOP_EARLGREY_RRAM_CTRL_CORE_BASE_ADDR 0x41010000u
562
563/**
564 * Peripheral size for core device on rram_ctrl in top earlgrey.
565 *
566 * This is the size (in bytes) of the peripheral's reserved memory area. All
567 * memory-mapped registers associated with this peripheral should have an
568 * address between #TOP_EARLGREY_RRAM_CTRL_CORE_BASE_ADDR and
569 * `TOP_EARLGREY_RRAM_CTRL_CORE_BASE_ADDR + TOP_EARLGREY_RRAM_CTRL_CORE_SIZE_BYTES`.
570 */
571#define TOP_EARLGREY_RRAM_CTRL_CORE_SIZE_BYTES 0x200u
572
573/**
574 * Peripheral base address for prim device on rram_macro in top earlgrey.
575 *
576 * This should be used with #mmio_region_from_addr to access the memory-mapped
577 * registers associated with the peripheral (usually via a DIF).
578 */
579#define TOP_EARLGREY_RRAM_MACRO_PRIM_BASE_ADDR 0x41018000u
580
581/**
582 * Peripheral size for prim device on rram_macro in top earlgrey.
583 *
584 * This is the size (in bytes) of the peripheral's reserved memory area. All
585 * memory-mapped registers associated with this peripheral should have an
586 * address between #TOP_EARLGREY_RRAM_MACRO_PRIM_BASE_ADDR and
587 * `TOP_EARLGREY_RRAM_MACRO_PRIM_BASE_ADDR + TOP_EARLGREY_RRAM_MACRO_PRIM_SIZE_BYTES`.
588 */
589#define TOP_EARLGREY_RRAM_MACRO_PRIM_SIZE_BYTES 0x10u
590
591/**
592 * Peripheral base address for regs device on rv_dm in top earlgrey.
593 *
594 * This should be used with #mmio_region_from_addr to access the memory-mapped
595 * registers associated with the peripheral (usually via a DIF).
596 */
597#define TOP_EARLGREY_RV_DM_REGS_BASE_ADDR 0x41200000u
598
599/**
600 * Peripheral size for regs device on rv_dm in top earlgrey.
601 *
602 * This is the size (in bytes) of the peripheral's reserved memory area. All
603 * memory-mapped registers associated with this peripheral should have an
604 * address between #TOP_EARLGREY_RV_DM_REGS_BASE_ADDR and
605 * `TOP_EARLGREY_RV_DM_REGS_BASE_ADDR + TOP_EARLGREY_RV_DM_REGS_SIZE_BYTES`.
606 */
607#define TOP_EARLGREY_RV_DM_REGS_SIZE_BYTES 0x10u
608
609/**
610 * Peripheral base address for mem device on rv_dm in top earlgrey.
611 *
612 * This should be used with #mmio_region_from_addr to access the memory-mapped
613 * registers associated with the peripheral (usually via a DIF).
614 */
615#define TOP_EARLGREY_RV_DM_MEM_BASE_ADDR 0x10000u
616
617/**
618 * Peripheral size for mem device on rv_dm in top earlgrey.
619 *
620 * This is the size (in bytes) of the peripheral's reserved memory area. All
621 * memory-mapped registers associated with this peripheral should have an
622 * address between #TOP_EARLGREY_RV_DM_MEM_BASE_ADDR and
623 * `TOP_EARLGREY_RV_DM_MEM_BASE_ADDR + TOP_EARLGREY_RV_DM_MEM_SIZE_BYTES`.
624 */
625#define TOP_EARLGREY_RV_DM_MEM_SIZE_BYTES 0x1000u
626
627/**
628 * Peripheral base address for rv_plic in top earlgrey.
629 *
630 * This should be used with #mmio_region_from_addr to access the memory-mapped
631 * registers associated with the peripheral (usually via a DIF).
632 */
633#define TOP_EARLGREY_RV_PLIC_BASE_ADDR 0x48000000u
634
635/**
636 * Peripheral size for rv_plic in top earlgrey.
637 *
638 * This is the size (in bytes) of the peripheral's reserved memory area. All
639 * memory-mapped registers associated with this peripheral should have an
640 * address between #TOP_EARLGREY_RV_PLIC_BASE_ADDR and
641 * `TOP_EARLGREY_RV_PLIC_BASE_ADDR + TOP_EARLGREY_RV_PLIC_SIZE_BYTES`.
642 */
643#define TOP_EARLGREY_RV_PLIC_SIZE_BYTES 0x8000000u
644
645/**
646 * Peripheral base address for aes in top earlgrey.
647 *
648 * This should be used with #mmio_region_from_addr to access the memory-mapped
649 * registers associated with the peripheral (usually via a DIF).
650 */
651#define TOP_EARLGREY_AES_BASE_ADDR 0x41100000u
652
653/**
654 * Peripheral size for aes in top earlgrey.
655 *
656 * This is the size (in bytes) of the peripheral's reserved memory area. All
657 * memory-mapped registers associated with this peripheral should have an
658 * address between #TOP_EARLGREY_AES_BASE_ADDR and
659 * `TOP_EARLGREY_AES_BASE_ADDR + TOP_EARLGREY_AES_SIZE_BYTES`.
660 */
661#define TOP_EARLGREY_AES_SIZE_BYTES 0x100u
662
663/**
664 * Peripheral base address for hmac in top earlgrey.
665 *
666 * This should be used with #mmio_region_from_addr to access the memory-mapped
667 * registers associated with the peripheral (usually via a DIF).
668 */
669#define TOP_EARLGREY_HMAC_BASE_ADDR 0x41110000u
670
671/**
672 * Peripheral size for hmac in top earlgrey.
673 *
674 * This is the size (in bytes) of the peripheral's reserved memory area. All
675 * memory-mapped registers associated with this peripheral should have an
676 * address between #TOP_EARLGREY_HMAC_BASE_ADDR and
677 * `TOP_EARLGREY_HMAC_BASE_ADDR + TOP_EARLGREY_HMAC_SIZE_BYTES`.
678 */
679#define TOP_EARLGREY_HMAC_SIZE_BYTES 0x2000u
680
681/**
682 * Peripheral base address for kmac in top earlgrey.
683 *
684 * This should be used with #mmio_region_from_addr to access the memory-mapped
685 * registers associated with the peripheral (usually via a DIF).
686 */
687#define TOP_EARLGREY_KMAC_BASE_ADDR 0x41120000u
688
689/**
690 * Peripheral size for kmac in top earlgrey.
691 *
692 * This is the size (in bytes) of the peripheral's reserved memory area. All
693 * memory-mapped registers associated with this peripheral should have an
694 * address between #TOP_EARLGREY_KMAC_BASE_ADDR and
695 * `TOP_EARLGREY_KMAC_BASE_ADDR + TOP_EARLGREY_KMAC_SIZE_BYTES`.
696 */
697#define TOP_EARLGREY_KMAC_SIZE_BYTES 0x1000u
698
699/**
700 * Peripheral base address for otbn in top earlgrey.
701 *
702 * This should be used with #mmio_region_from_addr to access the memory-mapped
703 * registers associated with the peripheral (usually via a DIF).
704 */
705#define TOP_EARLGREY_OTBN_BASE_ADDR 0x41130000u
706
707/**
708 * Peripheral size for otbn in top earlgrey.
709 *
710 * This is the size (in bytes) of the peripheral's reserved memory area. All
711 * memory-mapped registers associated with this peripheral should have an
712 * address between #TOP_EARLGREY_OTBN_BASE_ADDR and
713 * `TOP_EARLGREY_OTBN_BASE_ADDR + TOP_EARLGREY_OTBN_SIZE_BYTES`.
714 */
715#define TOP_EARLGREY_OTBN_SIZE_BYTES 0x10000u
716
717/**
718 * Peripheral base address for keymgr in top earlgrey.
719 *
720 * This should be used with #mmio_region_from_addr to access the memory-mapped
721 * registers associated with the peripheral (usually via a DIF).
722 */
723#define TOP_EARLGREY_KEYMGR_BASE_ADDR 0x41140000u
724
725/**
726 * Peripheral size for keymgr in top earlgrey.
727 *
728 * This is the size (in bytes) of the peripheral's reserved memory area. All
729 * memory-mapped registers associated with this peripheral should have an
730 * address between #TOP_EARLGREY_KEYMGR_BASE_ADDR and
731 * `TOP_EARLGREY_KEYMGR_BASE_ADDR + TOP_EARLGREY_KEYMGR_SIZE_BYTES`.
732 */
733#define TOP_EARLGREY_KEYMGR_SIZE_BYTES 0x100u
734
735/**
736 * Peripheral base address for csrng in top earlgrey.
737 *
738 * This should be used with #mmio_region_from_addr to access the memory-mapped
739 * registers associated with the peripheral (usually via a DIF).
740 */
741#define TOP_EARLGREY_CSRNG_BASE_ADDR 0x41150000u
742
743/**
744 * Peripheral size for csrng in top earlgrey.
745 *
746 * This is the size (in bytes) of the peripheral's reserved memory area. All
747 * memory-mapped registers associated with this peripheral should have an
748 * address between #TOP_EARLGREY_CSRNG_BASE_ADDR and
749 * `TOP_EARLGREY_CSRNG_BASE_ADDR + TOP_EARLGREY_CSRNG_SIZE_BYTES`.
750 */
751#define TOP_EARLGREY_CSRNG_SIZE_BYTES 0x80u
752
753/**
754 * Peripheral base address for entropy_src in top earlgrey.
755 *
756 * This should be used with #mmio_region_from_addr to access the memory-mapped
757 * registers associated with the peripheral (usually via a DIF).
758 */
759#define TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR 0x41160000u
760
761/**
762 * Peripheral size for entropy_src in top earlgrey.
763 *
764 * This is the size (in bytes) of the peripheral's reserved memory area. All
765 * memory-mapped registers associated with this peripheral should have an
766 * address between #TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR and
767 * `TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR + TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES`.
768 */
769#define TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES 0x100u
770
771/**
772 * Peripheral base address for edn0 in top earlgrey.
773 *
774 * This should be used with #mmio_region_from_addr to access the memory-mapped
775 * registers associated with the peripheral (usually via a DIF).
776 */
777#define TOP_EARLGREY_EDN0_BASE_ADDR 0x41170000u
778
779/**
780 * Peripheral size for edn0 in top earlgrey.
781 *
782 * This is the size (in bytes) of the peripheral's reserved memory area. All
783 * memory-mapped registers associated with this peripheral should have an
784 * address between #TOP_EARLGREY_EDN0_BASE_ADDR and
785 * `TOP_EARLGREY_EDN0_BASE_ADDR + TOP_EARLGREY_EDN0_SIZE_BYTES`.
786 */
787#define TOP_EARLGREY_EDN0_SIZE_BYTES 0x80u
788
789/**
790 * Peripheral base address for edn1 in top earlgrey.
791 *
792 * This should be used with #mmio_region_from_addr to access the memory-mapped
793 * registers associated with the peripheral (usually via a DIF).
794 */
795#define TOP_EARLGREY_EDN1_BASE_ADDR 0x41180000u
796
797/**
798 * Peripheral size for edn1 in top earlgrey.
799 *
800 * This is the size (in bytes) of the peripheral's reserved memory area. All
801 * memory-mapped registers associated with this peripheral should have an
802 * address between #TOP_EARLGREY_EDN1_BASE_ADDR and
803 * `TOP_EARLGREY_EDN1_BASE_ADDR + TOP_EARLGREY_EDN1_SIZE_BYTES`.
804 */
805#define TOP_EARLGREY_EDN1_SIZE_BYTES 0x80u
806
807/**
808 * Peripheral base address for regs device on sram_ctrl_main in top earlgrey.
809 *
810 * This should be used with #mmio_region_from_addr to access the memory-mapped
811 * registers associated with the peripheral (usually via a DIF).
812 */
813#define TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_BASE_ADDR 0x411C0000u
814
815/**
816 * Peripheral size for regs device on sram_ctrl_main in top earlgrey.
817 *
818 * This is the size (in bytes) of the peripheral's reserved memory area. All
819 * memory-mapped registers associated with this peripheral should have an
820 * address between #TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_BASE_ADDR and
821 * `TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_SIZE_BYTES`.
822 */
823#define TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_SIZE_BYTES 0x40u
824
825/**
826 * Peripheral base address for regs device on sram_ctrl_sec in top earlgrey.
827 *
828 * This should be used with #mmio_region_from_addr to access the memory-mapped
829 * registers associated with the peripheral (usually via a DIF).
830 */
831#define TOP_EARLGREY_SRAM_CTRL_SEC_REGS_BASE_ADDR 0x411D0000u
832
833/**
834 * Peripheral size for regs device on sram_ctrl_sec in top earlgrey.
835 *
836 * This is the size (in bytes) of the peripheral's reserved memory area. All
837 * memory-mapped registers associated with this peripheral should have an
838 * address between #TOP_EARLGREY_SRAM_CTRL_SEC_REGS_BASE_ADDR and
839 * `TOP_EARLGREY_SRAM_CTRL_SEC_REGS_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_SEC_REGS_SIZE_BYTES`.
840 */
841#define TOP_EARLGREY_SRAM_CTRL_SEC_REGS_SIZE_BYTES 0x40u
842
843/**
844 * Peripheral base address for regs device on rom_ctrl in top earlgrey.
845 *
846 * This should be used with #mmio_region_from_addr to access the memory-mapped
847 * registers associated with the peripheral (usually via a DIF).
848 */
849#define TOP_EARLGREY_ROM_CTRL_REGS_BASE_ADDR 0x411E0000u
850
851/**
852 * Peripheral size for regs device on rom_ctrl in top earlgrey.
853 *
854 * This is the size (in bytes) of the peripheral's reserved memory area. All
855 * memory-mapped registers associated with this peripheral should have an
856 * address between #TOP_EARLGREY_ROM_CTRL_REGS_BASE_ADDR and
857 * `TOP_EARLGREY_ROM_CTRL_REGS_BASE_ADDR + TOP_EARLGREY_ROM_CTRL_REGS_SIZE_BYTES`.
858 */
859#define TOP_EARLGREY_ROM_CTRL_REGS_SIZE_BYTES 0x80u
860
861/**
862 * Peripheral base address for cfg device on rv_core_ibex in top earlgrey.
863 *
864 * This should be used with #mmio_region_from_addr to access the memory-mapped
865 * registers associated with the peripheral (usually via a DIF).
866 */
867#define TOP_EARLGREY_RV_CORE_IBEX_CFG_BASE_ADDR 0x411F0000u
868
869/**
870 * Peripheral size for cfg device on rv_core_ibex in top earlgrey.
871 *
872 * This is the size (in bytes) of the peripheral's reserved memory area. All
873 * memory-mapped registers associated with this peripheral should have an
874 * address between #TOP_EARLGREY_RV_CORE_IBEX_CFG_BASE_ADDR and
875 * `TOP_EARLGREY_RV_CORE_IBEX_CFG_BASE_ADDR + TOP_EARLGREY_RV_CORE_IBEX_CFG_SIZE_BYTES`.
876 */
877#define TOP_EARLGREY_RV_CORE_IBEX_CFG_SIZE_BYTES 0x100u
878
879
880/**
881 * Memory base address for ram memory on sram_ctrl_ret in top earlgrey.
882 */
883#define TOP_EARLGREY_SRAM_CTRL_RET_RAM_BASE_ADDR 0x40600000u
884
885/**
886 * Memory size for ram memory on sram_ctrl_ret in top earlgrey.
887 */
888#define TOP_EARLGREY_SRAM_CTRL_RET_RAM_SIZE_BYTES 0x1000u
889
890/**
891 * Memory base address for mem memory on flash_ctrl in top earlgrey.
892 */
893#define TOP_EARLGREY_FLASH_CTRL_MEM_BASE_ADDR 0x20000000u
894
895/**
896 * Memory size for mem memory on flash_ctrl in top earlgrey.
897 */
898#define TOP_EARLGREY_FLASH_CTRL_MEM_SIZE_BYTES 0x100000u
899
900/**
901 * Memory base address for host memory on rram_ctrl in top earlgrey.
902 */
903#define TOP_EARLGREY_RRAM_CTRL_HOST_BASE_ADDR 0x30000000u
904
905/**
906 * Memory size for host memory on rram_ctrl in top earlgrey.
907 */
908#define TOP_EARLGREY_RRAM_CTRL_HOST_SIZE_BYTES 0x200000u
909
910/**
911 * Memory base address for ram memory on sram_ctrl_main in top earlgrey.
912 */
913#define TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_BASE_ADDR 0x10000000u
914
915/**
916 * Memory size for ram memory on sram_ctrl_main in top earlgrey.
917 */
918#define TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_SIZE_BYTES 0x20000u
919
920/**
921 * Memory base address for ram memory on sram_ctrl_sec in top earlgrey.
922 */
923#define TOP_EARLGREY_SRAM_CTRL_SEC_RAM_BASE_ADDR 0x10020000u
924
925/**
926 * Memory size for ram memory on sram_ctrl_sec in top earlgrey.
927 */
928#define TOP_EARLGREY_SRAM_CTRL_SEC_RAM_SIZE_BYTES 0x10000u
929
930/**
931 * Memory base address for rom memory on rom_ctrl in top earlgrey.
932 */
933#define TOP_EARLGREY_ROM_CTRL_ROM_BASE_ADDR 0x40000u
934
935/**
936 * Memory size for rom memory on rom_ctrl in top earlgrey.
937 */
938#define TOP_EARLGREY_ROM_CTRL_ROM_SIZE_BYTES 0xC000u
939
940
941/**
942 * PLIC Interrupt Source Peripheral.
943 *
944 * Enumeration used to determine which peripheral asserted the corresponding
945 * interrupt.
946 */
948 kTopEarlgreyPlicPeripheralUnknown = 0, /**< Unknown Peripheral */
960 kTopEarlgreyPlicPeripheralAlertHandler = 12, /**< alert_handler */
965 kTopEarlgreyPlicPeripheralSysrstCtrl = 17, /**< sysrst_ctrl */
968 kTopEarlgreyPlicPeripheralSensorCtrl = 20, /**< sensor_ctrl */
969 kTopEarlgreyPlicPeripheralFlashCtrl = 21, /**< flash_ctrl */
976 kTopEarlgreyPlicPeripheralEntropySrc = 28, /**< entropy_src */
979 kTopEarlgreyPlicPeripheralLast = 30, /**< \internal Final PLIC peripheral */
981
982/**
983 * PLIC Interrupt Source.
984 *
985 * Enumeration of all PLIC interrupt sources. The interrupt sources belonging to
986 * the same peripheral are guaranteed to be consecutive.
987 */
989 kTopEarlgreyPlicIrqIdNone = 0, /**< No Interrupt */
990 kTopEarlgreyPlicIrqIdUart0TxWatermark = 1, /**< uart0_tx_watermark */
991 kTopEarlgreyPlicIrqIdUart0RxWatermark = 2, /**< uart0_rx_watermark */
992 kTopEarlgreyPlicIrqIdUart0TxDone = 3, /**< uart0_tx_done */
993 kTopEarlgreyPlicIrqIdUart0RxOverflow = 4, /**< uart0_rx_overflow */
994 kTopEarlgreyPlicIrqIdUart0RxFrameErr = 5, /**< uart0_rx_frame_err */
995 kTopEarlgreyPlicIrqIdUart0RxBreakErr = 6, /**< uart0_rx_break_err */
996 kTopEarlgreyPlicIrqIdUart0RxTimeout = 7, /**< uart0_rx_timeout */
997 kTopEarlgreyPlicIrqIdUart0RxParityErr = 8, /**< uart0_rx_parity_err */
998 kTopEarlgreyPlicIrqIdUart0TxEmpty = 9, /**< uart0_tx_empty */
999 kTopEarlgreyPlicIrqIdUart1TxWatermark = 10, /**< uart1_tx_watermark */
1000 kTopEarlgreyPlicIrqIdUart1RxWatermark = 11, /**< uart1_rx_watermark */
1001 kTopEarlgreyPlicIrqIdUart1TxDone = 12, /**< uart1_tx_done */
1002 kTopEarlgreyPlicIrqIdUart1RxOverflow = 13, /**< uart1_rx_overflow */
1003 kTopEarlgreyPlicIrqIdUart1RxFrameErr = 14, /**< uart1_rx_frame_err */
1004 kTopEarlgreyPlicIrqIdUart1RxBreakErr = 15, /**< uart1_rx_break_err */
1005 kTopEarlgreyPlicIrqIdUart1RxTimeout = 16, /**< uart1_rx_timeout */
1006 kTopEarlgreyPlicIrqIdUart1RxParityErr = 17, /**< uart1_rx_parity_err */
1007 kTopEarlgreyPlicIrqIdUart1TxEmpty = 18, /**< uart1_tx_empty */
1008 kTopEarlgreyPlicIrqIdUart2TxWatermark = 19, /**< uart2_tx_watermark */
1009 kTopEarlgreyPlicIrqIdUart2RxWatermark = 20, /**< uart2_rx_watermark */
1010 kTopEarlgreyPlicIrqIdUart2TxDone = 21, /**< uart2_tx_done */
1011 kTopEarlgreyPlicIrqIdUart2RxOverflow = 22, /**< uart2_rx_overflow */
1012 kTopEarlgreyPlicIrqIdUart2RxFrameErr = 23, /**< uart2_rx_frame_err */
1013 kTopEarlgreyPlicIrqIdUart2RxBreakErr = 24, /**< uart2_rx_break_err */
1014 kTopEarlgreyPlicIrqIdUart2RxTimeout = 25, /**< uart2_rx_timeout */
1015 kTopEarlgreyPlicIrqIdUart2RxParityErr = 26, /**< uart2_rx_parity_err */
1016 kTopEarlgreyPlicIrqIdUart2TxEmpty = 27, /**< uart2_tx_empty */
1017 kTopEarlgreyPlicIrqIdUart3TxWatermark = 28, /**< uart3_tx_watermark */
1018 kTopEarlgreyPlicIrqIdUart3RxWatermark = 29, /**< uart3_rx_watermark */
1019 kTopEarlgreyPlicIrqIdUart3TxDone = 30, /**< uart3_tx_done */
1020 kTopEarlgreyPlicIrqIdUart3RxOverflow = 31, /**< uart3_rx_overflow */
1021 kTopEarlgreyPlicIrqIdUart3RxFrameErr = 32, /**< uart3_rx_frame_err */
1022 kTopEarlgreyPlicIrqIdUart3RxBreakErr = 33, /**< uart3_rx_break_err */
1023 kTopEarlgreyPlicIrqIdUart3RxTimeout = 34, /**< uart3_rx_timeout */
1024 kTopEarlgreyPlicIrqIdUart3RxParityErr = 35, /**< uart3_rx_parity_err */
1025 kTopEarlgreyPlicIrqIdUart3TxEmpty = 36, /**< uart3_tx_empty */
1026 kTopEarlgreyPlicIrqIdGpioGpio0 = 37, /**< gpio_gpio 0 */
1027 kTopEarlgreyPlicIrqIdGpioGpio1 = 38, /**< gpio_gpio 1 */
1028 kTopEarlgreyPlicIrqIdGpioGpio2 = 39, /**< gpio_gpio 2 */
1029 kTopEarlgreyPlicIrqIdGpioGpio3 = 40, /**< gpio_gpio 3 */
1030 kTopEarlgreyPlicIrqIdGpioGpio4 = 41, /**< gpio_gpio 4 */
1031 kTopEarlgreyPlicIrqIdGpioGpio5 = 42, /**< gpio_gpio 5 */
1032 kTopEarlgreyPlicIrqIdGpioGpio6 = 43, /**< gpio_gpio 6 */
1033 kTopEarlgreyPlicIrqIdGpioGpio7 = 44, /**< gpio_gpio 7 */
1034 kTopEarlgreyPlicIrqIdGpioGpio8 = 45, /**< gpio_gpio 8 */
1035 kTopEarlgreyPlicIrqIdGpioGpio9 = 46, /**< gpio_gpio 9 */
1036 kTopEarlgreyPlicIrqIdGpioGpio10 = 47, /**< gpio_gpio 10 */
1037 kTopEarlgreyPlicIrqIdGpioGpio11 = 48, /**< gpio_gpio 11 */
1038 kTopEarlgreyPlicIrqIdGpioGpio12 = 49, /**< gpio_gpio 12 */
1039 kTopEarlgreyPlicIrqIdGpioGpio13 = 50, /**< gpio_gpio 13 */
1040 kTopEarlgreyPlicIrqIdGpioGpio14 = 51, /**< gpio_gpio 14 */
1041 kTopEarlgreyPlicIrqIdGpioGpio15 = 52, /**< gpio_gpio 15 */
1042 kTopEarlgreyPlicIrqIdGpioGpio16 = 53, /**< gpio_gpio 16 */
1043 kTopEarlgreyPlicIrqIdGpioGpio17 = 54, /**< gpio_gpio 17 */
1044 kTopEarlgreyPlicIrqIdGpioGpio18 = 55, /**< gpio_gpio 18 */
1045 kTopEarlgreyPlicIrqIdGpioGpio19 = 56, /**< gpio_gpio 19 */
1046 kTopEarlgreyPlicIrqIdGpioGpio20 = 57, /**< gpio_gpio 20 */
1047 kTopEarlgreyPlicIrqIdGpioGpio21 = 58, /**< gpio_gpio 21 */
1048 kTopEarlgreyPlicIrqIdGpioGpio22 = 59, /**< gpio_gpio 22 */
1049 kTopEarlgreyPlicIrqIdGpioGpio23 = 60, /**< gpio_gpio 23 */
1050 kTopEarlgreyPlicIrqIdGpioGpio24 = 61, /**< gpio_gpio 24 */
1051 kTopEarlgreyPlicIrqIdGpioGpio25 = 62, /**< gpio_gpio 25 */
1052 kTopEarlgreyPlicIrqIdGpioGpio26 = 63, /**< gpio_gpio 26 */
1053 kTopEarlgreyPlicIrqIdGpioGpio27 = 64, /**< gpio_gpio 27 */
1054 kTopEarlgreyPlicIrqIdGpioGpio28 = 65, /**< gpio_gpio 28 */
1055 kTopEarlgreyPlicIrqIdGpioGpio29 = 66, /**< gpio_gpio 29 */
1056 kTopEarlgreyPlicIrqIdGpioGpio30 = 67, /**< gpio_gpio 30 */
1057 kTopEarlgreyPlicIrqIdGpioGpio31 = 68, /**< gpio_gpio 31 */
1058 kTopEarlgreyPlicIrqIdSpiDeviceUploadCmdfifoNotEmpty = 69, /**< spi_device_upload_cmdfifo_not_empty */
1059 kTopEarlgreyPlicIrqIdSpiDeviceUploadPayloadNotEmpty = 70, /**< spi_device_upload_payload_not_empty */
1060 kTopEarlgreyPlicIrqIdSpiDeviceUploadPayloadOverflow = 71, /**< spi_device_upload_payload_overflow */
1061 kTopEarlgreyPlicIrqIdSpiDeviceReadbufWatermark = 72, /**< spi_device_readbuf_watermark */
1062 kTopEarlgreyPlicIrqIdSpiDeviceReadbufFlip = 73, /**< spi_device_readbuf_flip */
1063 kTopEarlgreyPlicIrqIdSpiDeviceTpmHeaderNotEmpty = 74, /**< spi_device_tpm_header_not_empty */
1064 kTopEarlgreyPlicIrqIdSpiDeviceTpmRdfifoCmdEnd = 75, /**< spi_device_tpm_rdfifo_cmd_end */
1065 kTopEarlgreyPlicIrqIdSpiDeviceTpmRdfifoDrop = 76, /**< spi_device_tpm_rdfifo_drop */
1066 kTopEarlgreyPlicIrqIdI2c0FmtThreshold = 77, /**< i2c0_fmt_threshold */
1067 kTopEarlgreyPlicIrqIdI2c0RxThreshold = 78, /**< i2c0_rx_threshold */
1068 kTopEarlgreyPlicIrqIdI2c0AcqThreshold = 79, /**< i2c0_acq_threshold */
1069 kTopEarlgreyPlicIrqIdI2c0RxOverflow = 80, /**< i2c0_rx_overflow */
1070 kTopEarlgreyPlicIrqIdI2c0ControllerHalt = 81, /**< i2c0_controller_halt */
1071 kTopEarlgreyPlicIrqIdI2c0SclInterference = 82, /**< i2c0_scl_interference */
1072 kTopEarlgreyPlicIrqIdI2c0SdaInterference = 83, /**< i2c0_sda_interference */
1073 kTopEarlgreyPlicIrqIdI2c0StretchTimeout = 84, /**< i2c0_stretch_timeout */
1074 kTopEarlgreyPlicIrqIdI2c0SdaUnstable = 85, /**< i2c0_sda_unstable */
1075 kTopEarlgreyPlicIrqIdI2c0CmdComplete = 86, /**< i2c0_cmd_complete */
1076 kTopEarlgreyPlicIrqIdI2c0TxStretch = 87, /**< i2c0_tx_stretch */
1077 kTopEarlgreyPlicIrqIdI2c0TxThreshold = 88, /**< i2c0_tx_threshold */
1078 kTopEarlgreyPlicIrqIdI2c0AcqStretch = 89, /**< i2c0_acq_stretch */
1079 kTopEarlgreyPlicIrqIdI2c0UnexpStop = 90, /**< i2c0_unexp_stop */
1080 kTopEarlgreyPlicIrqIdI2c0HostTimeout = 91, /**< i2c0_host_timeout */
1081 kTopEarlgreyPlicIrqIdI2c1FmtThreshold = 92, /**< i2c1_fmt_threshold */
1082 kTopEarlgreyPlicIrqIdI2c1RxThreshold = 93, /**< i2c1_rx_threshold */
1083 kTopEarlgreyPlicIrqIdI2c1AcqThreshold = 94, /**< i2c1_acq_threshold */
1084 kTopEarlgreyPlicIrqIdI2c1RxOverflow = 95, /**< i2c1_rx_overflow */
1085 kTopEarlgreyPlicIrqIdI2c1ControllerHalt = 96, /**< i2c1_controller_halt */
1086 kTopEarlgreyPlicIrqIdI2c1SclInterference = 97, /**< i2c1_scl_interference */
1087 kTopEarlgreyPlicIrqIdI2c1SdaInterference = 98, /**< i2c1_sda_interference */
1088 kTopEarlgreyPlicIrqIdI2c1StretchTimeout = 99, /**< i2c1_stretch_timeout */
1089 kTopEarlgreyPlicIrqIdI2c1SdaUnstable = 100, /**< i2c1_sda_unstable */
1090 kTopEarlgreyPlicIrqIdI2c1CmdComplete = 101, /**< i2c1_cmd_complete */
1091 kTopEarlgreyPlicIrqIdI2c1TxStretch = 102, /**< i2c1_tx_stretch */
1092 kTopEarlgreyPlicIrqIdI2c1TxThreshold = 103, /**< i2c1_tx_threshold */
1093 kTopEarlgreyPlicIrqIdI2c1AcqStretch = 104, /**< i2c1_acq_stretch */
1094 kTopEarlgreyPlicIrqIdI2c1UnexpStop = 105, /**< i2c1_unexp_stop */
1095 kTopEarlgreyPlicIrqIdI2c1HostTimeout = 106, /**< i2c1_host_timeout */
1096 kTopEarlgreyPlicIrqIdI2c2FmtThreshold = 107, /**< i2c2_fmt_threshold */
1097 kTopEarlgreyPlicIrqIdI2c2RxThreshold = 108, /**< i2c2_rx_threshold */
1098 kTopEarlgreyPlicIrqIdI2c2AcqThreshold = 109, /**< i2c2_acq_threshold */
1099 kTopEarlgreyPlicIrqIdI2c2RxOverflow = 110, /**< i2c2_rx_overflow */
1100 kTopEarlgreyPlicIrqIdI2c2ControllerHalt = 111, /**< i2c2_controller_halt */
1101 kTopEarlgreyPlicIrqIdI2c2SclInterference = 112, /**< i2c2_scl_interference */
1102 kTopEarlgreyPlicIrqIdI2c2SdaInterference = 113, /**< i2c2_sda_interference */
1103 kTopEarlgreyPlicIrqIdI2c2StretchTimeout = 114, /**< i2c2_stretch_timeout */
1104 kTopEarlgreyPlicIrqIdI2c2SdaUnstable = 115, /**< i2c2_sda_unstable */
1105 kTopEarlgreyPlicIrqIdI2c2CmdComplete = 116, /**< i2c2_cmd_complete */
1106 kTopEarlgreyPlicIrqIdI2c2TxStretch = 117, /**< i2c2_tx_stretch */
1107 kTopEarlgreyPlicIrqIdI2c2TxThreshold = 118, /**< i2c2_tx_threshold */
1108 kTopEarlgreyPlicIrqIdI2c2AcqStretch = 119, /**< i2c2_acq_stretch */
1109 kTopEarlgreyPlicIrqIdI2c2UnexpStop = 120, /**< i2c2_unexp_stop */
1110 kTopEarlgreyPlicIrqIdI2c2HostTimeout = 121, /**< i2c2_host_timeout */
1111 kTopEarlgreyPlicIrqIdRvTimerTimerExpiredHart0Timer0 = 122, /**< rv_timer_timer_expired_hart0_timer0 */
1112 kTopEarlgreyPlicIrqIdOtpCtrlOtpOperationDone = 123, /**< otp_ctrl_otp_operation_done */
1113 kTopEarlgreyPlicIrqIdOtpCtrlOtpError = 124, /**< otp_ctrl_otp_error */
1114 kTopEarlgreyPlicIrqIdAlertHandlerClassa = 125, /**< alert_handler_classa */
1115 kTopEarlgreyPlicIrqIdAlertHandlerClassb = 126, /**< alert_handler_classb */
1116 kTopEarlgreyPlicIrqIdAlertHandlerClassc = 127, /**< alert_handler_classc */
1117 kTopEarlgreyPlicIrqIdAlertHandlerClassd = 128, /**< alert_handler_classd */
1118 kTopEarlgreyPlicIrqIdSpiHost0Error = 129, /**< spi_host0_error */
1119 kTopEarlgreyPlicIrqIdSpiHost0SpiEvent = 130, /**< spi_host0_spi_event */
1120 kTopEarlgreyPlicIrqIdSpiHost1Error = 131, /**< spi_host1_error */
1121 kTopEarlgreyPlicIrqIdSpiHost1SpiEvent = 132, /**< spi_host1_spi_event */
1122 kTopEarlgreyPlicIrqIdUsbdevPktReceived = 133, /**< usbdev_pkt_received */
1123 kTopEarlgreyPlicIrqIdUsbdevPktSent = 134, /**< usbdev_pkt_sent */
1124 kTopEarlgreyPlicIrqIdUsbdevDisconnected = 135, /**< usbdev_disconnected */
1125 kTopEarlgreyPlicIrqIdUsbdevHostLost = 136, /**< usbdev_host_lost */
1126 kTopEarlgreyPlicIrqIdUsbdevLinkReset = 137, /**< usbdev_link_reset */
1127 kTopEarlgreyPlicIrqIdUsbdevLinkSuspend = 138, /**< usbdev_link_suspend */
1128 kTopEarlgreyPlicIrqIdUsbdevLinkResume = 139, /**< usbdev_link_resume */
1129 kTopEarlgreyPlicIrqIdUsbdevAvOutEmpty = 140, /**< usbdev_av_out_empty */
1130 kTopEarlgreyPlicIrqIdUsbdevRxFull = 141, /**< usbdev_rx_full */
1131 kTopEarlgreyPlicIrqIdUsbdevAvOverflow = 142, /**< usbdev_av_overflow */
1132 kTopEarlgreyPlicIrqIdUsbdevLinkInErr = 143, /**< usbdev_link_in_err */
1133 kTopEarlgreyPlicIrqIdUsbdevRxCrcErr = 144, /**< usbdev_rx_crc_err */
1134 kTopEarlgreyPlicIrqIdUsbdevRxPidErr = 145, /**< usbdev_rx_pid_err */
1135 kTopEarlgreyPlicIrqIdUsbdevRxBitstuffErr = 146, /**< usbdev_rx_bitstuff_err */
1136 kTopEarlgreyPlicIrqIdUsbdevFrame = 147, /**< usbdev_frame */
1137 kTopEarlgreyPlicIrqIdUsbdevPowered = 148, /**< usbdev_powered */
1138 kTopEarlgreyPlicIrqIdUsbdevLinkOutErr = 149, /**< usbdev_link_out_err */
1139 kTopEarlgreyPlicIrqIdUsbdevAvSetupEmpty = 150, /**< usbdev_av_setup_empty */
1140 kTopEarlgreyPlicIrqIdPwrmgrWakeup = 151, /**< pwrmgr_wakeup */
1141 kTopEarlgreyPlicIrqIdSysrstCtrlEventDetected = 152, /**< sysrst_ctrl_event_detected */
1142 kTopEarlgreyPlicIrqIdAdcCtrlMatchPending = 153, /**< adc_ctrl_match_pending */
1143 kTopEarlgreyPlicIrqIdAonTimerWkupTimerExpired = 154, /**< aon_timer_wkup_timer_expired */
1144 kTopEarlgreyPlicIrqIdAonTimerWdogTimerBark = 155, /**< aon_timer_wdog_timer_bark */
1145 kTopEarlgreyPlicIrqIdSensorCtrlIoStatusChange = 156, /**< sensor_ctrl_io_status_change */
1146 kTopEarlgreyPlicIrqIdSensorCtrlInitStatusChange = 157, /**< sensor_ctrl_init_status_change */
1147 kTopEarlgreyPlicIrqIdFlashCtrlProgEmpty = 158, /**< flash_ctrl_prog_empty */
1148 kTopEarlgreyPlicIrqIdFlashCtrlProgLvl = 159, /**< flash_ctrl_prog_lvl */
1149 kTopEarlgreyPlicIrqIdFlashCtrlRdFull = 160, /**< flash_ctrl_rd_full */
1150 kTopEarlgreyPlicIrqIdFlashCtrlRdLvl = 161, /**< flash_ctrl_rd_lvl */
1151 kTopEarlgreyPlicIrqIdFlashCtrlOpDone = 162, /**< flash_ctrl_op_done */
1152 kTopEarlgreyPlicIrqIdFlashCtrlCorrErr = 163, /**< flash_ctrl_corr_err */
1153 kTopEarlgreyPlicIrqIdRramCtrlWrEmpty = 164, /**< rram_ctrl_wr_empty */
1154 kTopEarlgreyPlicIrqIdRramCtrlWrLvl = 165, /**< rram_ctrl_wr_lvl */
1155 kTopEarlgreyPlicIrqIdRramCtrlRdFull = 166, /**< rram_ctrl_rd_full */
1156 kTopEarlgreyPlicIrqIdRramCtrlRdLvl = 167, /**< rram_ctrl_rd_lvl */
1157 kTopEarlgreyPlicIrqIdRramCtrlOpDone = 168, /**< rram_ctrl_op_done */
1158 kTopEarlgreyPlicIrqIdRramCtrlCorrErr = 169, /**< rram_ctrl_corr_err */
1159 kTopEarlgreyPlicIrqIdHmacHmacDone = 170, /**< hmac_hmac_done */
1160 kTopEarlgreyPlicIrqIdHmacFifoEmpty = 171, /**< hmac_fifo_empty */
1161 kTopEarlgreyPlicIrqIdHmacHmacErr = 172, /**< hmac_hmac_err */
1162 kTopEarlgreyPlicIrqIdKmacKmacDone = 173, /**< kmac_kmac_done */
1163 kTopEarlgreyPlicIrqIdKmacFifoEmpty = 174, /**< kmac_fifo_empty */
1164 kTopEarlgreyPlicIrqIdKmacKmacErr = 175, /**< kmac_kmac_err */
1165 kTopEarlgreyPlicIrqIdOtbnDone = 176, /**< otbn_done */
1166 kTopEarlgreyPlicIrqIdKeymgrOpDone = 177, /**< keymgr_op_done */
1167 kTopEarlgreyPlicIrqIdCsrngCsCmdReqDone = 178, /**< csrng_cs_cmd_req_done */
1168 kTopEarlgreyPlicIrqIdCsrngCsEntropyReq = 179, /**< csrng_cs_entropy_req */
1169 kTopEarlgreyPlicIrqIdCsrngCsHwInstExc = 180, /**< csrng_cs_hw_inst_exc */
1170 kTopEarlgreyPlicIrqIdCsrngCsFatalErr = 181, /**< csrng_cs_fatal_err */
1171 kTopEarlgreyPlicIrqIdEntropySrcEsEntropyValid = 182, /**< entropy_src_es_entropy_valid */
1172 kTopEarlgreyPlicIrqIdEntropySrcEsHealthTestFailed = 183, /**< entropy_src_es_health_test_failed */
1173 kTopEarlgreyPlicIrqIdEntropySrcEsObserveFifoReady = 184, /**< entropy_src_es_observe_fifo_ready */
1174 kTopEarlgreyPlicIrqIdEntropySrcEsFatalErr = 185, /**< entropy_src_es_fatal_err */
1175 kTopEarlgreyPlicIrqIdEdn0EdnCmdReqDone = 186, /**< edn0_edn_cmd_req_done */
1176 kTopEarlgreyPlicIrqIdEdn0EdnFatalErr = 187, /**< edn0_edn_fatal_err */
1177 kTopEarlgreyPlicIrqIdEdn1EdnCmdReqDone = 188, /**< edn1_edn_cmd_req_done */
1178 kTopEarlgreyPlicIrqIdEdn1EdnFatalErr = 189, /**< edn1_edn_fatal_err */
1179 kTopEarlgreyPlicIrqIdLast = 189, /**< \internal The Last Valid Interrupt ID. */
1181
1182/**
1183 * PLIC Interrupt Source to Peripheral Map
1184 *
1185 * This array is a mapping from `top_earlgrey_plic_irq_id_t` to
1186 * `top_earlgrey_plic_peripheral_t`.
1187 */
1189 top_earlgrey_plic_interrupt_for_peripheral[190];
1190
1191/**
1192 * PLIC Interrupt Target.
1193 *
1194 * Enumeration used to determine which set of IE, CC, threshold registers to
1195 * access for a given interrupt target.
1196 */
1198 kTopEarlgreyPlicTargetIbex0 = 0, /**< Ibex Core 0 */
1199 kTopEarlgreyPlicTargetLast = 0, /**< \internal Final PLIC target */
1201
1202
1203/**
1204 * Alert Handler Source Peripheral.
1205 *
1206 * Enumeration used to determine which peripheral asserted the corresponding
1207 * alert.
1208 */
1210 kTopEarlgreyAlertPeripheralExternal = 0, /**< External Peripheral */
1234 kTopEarlgreyAlertPeripheralSramCtrlRet = 24, /**< sram_ctrl_ret */
1248 kTopEarlgreyAlertPeripheralSramCtrlMain = 38, /**< sram_ctrl_main */
1249 kTopEarlgreyAlertPeripheralSramCtrlSec = 39, /**< sram_ctrl_sec */
1251 kTopEarlgreyAlertPeripheralRvCoreIbex = 41, /**< rv_core_ibex */
1252 kTopEarlgreyAlertPeripheralLast = 41, /**< \internal Final Alert peripheral */
1254
1255/**
1256 * Alert Handler Alert Source.
1257 *
1258 * Enumeration of all Alert Handler Alert Sources. The alert sources belonging to
1259 * the same peripheral are guaranteed to be consecutive.
1260 */
1262 kTopEarlgreyAlertIdUart0FatalFault = 0, /**< uart0_fatal_fault */
1263 kTopEarlgreyAlertIdUart1FatalFault = 1, /**< uart1_fatal_fault */
1264 kTopEarlgreyAlertIdUart2FatalFault = 2, /**< uart2_fatal_fault */
1265 kTopEarlgreyAlertIdUart3FatalFault = 3, /**< uart3_fatal_fault */
1266 kTopEarlgreyAlertIdGpioFatalFault = 4, /**< gpio_fatal_fault */
1267 kTopEarlgreyAlertIdSpiDeviceFatalFault = 5, /**< spi_device_fatal_fault */
1268 kTopEarlgreyAlertIdI2c0FatalFault = 6, /**< i2c0_fatal_fault */
1269 kTopEarlgreyAlertIdI2c1FatalFault = 7, /**< i2c1_fatal_fault */
1270 kTopEarlgreyAlertIdI2c2FatalFault = 8, /**< i2c2_fatal_fault */
1271 kTopEarlgreyAlertIdRvTimerFatalFault = 9, /**< rv_timer_fatal_fault */
1272 kTopEarlgreyAlertIdOtpCtrlFatalMacroError = 10, /**< otp_ctrl_fatal_macro_error */
1273 kTopEarlgreyAlertIdOtpCtrlFatalCheckError = 11, /**< otp_ctrl_fatal_check_error */
1274 kTopEarlgreyAlertIdOtpCtrlFatalBusIntegError = 12, /**< otp_ctrl_fatal_bus_integ_error */
1275 kTopEarlgreyAlertIdOtpCtrlFatalPrimOtpAlert = 13, /**< otp_ctrl_fatal_prim_otp_alert */
1276 kTopEarlgreyAlertIdOtpCtrlRecovPrimOtpAlert = 14, /**< otp_ctrl_recov_prim_otp_alert */
1277 kTopEarlgreyAlertIdLcCtrlFatalProgError = 15, /**< lc_ctrl_fatal_prog_error */
1278 kTopEarlgreyAlertIdLcCtrlFatalStateError = 16, /**< lc_ctrl_fatal_state_error */
1279 kTopEarlgreyAlertIdLcCtrlFatalBusIntegError = 17, /**< lc_ctrl_fatal_bus_integ_error */
1280 kTopEarlgreyAlertIdSpiHost0FatalFault = 18, /**< spi_host0_fatal_fault */
1281 kTopEarlgreyAlertIdSpiHost1FatalFault = 19, /**< spi_host1_fatal_fault */
1282 kTopEarlgreyAlertIdUsbdevFatalFault = 20, /**< usbdev_fatal_fault */
1283 kTopEarlgreyAlertIdPwrmgrFatalFault = 21, /**< pwrmgr_fatal_fault */
1284 kTopEarlgreyAlertIdRstmgrFatalFault = 22, /**< rstmgr_fatal_fault */
1285 kTopEarlgreyAlertIdRstmgrFatalCnstyFault = 23, /**< rstmgr_fatal_cnsty_fault */
1286 kTopEarlgreyAlertIdClkmgrRecovFault = 24, /**< clkmgr_recov_fault */
1287 kTopEarlgreyAlertIdClkmgrFatalFault = 25, /**< clkmgr_fatal_fault */
1288 kTopEarlgreyAlertIdSysrstCtrlFatalFault = 26, /**< sysrst_ctrl_fatal_fault */
1289 kTopEarlgreyAlertIdAdcCtrlFatalFault = 27, /**< adc_ctrl_fatal_fault */
1290 kTopEarlgreyAlertIdPinmuxFatalFault = 28, /**< pinmux_fatal_fault */
1291 kTopEarlgreyAlertIdAonTimerFatalFault = 29, /**< aon_timer_fatal_fault */
1292 kTopEarlgreyAlertIdSensorCtrlRecovAlert = 30, /**< sensor_ctrl_recov_alert */
1293 kTopEarlgreyAlertIdSensorCtrlFatalAlert = 31, /**< sensor_ctrl_fatal_alert */
1294 kTopEarlgreyAlertIdSramCtrlRetFatalError = 32, /**< sram_ctrl_ret_fatal_error */
1295 kTopEarlgreyAlertIdFlashCtrlRecovErr = 33, /**< flash_ctrl_recov_err */
1296 kTopEarlgreyAlertIdFlashCtrlFatalStdErr = 34, /**< flash_ctrl_fatal_std_err */
1297 kTopEarlgreyAlertIdFlashCtrlFatalErr = 35, /**< flash_ctrl_fatal_err */
1298 kTopEarlgreyAlertIdFlashCtrlFatalPrimFlashAlert = 36, /**< flash_ctrl_fatal_prim_flash_alert */
1299 kTopEarlgreyAlertIdFlashCtrlRecovPrimFlashAlert = 37, /**< flash_ctrl_recov_prim_flash_alert */
1300 kTopEarlgreyAlertIdRramCtrlRecovErr = 38, /**< rram_ctrl_recov_err */
1301 kTopEarlgreyAlertIdRramCtrlFatalStdErr = 39, /**< rram_ctrl_fatal_std_err */
1302 kTopEarlgreyAlertIdRramCtrlFatalErr = 40, /**< rram_ctrl_fatal_err */
1303 kTopEarlgreyAlertIdRramCtrlFatalMacroErr = 41, /**< rram_ctrl_fatal_macro_err */
1304 kTopEarlgreyAlertIdRramCtrlRecovMacroErr = 42, /**< rram_ctrl_recov_macro_err */
1305 kTopEarlgreyAlertIdRvDmFatalFault = 43, /**< rv_dm_fatal_fault */
1306 kTopEarlgreyAlertIdRvPlicFatalFault = 44, /**< rv_plic_fatal_fault */
1307 kTopEarlgreyAlertIdAesRecovCtrlUpdateErr = 45, /**< aes_recov_ctrl_update_err */
1308 kTopEarlgreyAlertIdAesFatalFault = 46, /**< aes_fatal_fault */
1309 kTopEarlgreyAlertIdHmacFatalFault = 47, /**< hmac_fatal_fault */
1310 kTopEarlgreyAlertIdKmacRecovOperationErr = 48, /**< kmac_recov_operation_err */
1311 kTopEarlgreyAlertIdKmacFatalFaultErr = 49, /**< kmac_fatal_fault_err */
1312 kTopEarlgreyAlertIdOtbnFatal = 50, /**< otbn_fatal */
1313 kTopEarlgreyAlertIdOtbnRecov = 51, /**< otbn_recov */
1314 kTopEarlgreyAlertIdKeymgrRecovOperationErr = 52, /**< keymgr_recov_operation_err */
1315 kTopEarlgreyAlertIdKeymgrFatalFaultErr = 53, /**< keymgr_fatal_fault_err */
1316 kTopEarlgreyAlertIdCsrngRecovAlert = 54, /**< csrng_recov_alert */
1317 kTopEarlgreyAlertIdCsrngFatalAlert = 55, /**< csrng_fatal_alert */
1318 kTopEarlgreyAlertIdEntropySrcRecovAlert = 56, /**< entropy_src_recov_alert */
1319 kTopEarlgreyAlertIdEntropySrcFatalAlert = 57, /**< entropy_src_fatal_alert */
1320 kTopEarlgreyAlertIdEdn0RecovAlert = 58, /**< edn0_recov_alert */
1321 kTopEarlgreyAlertIdEdn0FatalAlert = 59, /**< edn0_fatal_alert */
1322 kTopEarlgreyAlertIdEdn1RecovAlert = 60, /**< edn1_recov_alert */
1323 kTopEarlgreyAlertIdEdn1FatalAlert = 61, /**< edn1_fatal_alert */
1324 kTopEarlgreyAlertIdSramCtrlMainFatalError = 62, /**< sram_ctrl_main_fatal_error */
1325 kTopEarlgreyAlertIdSramCtrlSecFatalError = 63, /**< sram_ctrl_sec_fatal_error */
1326 kTopEarlgreyAlertIdRomCtrlFatal = 64, /**< rom_ctrl_fatal */
1327 kTopEarlgreyAlertIdRvCoreIbexFatalSwErr = 65, /**< rv_core_ibex_fatal_sw_err */
1328 kTopEarlgreyAlertIdRvCoreIbexRecovSwErr = 66, /**< rv_core_ibex_recov_sw_err */
1329 kTopEarlgreyAlertIdRvCoreIbexFatalHwErr = 67, /**< rv_core_ibex_fatal_hw_err */
1330 kTopEarlgreyAlertIdRvCoreIbexRecovHwErr = 68, /**< rv_core_ibex_recov_hw_err */
1331 kTopEarlgreyAlertIdLast = 68, /**< \internal The Last Valid Alert ID. */
1333
1334/**
1335 * Alert Handler Alert Source to Peripheral Map
1336 *
1337 * This array is a mapping from `top_earlgrey_alert_id_t` to
1338 * `top_earlgrey_alert_peripheral_t`.
1339 */
1341 top_earlgrey_alert_for_peripheral[69];
1342
1343#define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2
1344
1345// PERIPH_INSEL ranges from 0 to NUM_MIO_PADS + 2 -1}
1346// 0 and 1 are tied to value 0 and 1
1347#define NUM_MIO_PADS 47
1348#define NUM_DIO_PADS 16
1349
1350#define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3
1351
1352/**
1353 * Pinmux Peripheral Input.
1354 */
1356 kTopEarlgreyPinmuxPeripheralInGpioGpio0 = 0, /**< Peripheral Input 0 */
1357 kTopEarlgreyPinmuxPeripheralInGpioGpio1 = 1, /**< Peripheral Input 1 */
1358 kTopEarlgreyPinmuxPeripheralInGpioGpio2 = 2, /**< Peripheral Input 2 */
1359 kTopEarlgreyPinmuxPeripheralInGpioGpio3 = 3, /**< Peripheral Input 3 */
1360 kTopEarlgreyPinmuxPeripheralInGpioGpio4 = 4, /**< Peripheral Input 4 */
1361 kTopEarlgreyPinmuxPeripheralInGpioGpio5 = 5, /**< Peripheral Input 5 */
1362 kTopEarlgreyPinmuxPeripheralInGpioGpio6 = 6, /**< Peripheral Input 6 */
1363 kTopEarlgreyPinmuxPeripheralInGpioGpio7 = 7, /**< Peripheral Input 7 */
1364 kTopEarlgreyPinmuxPeripheralInGpioGpio8 = 8, /**< Peripheral Input 8 */
1365 kTopEarlgreyPinmuxPeripheralInGpioGpio9 = 9, /**< Peripheral Input 9 */
1366 kTopEarlgreyPinmuxPeripheralInGpioGpio10 = 10, /**< Peripheral Input 10 */
1367 kTopEarlgreyPinmuxPeripheralInGpioGpio11 = 11, /**< Peripheral Input 11 */
1368 kTopEarlgreyPinmuxPeripheralInGpioGpio12 = 12, /**< Peripheral Input 12 */
1369 kTopEarlgreyPinmuxPeripheralInGpioGpio13 = 13, /**< Peripheral Input 13 */
1370 kTopEarlgreyPinmuxPeripheralInGpioGpio14 = 14, /**< Peripheral Input 14 */
1371 kTopEarlgreyPinmuxPeripheralInGpioGpio15 = 15, /**< Peripheral Input 15 */
1372 kTopEarlgreyPinmuxPeripheralInGpioGpio16 = 16, /**< Peripheral Input 16 */
1373 kTopEarlgreyPinmuxPeripheralInGpioGpio17 = 17, /**< Peripheral Input 17 */
1374 kTopEarlgreyPinmuxPeripheralInGpioGpio18 = 18, /**< Peripheral Input 18 */
1375 kTopEarlgreyPinmuxPeripheralInGpioGpio19 = 19, /**< Peripheral Input 19 */
1376 kTopEarlgreyPinmuxPeripheralInGpioGpio20 = 20, /**< Peripheral Input 20 */
1377 kTopEarlgreyPinmuxPeripheralInGpioGpio21 = 21, /**< Peripheral Input 21 */
1378 kTopEarlgreyPinmuxPeripheralInGpioGpio22 = 22, /**< Peripheral Input 22 */
1379 kTopEarlgreyPinmuxPeripheralInGpioGpio23 = 23, /**< Peripheral Input 23 */
1380 kTopEarlgreyPinmuxPeripheralInGpioGpio24 = 24, /**< Peripheral Input 24 */
1381 kTopEarlgreyPinmuxPeripheralInGpioGpio25 = 25, /**< Peripheral Input 25 */
1382 kTopEarlgreyPinmuxPeripheralInGpioGpio26 = 26, /**< Peripheral Input 26 */
1383 kTopEarlgreyPinmuxPeripheralInGpioGpio27 = 27, /**< Peripheral Input 27 */
1384 kTopEarlgreyPinmuxPeripheralInGpioGpio28 = 28, /**< Peripheral Input 28 */
1385 kTopEarlgreyPinmuxPeripheralInGpioGpio29 = 29, /**< Peripheral Input 29 */
1386 kTopEarlgreyPinmuxPeripheralInGpioGpio30 = 30, /**< Peripheral Input 30 */
1387 kTopEarlgreyPinmuxPeripheralInGpioGpio31 = 31, /**< Peripheral Input 31 */
1388 kTopEarlgreyPinmuxPeripheralInI2c0Sda = 32, /**< Peripheral Input 32 */
1389 kTopEarlgreyPinmuxPeripheralInI2c0Scl = 33, /**< Peripheral Input 33 */
1390 kTopEarlgreyPinmuxPeripheralInI2c1Sda = 34, /**< Peripheral Input 34 */
1391 kTopEarlgreyPinmuxPeripheralInI2c1Scl = 35, /**< Peripheral Input 35 */
1392 kTopEarlgreyPinmuxPeripheralInI2c2Sda = 36, /**< Peripheral Input 36 */
1393 kTopEarlgreyPinmuxPeripheralInI2c2Scl = 37, /**< Peripheral Input 37 */
1394 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd0 = 38, /**< Peripheral Input 38 */
1395 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd1 = 39, /**< Peripheral Input 39 */
1396 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd2 = 40, /**< Peripheral Input 40 */
1397 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd3 = 41, /**< Peripheral Input 41 */
1398 kTopEarlgreyPinmuxPeripheralInUart0Rx = 42, /**< Peripheral Input 42 */
1399 kTopEarlgreyPinmuxPeripheralInUart1Rx = 43, /**< Peripheral Input 43 */
1400 kTopEarlgreyPinmuxPeripheralInUart2Rx = 44, /**< Peripheral Input 44 */
1401 kTopEarlgreyPinmuxPeripheralInUart3Rx = 45, /**< Peripheral Input 45 */
1402 kTopEarlgreyPinmuxPeripheralInSpiDeviceTpmCsb = 46, /**< Peripheral Input 46 */
1403 kTopEarlgreyPinmuxPeripheralInFlashCtrlTck = 47, /**< Peripheral Input 47 */
1404 kTopEarlgreyPinmuxPeripheralInFlashCtrlTms = 48, /**< Peripheral Input 48 */
1405 kTopEarlgreyPinmuxPeripheralInFlashCtrlTdi = 49, /**< Peripheral Input 49 */
1406 kTopEarlgreyPinmuxPeripheralInRramMacroTck = 50, /**< Peripheral Input 50 */
1407 kTopEarlgreyPinmuxPeripheralInRramMacroTms = 51, /**< Peripheral Input 51 */
1408 kTopEarlgreyPinmuxPeripheralInRramMacroTdi = 52, /**< Peripheral Input 52 */
1410 kTopEarlgreyPinmuxPeripheralInSysrstCtrlKey0In = 54, /**< Peripheral Input 54 */
1411 kTopEarlgreyPinmuxPeripheralInSysrstCtrlKey1In = 55, /**< Peripheral Input 55 */
1412 kTopEarlgreyPinmuxPeripheralInSysrstCtrlKey2In = 56, /**< Peripheral Input 56 */
1413 kTopEarlgreyPinmuxPeripheralInSysrstCtrlPwrbIn = 57, /**< Peripheral Input 57 */
1414 kTopEarlgreyPinmuxPeripheralInSysrstCtrlLidOpen = 58, /**< Peripheral Input 58 */
1415 kTopEarlgreyPinmuxPeripheralInUsbdevSense = 59, /**< Peripheral Input 59 */
1416 kTopEarlgreyPinmuxPeripheralInLast = 59, /**< \internal Last valid peripheral input */
1418
1419/**
1420 * Pinmux MIO Input Selector.
1421 */
1423 kTopEarlgreyPinmuxInselConstantZero = 0, /**< Tie constantly to zero */
1424 kTopEarlgreyPinmuxInselConstantOne = 1, /**< Tie constantly to one */
1425 kTopEarlgreyPinmuxInselIoa0 = 2, /**< MIO Pad 0 */
1426 kTopEarlgreyPinmuxInselIoa1 = 3, /**< MIO Pad 1 */
1427 kTopEarlgreyPinmuxInselIoa2 = 4, /**< MIO Pad 2 */
1428 kTopEarlgreyPinmuxInselIoa3 = 5, /**< MIO Pad 3 */
1429 kTopEarlgreyPinmuxInselIoa4 = 6, /**< MIO Pad 4 */
1430 kTopEarlgreyPinmuxInselIoa5 = 7, /**< MIO Pad 5 */
1431 kTopEarlgreyPinmuxInselIoa6 = 8, /**< MIO Pad 6 */
1432 kTopEarlgreyPinmuxInselIoa7 = 9, /**< MIO Pad 7 */
1433 kTopEarlgreyPinmuxInselIoa8 = 10, /**< MIO Pad 8 */
1434 kTopEarlgreyPinmuxInselIob0 = 11, /**< MIO Pad 9 */
1435 kTopEarlgreyPinmuxInselIob1 = 12, /**< MIO Pad 10 */
1436 kTopEarlgreyPinmuxInselIob2 = 13, /**< MIO Pad 11 */
1437 kTopEarlgreyPinmuxInselIob3 = 14, /**< MIO Pad 12 */
1438 kTopEarlgreyPinmuxInselIob4 = 15, /**< MIO Pad 13 */
1439 kTopEarlgreyPinmuxInselIob5 = 16, /**< MIO Pad 14 */
1440 kTopEarlgreyPinmuxInselIob6 = 17, /**< MIO Pad 15 */
1441 kTopEarlgreyPinmuxInselIob7 = 18, /**< MIO Pad 16 */
1442 kTopEarlgreyPinmuxInselIob8 = 19, /**< MIO Pad 17 */
1443 kTopEarlgreyPinmuxInselIob9 = 20, /**< MIO Pad 18 */
1444 kTopEarlgreyPinmuxInselIob10 = 21, /**< MIO Pad 19 */
1445 kTopEarlgreyPinmuxInselIob11 = 22, /**< MIO Pad 20 */
1446 kTopEarlgreyPinmuxInselIob12 = 23, /**< MIO Pad 21 */
1447 kTopEarlgreyPinmuxInselIoc0 = 24, /**< MIO Pad 22 */
1448 kTopEarlgreyPinmuxInselIoc1 = 25, /**< MIO Pad 23 */
1449 kTopEarlgreyPinmuxInselIoc2 = 26, /**< MIO Pad 24 */
1450 kTopEarlgreyPinmuxInselIoc3 = 27, /**< MIO Pad 25 */
1451 kTopEarlgreyPinmuxInselIoc4 = 28, /**< MIO Pad 26 */
1452 kTopEarlgreyPinmuxInselIoc5 = 29, /**< MIO Pad 27 */
1453 kTopEarlgreyPinmuxInselIoc6 = 30, /**< MIO Pad 28 */
1454 kTopEarlgreyPinmuxInselIoc7 = 31, /**< MIO Pad 29 */
1455 kTopEarlgreyPinmuxInselIoc8 = 32, /**< MIO Pad 30 */
1456 kTopEarlgreyPinmuxInselIoc9 = 33, /**< MIO Pad 31 */
1457 kTopEarlgreyPinmuxInselIoc10 = 34, /**< MIO Pad 32 */
1458 kTopEarlgreyPinmuxInselIoc11 = 35, /**< MIO Pad 33 */
1459 kTopEarlgreyPinmuxInselIoc12 = 36, /**< MIO Pad 34 */
1460 kTopEarlgreyPinmuxInselIor0 = 37, /**< MIO Pad 35 */
1461 kTopEarlgreyPinmuxInselIor1 = 38, /**< MIO Pad 36 */
1462 kTopEarlgreyPinmuxInselIor2 = 39, /**< MIO Pad 37 */
1463 kTopEarlgreyPinmuxInselIor3 = 40, /**< MIO Pad 38 */
1464 kTopEarlgreyPinmuxInselIor4 = 41, /**< MIO Pad 39 */
1465 kTopEarlgreyPinmuxInselIor5 = 42, /**< MIO Pad 40 */
1466 kTopEarlgreyPinmuxInselIor6 = 43, /**< MIO Pad 41 */
1467 kTopEarlgreyPinmuxInselIor7 = 44, /**< MIO Pad 42 */
1468 kTopEarlgreyPinmuxInselIor10 = 45, /**< MIO Pad 43 */
1469 kTopEarlgreyPinmuxInselIor11 = 46, /**< MIO Pad 44 */
1470 kTopEarlgreyPinmuxInselIor12 = 47, /**< MIO Pad 45 */
1471 kTopEarlgreyPinmuxInselIor13 = 48, /**< MIO Pad 46 */
1472 kTopEarlgreyPinmuxInselLast = 48, /**< \internal Last valid insel value */
1474
1475/**
1476 * Pinmux MIO Output.
1477 */
1479 kTopEarlgreyPinmuxMioOutIoa0 = 0, /**< MIO Pad 0 */
1480 kTopEarlgreyPinmuxMioOutIoa1 = 1, /**< MIO Pad 1 */
1481 kTopEarlgreyPinmuxMioOutIoa2 = 2, /**< MIO Pad 2 */
1482 kTopEarlgreyPinmuxMioOutIoa3 = 3, /**< MIO Pad 3 */
1483 kTopEarlgreyPinmuxMioOutIoa4 = 4, /**< MIO Pad 4 */
1484 kTopEarlgreyPinmuxMioOutIoa5 = 5, /**< MIO Pad 5 */
1485 kTopEarlgreyPinmuxMioOutIoa6 = 6, /**< MIO Pad 6 */
1486 kTopEarlgreyPinmuxMioOutIoa7 = 7, /**< MIO Pad 7 */
1487 kTopEarlgreyPinmuxMioOutIoa8 = 8, /**< MIO Pad 8 */
1488 kTopEarlgreyPinmuxMioOutIob0 = 9, /**< MIO Pad 9 */
1489 kTopEarlgreyPinmuxMioOutIob1 = 10, /**< MIO Pad 10 */
1490 kTopEarlgreyPinmuxMioOutIob2 = 11, /**< MIO Pad 11 */
1491 kTopEarlgreyPinmuxMioOutIob3 = 12, /**< MIO Pad 12 */
1492 kTopEarlgreyPinmuxMioOutIob4 = 13, /**< MIO Pad 13 */
1493 kTopEarlgreyPinmuxMioOutIob5 = 14, /**< MIO Pad 14 */
1494 kTopEarlgreyPinmuxMioOutIob6 = 15, /**< MIO Pad 15 */
1495 kTopEarlgreyPinmuxMioOutIob7 = 16, /**< MIO Pad 16 */
1496 kTopEarlgreyPinmuxMioOutIob8 = 17, /**< MIO Pad 17 */
1497 kTopEarlgreyPinmuxMioOutIob9 = 18, /**< MIO Pad 18 */
1498 kTopEarlgreyPinmuxMioOutIob10 = 19, /**< MIO Pad 19 */
1499 kTopEarlgreyPinmuxMioOutIob11 = 20, /**< MIO Pad 20 */
1500 kTopEarlgreyPinmuxMioOutIob12 = 21, /**< MIO Pad 21 */
1501 kTopEarlgreyPinmuxMioOutIoc0 = 22, /**< MIO Pad 22 */
1502 kTopEarlgreyPinmuxMioOutIoc1 = 23, /**< MIO Pad 23 */
1503 kTopEarlgreyPinmuxMioOutIoc2 = 24, /**< MIO Pad 24 */
1504 kTopEarlgreyPinmuxMioOutIoc3 = 25, /**< MIO Pad 25 */
1505 kTopEarlgreyPinmuxMioOutIoc4 = 26, /**< MIO Pad 26 */
1506 kTopEarlgreyPinmuxMioOutIoc5 = 27, /**< MIO Pad 27 */
1507 kTopEarlgreyPinmuxMioOutIoc6 = 28, /**< MIO Pad 28 */
1508 kTopEarlgreyPinmuxMioOutIoc7 = 29, /**< MIO Pad 29 */
1509 kTopEarlgreyPinmuxMioOutIoc8 = 30, /**< MIO Pad 30 */
1510 kTopEarlgreyPinmuxMioOutIoc9 = 31, /**< MIO Pad 31 */
1511 kTopEarlgreyPinmuxMioOutIoc10 = 32, /**< MIO Pad 32 */
1512 kTopEarlgreyPinmuxMioOutIoc11 = 33, /**< MIO Pad 33 */
1513 kTopEarlgreyPinmuxMioOutIoc12 = 34, /**< MIO Pad 34 */
1514 kTopEarlgreyPinmuxMioOutIor0 = 35, /**< MIO Pad 35 */
1515 kTopEarlgreyPinmuxMioOutIor1 = 36, /**< MIO Pad 36 */
1516 kTopEarlgreyPinmuxMioOutIor2 = 37, /**< MIO Pad 37 */
1517 kTopEarlgreyPinmuxMioOutIor3 = 38, /**< MIO Pad 38 */
1518 kTopEarlgreyPinmuxMioOutIor4 = 39, /**< MIO Pad 39 */
1519 kTopEarlgreyPinmuxMioOutIor5 = 40, /**< MIO Pad 40 */
1520 kTopEarlgreyPinmuxMioOutIor6 = 41, /**< MIO Pad 41 */
1521 kTopEarlgreyPinmuxMioOutIor7 = 42, /**< MIO Pad 42 */
1522 kTopEarlgreyPinmuxMioOutIor10 = 43, /**< MIO Pad 43 */
1523 kTopEarlgreyPinmuxMioOutIor11 = 44, /**< MIO Pad 44 */
1524 kTopEarlgreyPinmuxMioOutIor12 = 45, /**< MIO Pad 45 */
1525 kTopEarlgreyPinmuxMioOutIor13 = 46, /**< MIO Pad 46 */
1526 kTopEarlgreyPinmuxMioOutLast = 46, /**< \internal Last valid mio output */
1528
1529/**
1530 * Pinmux Peripheral Output Selector.
1531 */
1533 kTopEarlgreyPinmuxOutselConstantZero = 0, /**< Tie constantly to zero */
1534 kTopEarlgreyPinmuxOutselConstantOne = 1, /**< Tie constantly to one */
1535 kTopEarlgreyPinmuxOutselConstantHighZ = 2, /**< Tie constantly to high-Z */
1536 kTopEarlgreyPinmuxOutselGpioGpio0 = 3, /**< Peripheral Output 0 */
1537 kTopEarlgreyPinmuxOutselGpioGpio1 = 4, /**< Peripheral Output 1 */
1538 kTopEarlgreyPinmuxOutselGpioGpio2 = 5, /**< Peripheral Output 2 */
1539 kTopEarlgreyPinmuxOutselGpioGpio3 = 6, /**< Peripheral Output 3 */
1540 kTopEarlgreyPinmuxOutselGpioGpio4 = 7, /**< Peripheral Output 4 */
1541 kTopEarlgreyPinmuxOutselGpioGpio5 = 8, /**< Peripheral Output 5 */
1542 kTopEarlgreyPinmuxOutselGpioGpio6 = 9, /**< Peripheral Output 6 */
1543 kTopEarlgreyPinmuxOutselGpioGpio7 = 10, /**< Peripheral Output 7 */
1544 kTopEarlgreyPinmuxOutselGpioGpio8 = 11, /**< Peripheral Output 8 */
1545 kTopEarlgreyPinmuxOutselGpioGpio9 = 12, /**< Peripheral Output 9 */
1546 kTopEarlgreyPinmuxOutselGpioGpio10 = 13, /**< Peripheral Output 10 */
1547 kTopEarlgreyPinmuxOutselGpioGpio11 = 14, /**< Peripheral Output 11 */
1548 kTopEarlgreyPinmuxOutselGpioGpio12 = 15, /**< Peripheral Output 12 */
1549 kTopEarlgreyPinmuxOutselGpioGpio13 = 16, /**< Peripheral Output 13 */
1550 kTopEarlgreyPinmuxOutselGpioGpio14 = 17, /**< Peripheral Output 14 */
1551 kTopEarlgreyPinmuxOutselGpioGpio15 = 18, /**< Peripheral Output 15 */
1552 kTopEarlgreyPinmuxOutselGpioGpio16 = 19, /**< Peripheral Output 16 */
1553 kTopEarlgreyPinmuxOutselGpioGpio17 = 20, /**< Peripheral Output 17 */
1554 kTopEarlgreyPinmuxOutselGpioGpio18 = 21, /**< Peripheral Output 18 */
1555 kTopEarlgreyPinmuxOutselGpioGpio19 = 22, /**< Peripheral Output 19 */
1556 kTopEarlgreyPinmuxOutselGpioGpio20 = 23, /**< Peripheral Output 20 */
1557 kTopEarlgreyPinmuxOutselGpioGpio21 = 24, /**< Peripheral Output 21 */
1558 kTopEarlgreyPinmuxOutselGpioGpio22 = 25, /**< Peripheral Output 22 */
1559 kTopEarlgreyPinmuxOutselGpioGpio23 = 26, /**< Peripheral Output 23 */
1560 kTopEarlgreyPinmuxOutselGpioGpio24 = 27, /**< Peripheral Output 24 */
1561 kTopEarlgreyPinmuxOutselGpioGpio25 = 28, /**< Peripheral Output 25 */
1562 kTopEarlgreyPinmuxOutselGpioGpio26 = 29, /**< Peripheral Output 26 */
1563 kTopEarlgreyPinmuxOutselGpioGpio27 = 30, /**< Peripheral Output 27 */
1564 kTopEarlgreyPinmuxOutselGpioGpio28 = 31, /**< Peripheral Output 28 */
1565 kTopEarlgreyPinmuxOutselGpioGpio29 = 32, /**< Peripheral Output 29 */
1566 kTopEarlgreyPinmuxOutselGpioGpio30 = 33, /**< Peripheral Output 30 */
1567 kTopEarlgreyPinmuxOutselGpioGpio31 = 34, /**< Peripheral Output 31 */
1568 kTopEarlgreyPinmuxOutselI2c0Sda = 35, /**< Peripheral Output 32 */
1569 kTopEarlgreyPinmuxOutselI2c0Scl = 36, /**< Peripheral Output 33 */
1570 kTopEarlgreyPinmuxOutselI2c1Sda = 37, /**< Peripheral Output 34 */
1571 kTopEarlgreyPinmuxOutselI2c1Scl = 38, /**< Peripheral Output 35 */
1572 kTopEarlgreyPinmuxOutselI2c2Sda = 39, /**< Peripheral Output 36 */
1573 kTopEarlgreyPinmuxOutselI2c2Scl = 40, /**< Peripheral Output 37 */
1574 kTopEarlgreyPinmuxOutselSpiHost1Sd0 = 41, /**< Peripheral Output 38 */
1575 kTopEarlgreyPinmuxOutselSpiHost1Sd1 = 42, /**< Peripheral Output 39 */
1576 kTopEarlgreyPinmuxOutselSpiHost1Sd2 = 43, /**< Peripheral Output 40 */
1577 kTopEarlgreyPinmuxOutselSpiHost1Sd3 = 44, /**< Peripheral Output 41 */
1578 kTopEarlgreyPinmuxOutselUart0Tx = 45, /**< Peripheral Output 42 */
1579 kTopEarlgreyPinmuxOutselUart1Tx = 46, /**< Peripheral Output 43 */
1580 kTopEarlgreyPinmuxOutselUart2Tx = 47, /**< Peripheral Output 44 */
1581 kTopEarlgreyPinmuxOutselUart3Tx = 48, /**< Peripheral Output 45 */
1582 kTopEarlgreyPinmuxOutselSpiHost1Sck = 49, /**< Peripheral Output 46 */
1583 kTopEarlgreyPinmuxOutselSpiHost1Csb = 50, /**< Peripheral Output 47 */
1584 kTopEarlgreyPinmuxOutselFlashCtrlTdo = 51, /**< Peripheral Output 48 */
1585 kTopEarlgreyPinmuxOutselRramMacroTdo = 52, /**< Peripheral Output 49 */
1586 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut0 = 53, /**< Peripheral Output 50 */
1587 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut1 = 54, /**< Peripheral Output 51 */
1588 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut2 = 55, /**< Peripheral Output 52 */
1589 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut3 = 56, /**< Peripheral Output 53 */
1590 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut4 = 57, /**< Peripheral Output 54 */
1591 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut5 = 58, /**< Peripheral Output 55 */
1592 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut6 = 59, /**< Peripheral Output 56 */
1593 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut7 = 60, /**< Peripheral Output 57 */
1594 kTopEarlgreyPinmuxOutselSensorCtrlAstDebugOut8 = 61, /**< Peripheral Output 58 */
1595 kTopEarlgreyPinmuxOutselOtpMacroTest0 = 62, /**< Peripheral Output 59 */
1596 kTopEarlgreyPinmuxOutselSysrstCtrlBatDisable = 63, /**< Peripheral Output 60 */
1597 kTopEarlgreyPinmuxOutselSysrstCtrlKey0Out = 64, /**< Peripheral Output 61 */
1598 kTopEarlgreyPinmuxOutselSysrstCtrlKey1Out = 65, /**< Peripheral Output 62 */
1599 kTopEarlgreyPinmuxOutselSysrstCtrlKey2Out = 66, /**< Peripheral Output 63 */
1600 kTopEarlgreyPinmuxOutselSysrstCtrlPwrbOut = 67, /**< Peripheral Output 64 */
1601 kTopEarlgreyPinmuxOutselSysrstCtrlZ3Wakeup = 68, /**< Peripheral Output 65 */
1602 kTopEarlgreyPinmuxOutselLast = 68, /**< \internal Last valid outsel value */
1604
1605/**
1606 * Dedicated Pad Selects
1607 */
1609 kTopEarlgreyDirectPadsUsbdevUsbDp = 0, /**< */
1610 kTopEarlgreyDirectPadsUsbdevUsbDn = 1, /**< */
1611 kTopEarlgreyDirectPadsSpiHost0Sd0 = 2, /**< */
1612 kTopEarlgreyDirectPadsSpiHost0Sd1 = 3, /**< */
1613 kTopEarlgreyDirectPadsSpiHost0Sd2 = 4, /**< */
1614 kTopEarlgreyDirectPadsSpiHost0Sd3 = 5, /**< */
1615 kTopEarlgreyDirectPadsSpiDeviceSd0 = 6, /**< */
1616 kTopEarlgreyDirectPadsSpiDeviceSd1 = 7, /**< */
1617 kTopEarlgreyDirectPadsSpiDeviceSd2 = 8, /**< */
1618 kTopEarlgreyDirectPadsSpiDeviceSd3 = 9, /**< */
1619 kTopEarlgreyDirectPadsSysrstCtrlEcRstL = 10, /**< */
1620 kTopEarlgreyDirectPadsSysrstCtrlFlashWpL = 11, /**< */
1621 kTopEarlgreyDirectPadsSpiDeviceSck = 12, /**< */
1622 kTopEarlgreyDirectPadsSpiDeviceCsb = 13, /**< */
1623 kTopEarlgreyDirectPadsSpiHost0Sck = 14, /**< */
1624 kTopEarlgreyDirectPadsSpiHost0Csb = 15, /**< */
1625 kTopEarlgreyDirectPadsLast = 15, /**< \internal Last valid direct pad */
1627
1628/**
1629 * Muxed Pad Selects
1630 */
1632 kTopEarlgreyMuxedPadsIoa0 = 0, /**< */
1633 kTopEarlgreyMuxedPadsIoa1 = 1, /**< */
1634 kTopEarlgreyMuxedPadsIoa2 = 2, /**< */
1635 kTopEarlgreyMuxedPadsIoa3 = 3, /**< */
1636 kTopEarlgreyMuxedPadsIoa4 = 4, /**< */
1637 kTopEarlgreyMuxedPadsIoa5 = 5, /**< */
1638 kTopEarlgreyMuxedPadsIoa6 = 6, /**< */
1639 kTopEarlgreyMuxedPadsIoa7 = 7, /**< */
1640 kTopEarlgreyMuxedPadsIoa8 = 8, /**< */
1641 kTopEarlgreyMuxedPadsIob0 = 9, /**< */
1642 kTopEarlgreyMuxedPadsIob1 = 10, /**< */
1643 kTopEarlgreyMuxedPadsIob2 = 11, /**< */
1644 kTopEarlgreyMuxedPadsIob3 = 12, /**< */
1645 kTopEarlgreyMuxedPadsIob4 = 13, /**< */
1646 kTopEarlgreyMuxedPadsIob5 = 14, /**< */
1647 kTopEarlgreyMuxedPadsIob6 = 15, /**< */
1648 kTopEarlgreyMuxedPadsIob7 = 16, /**< */
1649 kTopEarlgreyMuxedPadsIob8 = 17, /**< */
1650 kTopEarlgreyMuxedPadsIob9 = 18, /**< */
1651 kTopEarlgreyMuxedPadsIob10 = 19, /**< */
1652 kTopEarlgreyMuxedPadsIob11 = 20, /**< */
1653 kTopEarlgreyMuxedPadsIob12 = 21, /**< */
1654 kTopEarlgreyMuxedPadsIoc0 = 22, /**< */
1655 kTopEarlgreyMuxedPadsIoc1 = 23, /**< */
1656 kTopEarlgreyMuxedPadsIoc2 = 24, /**< */
1657 kTopEarlgreyMuxedPadsIoc3 = 25, /**< */
1658 kTopEarlgreyMuxedPadsIoc4 = 26, /**< */
1659 kTopEarlgreyMuxedPadsIoc5 = 27, /**< */
1660 kTopEarlgreyMuxedPadsIoc6 = 28, /**< */
1661 kTopEarlgreyMuxedPadsIoc7 = 29, /**< */
1662 kTopEarlgreyMuxedPadsIoc8 = 30, /**< */
1663 kTopEarlgreyMuxedPadsIoc9 = 31, /**< */
1664 kTopEarlgreyMuxedPadsIoc10 = 32, /**< */
1665 kTopEarlgreyMuxedPadsIoc11 = 33, /**< */
1666 kTopEarlgreyMuxedPadsIoc12 = 34, /**< */
1667 kTopEarlgreyMuxedPadsIor0 = 35, /**< */
1668 kTopEarlgreyMuxedPadsIor1 = 36, /**< */
1669 kTopEarlgreyMuxedPadsIor2 = 37, /**< */
1670 kTopEarlgreyMuxedPadsIor3 = 38, /**< */
1671 kTopEarlgreyMuxedPadsIor4 = 39, /**< */
1672 kTopEarlgreyMuxedPadsIor5 = 40, /**< */
1673 kTopEarlgreyMuxedPadsIor6 = 41, /**< */
1674 kTopEarlgreyMuxedPadsIor7 = 42, /**< */
1675 kTopEarlgreyMuxedPadsIor10 = 43, /**< */
1676 kTopEarlgreyMuxedPadsIor11 = 44, /**< */
1677 kTopEarlgreyMuxedPadsIor12 = 45, /**< */
1678 kTopEarlgreyMuxedPadsIor13 = 46, /**< */
1679 kTopEarlgreyMuxedPadsLast = 46, /**< \internal Last valid muxed pad */
1681
1682/**
1683 * Power Manager Wakeup Signals
1684 */
1686 kTopEarlgreyPowerManagerWakeUpsSysrstCtrlWkupReq = 0, /**< */
1687 kTopEarlgreyPowerManagerWakeUpsAdcCtrlWkupReq = 1, /**< */
1688 kTopEarlgreyPowerManagerWakeUpsPinmuxPinWkupReq = 2, /**< */
1689 kTopEarlgreyPowerManagerWakeUpsPinmuxUsbWkupReq = 3, /**< */
1690 kTopEarlgreyPowerManagerWakeUpsAonTimerWkupReq = 4, /**< */
1691 kTopEarlgreyPowerManagerWakeUpsSensorCtrlWkupReq = 5, /**< */
1692 kTopEarlgreyPowerManagerWakeUpsLast = 5, /**< \internal Last valid pwrmgr wakeup signal */
1694
1695/**
1696 * Reset Manager Software Controlled Resets
1697 */
1699 kTopEarlgreyResetManagerSwResetsSpiDevice = 0, /**< */
1700 kTopEarlgreyResetManagerSwResetsSpiHost0 = 1, /**< */
1701 kTopEarlgreyResetManagerSwResetsSpiHost1 = 2, /**< */
1702 kTopEarlgreyResetManagerSwResetsUsb = 3, /**< */
1703 kTopEarlgreyResetManagerSwResetsUsbAon = 4, /**< */
1704 kTopEarlgreyResetManagerSwResetsI2c0 = 5, /**< */
1705 kTopEarlgreyResetManagerSwResetsI2c1 = 6, /**< */
1706 kTopEarlgreyResetManagerSwResetsI2c2 = 7, /**< */
1707 kTopEarlgreyResetManagerSwResetsLast = 7, /**< \internal Last valid rstmgr software reset request */
1709
1710/**
1711 * Power Manager Reset Request Signals
1712 */
1714 kTopEarlgreyPowerManagerResetRequestsSysrstCtrlRstReq = 0, /**< */
1715 kTopEarlgreyPowerManagerResetRequestsAonTimerAonTimerRstReq = 1, /**< */
1716 kTopEarlgreyPowerManagerResetRequestsLast = 1, /**< \internal Last valid pwrmgr reset_request signal */
1718
1719/**
1720 * Clock Manager Software-Controlled ("Gated") Clocks.
1721 *
1722 * The Software has full control over these clocks.
1723 */
1725 kTopEarlgreyGateableClocksIoDiv4Peri = 0, /**< Clock clk_io_div4_peri in group peri */
1726 kTopEarlgreyGateableClocksIoDiv2Peri = 1, /**< Clock clk_io_div2_peri in group peri */
1727 kTopEarlgreyGateableClocksIoPeri = 2, /**< Clock clk_io_peri in group peri */
1728 kTopEarlgreyGateableClocksUsbPeri = 3, /**< Clock clk_usb_peri in group peri */
1729 kTopEarlgreyGateableClocksLast = 3, /**< \internal Last Valid Gateable Clock */
1731
1732/**
1733 * Clock Manager Software-Hinted Clocks.
1734 *
1735 * The Software has partial control over these clocks. It can ask them to stop,
1736 * but the clock manager is in control of whether the clock actually is stopped.
1737 */
1739 kTopEarlgreyHintableClocksMainAes = 0, /**< Clock clk_main_aes in group trans */
1740 kTopEarlgreyHintableClocksMainHmac = 1, /**< Clock clk_main_hmac in group trans */
1741 kTopEarlgreyHintableClocksMainKmac = 2, /**< Clock clk_main_kmac in group trans */
1742 kTopEarlgreyHintableClocksMainOtbn = 3, /**< Clock clk_main_otbn in group trans */
1743 kTopEarlgreyHintableClocksLast = 3, /**< \internal Last Valid Hintable Clock */
1745
1746/**
1747 * MMIO Region
1748 *
1749 * MMIO region excludes any memory that is separate from the module
1750 * configuration space, i.e. ROM, main SRAM, and flash are excluded but
1751 * retention SRAM, spi_device memory, or usbdev memory are included.
1752 */
1753#define TOP_EARLGREY_MMIO_BASE_ADDR 0x40000000u
1754#define TOP_EARLGREY_MMIO_SIZE_BYTES 0x10000000u
1755
1756// Header Extern Guard
1757#ifdef __cplusplus
1758} // extern "C"
1759#endif
1760
1761#endif // OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_