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_aon 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_AON_BASE_ADDR 0x40400000u
346
347/**
348 * Peripheral size for pwrmgr_aon 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_AON_BASE_ADDR and
353 * `TOP_EARLGREY_PWRMGR_AON_BASE_ADDR + TOP_EARLGREY_PWRMGR_AON_SIZE_BYTES`.
354 */
355#define TOP_EARLGREY_PWRMGR_AON_SIZE_BYTES 0x80u
356
357/**
358 * Peripheral base address for rstmgr_aon 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_AON_BASE_ADDR 0x40410000u
364
365/**
366 * Peripheral size for rstmgr_aon 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_AON_BASE_ADDR and
371 * `TOP_EARLGREY_RSTMGR_AON_BASE_ADDR + TOP_EARLGREY_RSTMGR_AON_SIZE_BYTES`.
372 */
373#define TOP_EARLGREY_RSTMGR_AON_SIZE_BYTES 0x80u
374
375/**
376 * Peripheral base address for clkmgr_aon 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_AON_BASE_ADDR 0x40420000u
382
383/**
384 * Peripheral size for clkmgr_aon 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_AON_BASE_ADDR and
389 * `TOP_EARLGREY_CLKMGR_AON_BASE_ADDR + TOP_EARLGREY_CLKMGR_AON_SIZE_BYTES`.
390 */
391#define TOP_EARLGREY_CLKMGR_AON_SIZE_BYTES 0x80u
392
393/**
394 * Peripheral base address for sysrst_ctrl_aon 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_AON_BASE_ADDR 0x40430000u
400
401/**
402 * Peripheral size for sysrst_ctrl_aon 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_AON_BASE_ADDR and
407 * `TOP_EARLGREY_SYSRST_CTRL_AON_BASE_ADDR + TOP_EARLGREY_SYSRST_CTRL_AON_SIZE_BYTES`.
408 */
409#define TOP_EARLGREY_SYSRST_CTRL_AON_SIZE_BYTES 0x100u
410
411/**
412 * Peripheral base address for adc_ctrl_aon 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_AON_BASE_ADDR 0x40440000u
418
419/**
420 * Peripheral size for adc_ctrl_aon 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_AON_BASE_ADDR and
425 * `TOP_EARLGREY_ADC_CTRL_AON_BASE_ADDR + TOP_EARLGREY_ADC_CTRL_AON_SIZE_BYTES`.
426 */
427#define TOP_EARLGREY_ADC_CTRL_AON_SIZE_BYTES 0x80u
428
429/**
430 * Peripheral base address for pinmux_aon 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_AON_BASE_ADDR 0x40460000u
436
437/**
438 * Peripheral size for pinmux_aon 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_AON_BASE_ADDR and
443 * `TOP_EARLGREY_PINMUX_AON_BASE_ADDR + TOP_EARLGREY_PINMUX_AON_SIZE_BYTES`.
444 */
445#define TOP_EARLGREY_PINMUX_AON_SIZE_BYTES 0x1000u
446
447/**
448 * Peripheral base address for aon_timer_aon 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_AON_BASE_ADDR 0x40470000u
454
455/**
456 * Peripheral size for aon_timer_aon 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_AON_BASE_ADDR and
461 * `TOP_EARLGREY_AON_TIMER_AON_BASE_ADDR + TOP_EARLGREY_AON_TIMER_AON_SIZE_BYTES`.
462 */
463#define TOP_EARLGREY_AON_TIMER_AON_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_aon 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_AON_BASE_ADDR 0x40490000u
490
491/**
492 * Peripheral size for sensor_ctrl_aon 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_AON_BASE_ADDR and
497 * `TOP_EARLGREY_SENSOR_CTRL_AON_BASE_ADDR + TOP_EARLGREY_SENSOR_CTRL_AON_SIZE_BYTES`.
498 */
499#define TOP_EARLGREY_SENSOR_CTRL_AON_SIZE_BYTES 0x80u
500
501/**
502 * Peripheral base address for regs device on sram_ctrl_ret_aon 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_AON_REGS_BASE_ADDR 0x40500000u
508
509/**
510 * Peripheral size for regs device on sram_ctrl_ret_aon 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_AON_REGS_BASE_ADDR and
515 * `TOP_EARLGREY_SRAM_CTRL_RET_AON_REGS_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_RET_AON_REGS_SIZE_BYTES`.
516 */
517#define TOP_EARLGREY_SRAM_CTRL_RET_AON_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 regs device on rv_dm 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_RV_DM_REGS_BASE_ADDR 0x41200000u
562
563/**
564 * Peripheral size for regs device on rv_dm 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_RV_DM_REGS_BASE_ADDR and
569 * `TOP_EARLGREY_RV_DM_REGS_BASE_ADDR + TOP_EARLGREY_RV_DM_REGS_SIZE_BYTES`.
570 */
571#define TOP_EARLGREY_RV_DM_REGS_SIZE_BYTES 0x10u
572
573/**
574 * Peripheral base address for mem device on rv_dm 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_RV_DM_MEM_BASE_ADDR 0x10000u
580
581/**
582 * Peripheral size for mem device on rv_dm 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_RV_DM_MEM_BASE_ADDR and
587 * `TOP_EARLGREY_RV_DM_MEM_BASE_ADDR + TOP_EARLGREY_RV_DM_MEM_SIZE_BYTES`.
588 */
589#define TOP_EARLGREY_RV_DM_MEM_SIZE_BYTES 0x1000u
590
591/**
592 * Peripheral base address for rv_plic 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_PLIC_BASE_ADDR 0x48000000u
598
599/**
600 * Peripheral size for rv_plic 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_PLIC_BASE_ADDR and
605 * `TOP_EARLGREY_RV_PLIC_BASE_ADDR + TOP_EARLGREY_RV_PLIC_SIZE_BYTES`.
606 */
607#define TOP_EARLGREY_RV_PLIC_SIZE_BYTES 0x8000000u
608
609/**
610 * Peripheral base address for aes 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_AES_BASE_ADDR 0x41100000u
616
617/**
618 * Peripheral size for aes 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_AES_BASE_ADDR and
623 * `TOP_EARLGREY_AES_BASE_ADDR + TOP_EARLGREY_AES_SIZE_BYTES`.
624 */
625#define TOP_EARLGREY_AES_SIZE_BYTES 0x100u
626
627/**
628 * Peripheral base address for hmac 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_HMAC_BASE_ADDR 0x41110000u
634
635/**
636 * Peripheral size for hmac 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_HMAC_BASE_ADDR and
641 * `TOP_EARLGREY_HMAC_BASE_ADDR + TOP_EARLGREY_HMAC_SIZE_BYTES`.
642 */
643#define TOP_EARLGREY_HMAC_SIZE_BYTES 0x2000u
644
645/**
646 * Peripheral base address for kmac 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_KMAC_BASE_ADDR 0x41120000u
652
653/**
654 * Peripheral size for kmac 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_KMAC_BASE_ADDR and
659 * `TOP_EARLGREY_KMAC_BASE_ADDR + TOP_EARLGREY_KMAC_SIZE_BYTES`.
660 */
661#define TOP_EARLGREY_KMAC_SIZE_BYTES 0x1000u
662
663/**
664 * Peripheral base address for otbn 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_OTBN_BASE_ADDR 0x41130000u
670
671/**
672 * Peripheral size for otbn 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_OTBN_BASE_ADDR and
677 * `TOP_EARLGREY_OTBN_BASE_ADDR + TOP_EARLGREY_OTBN_SIZE_BYTES`.
678 */
679#define TOP_EARLGREY_OTBN_SIZE_BYTES 0x10000u
680
681/**
682 * Peripheral base address for keymgr 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_KEYMGR_BASE_ADDR 0x41140000u
688
689/**
690 * Peripheral size for keymgr 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_KEYMGR_BASE_ADDR and
695 * `TOP_EARLGREY_KEYMGR_BASE_ADDR + TOP_EARLGREY_KEYMGR_SIZE_BYTES`.
696 */
697#define TOP_EARLGREY_KEYMGR_SIZE_BYTES 0x100u
698
699/**
700 * Peripheral base address for csrng 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_CSRNG_BASE_ADDR 0x41150000u
706
707/**
708 * Peripheral size for csrng 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_CSRNG_BASE_ADDR and
713 * `TOP_EARLGREY_CSRNG_BASE_ADDR + TOP_EARLGREY_CSRNG_SIZE_BYTES`.
714 */
715#define TOP_EARLGREY_CSRNG_SIZE_BYTES 0x80u
716
717/**
718 * Peripheral base address for entropy_src 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_ENTROPY_SRC_BASE_ADDR 0x41160000u
724
725/**
726 * Peripheral size for entropy_src 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_ENTROPY_SRC_BASE_ADDR and
731 * `TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR + TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES`.
732 */
733#define TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES 0x100u
734
735/**
736 * Peripheral base address for edn0 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_EDN0_BASE_ADDR 0x41170000u
742
743/**
744 * Peripheral size for edn0 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_EDN0_BASE_ADDR and
749 * `TOP_EARLGREY_EDN0_BASE_ADDR + TOP_EARLGREY_EDN0_SIZE_BYTES`.
750 */
751#define TOP_EARLGREY_EDN0_SIZE_BYTES 0x80u
752
753/**
754 * Peripheral base address for edn1 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_EDN1_BASE_ADDR 0x41180000u
760
761/**
762 * Peripheral size for edn1 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_EDN1_BASE_ADDR and
767 * `TOP_EARLGREY_EDN1_BASE_ADDR + TOP_EARLGREY_EDN1_SIZE_BYTES`.
768 */
769#define TOP_EARLGREY_EDN1_SIZE_BYTES 0x80u
770
771/**
772 * Peripheral base address for regs device on sram_ctrl_main 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_SRAM_CTRL_MAIN_REGS_BASE_ADDR 0x411C0000u
778
779/**
780 * Peripheral size for regs device on sram_ctrl_main 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_SRAM_CTRL_MAIN_REGS_BASE_ADDR and
785 * `TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_SIZE_BYTES`.
786 */
787#define TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_SIZE_BYTES 0x40u
788
789/**
790 * Peripheral base address for regs device on rom_ctrl 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_ROM_CTRL_REGS_BASE_ADDR 0x411E0000u
796
797/**
798 * Peripheral size for regs device on rom_ctrl 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_ROM_CTRL_REGS_BASE_ADDR and
803 * `TOP_EARLGREY_ROM_CTRL_REGS_BASE_ADDR + TOP_EARLGREY_ROM_CTRL_REGS_SIZE_BYTES`.
804 */
805#define TOP_EARLGREY_ROM_CTRL_REGS_SIZE_BYTES 0x80u
806
807/**
808 * Peripheral base address for cfg device on rv_core_ibex 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_RV_CORE_IBEX_CFG_BASE_ADDR 0x411F0000u
814
815/**
816 * Peripheral size for cfg device on rv_core_ibex 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_RV_CORE_IBEX_CFG_BASE_ADDR and
821 * `TOP_EARLGREY_RV_CORE_IBEX_CFG_BASE_ADDR + TOP_EARLGREY_RV_CORE_IBEX_CFG_SIZE_BYTES`.
822 */
823#define TOP_EARLGREY_RV_CORE_IBEX_CFG_SIZE_BYTES 0x100u
824
825
826/**
827 * Memory base address for ram memory on sram_ctrl_ret_aon in top earlgrey.
828 */
829#define TOP_EARLGREY_SRAM_CTRL_RET_AON_RAM_BASE_ADDR 0x40600000u
830
831/**
832 * Memory size for ram memory on sram_ctrl_ret_aon in top earlgrey.
833 */
834#define TOP_EARLGREY_SRAM_CTRL_RET_AON_RAM_SIZE_BYTES 0x1000u
835
836/**
837 * Memory base address for mem memory on flash_ctrl in top earlgrey.
838 */
839#define TOP_EARLGREY_FLASH_CTRL_MEM_BASE_ADDR 0x20000000u
840
841/**
842 * Memory size for mem memory on flash_ctrl in top earlgrey.
843 */
844#define TOP_EARLGREY_FLASH_CTRL_MEM_SIZE_BYTES 0x100000u
845
846/**
847 * Memory base address for ram memory on sram_ctrl_main in top earlgrey.
848 */
849#define TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_BASE_ADDR 0x10000000u
850
851/**
852 * Memory size for ram memory on sram_ctrl_main in top earlgrey.
853 */
854#define TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_SIZE_BYTES 0x20000u
855
856/**
857 * Memory base address for rom memory on rom_ctrl in top earlgrey.
858 */
859#define TOP_EARLGREY_ROM_CTRL_ROM_BASE_ADDR 0x8000u
860
861/**
862 * Memory size for rom memory on rom_ctrl in top earlgrey.
863 */
864#define TOP_EARLGREY_ROM_CTRL_ROM_SIZE_BYTES 0x8000u
865
866
867/**
868 * PLIC Interrupt Source Peripheral.
869 *
870 * Enumeration used to determine which peripheral asserted the corresponding
871 * interrupt.
872 */
874 kTopEarlgreyPlicPeripheralUnknown = 0, /**< Unknown Peripheral */
886 kTopEarlgreyPlicPeripheralAlertHandler = 12, /**< alert_handler */
890 kTopEarlgreyPlicPeripheralPwrmgrAon = 16, /**< pwrmgr_aon */
891 kTopEarlgreyPlicPeripheralSysrstCtrlAon = 17, /**< sysrst_ctrl_aon */
892 kTopEarlgreyPlicPeripheralAdcCtrlAon = 18, /**< adc_ctrl_aon */
893 kTopEarlgreyPlicPeripheralAonTimerAon = 19, /**< aon_timer_aon */
894 kTopEarlgreyPlicPeripheralSensorCtrlAon = 20, /**< sensor_ctrl_aon */
895 kTopEarlgreyPlicPeripheralFlashCtrl = 21, /**< flash_ctrl */
901 kTopEarlgreyPlicPeripheralEntropySrc = 27, /**< entropy_src */
904 kTopEarlgreyPlicPeripheralLast = 29, /**< \internal Final PLIC peripheral */
906
907/**
908 * PLIC Interrupt Source.
909 *
910 * Enumeration of all PLIC interrupt sources. The interrupt sources belonging to
911 * the same peripheral are guaranteed to be consecutive.
912 */
914 kTopEarlgreyPlicIrqIdNone = 0, /**< No Interrupt */
915 kTopEarlgreyPlicIrqIdUart0TxWatermark = 1, /**< uart0_tx_watermark */
916 kTopEarlgreyPlicIrqIdUart0RxWatermark = 2, /**< uart0_rx_watermark */
917 kTopEarlgreyPlicIrqIdUart0TxDone = 3, /**< uart0_tx_done */
918 kTopEarlgreyPlicIrqIdUart0RxOverflow = 4, /**< uart0_rx_overflow */
919 kTopEarlgreyPlicIrqIdUart0RxFrameErr = 5, /**< uart0_rx_frame_err */
920 kTopEarlgreyPlicIrqIdUart0RxBreakErr = 6, /**< uart0_rx_break_err */
921 kTopEarlgreyPlicIrqIdUart0RxTimeout = 7, /**< uart0_rx_timeout */
922 kTopEarlgreyPlicIrqIdUart0RxParityErr = 8, /**< uart0_rx_parity_err */
923 kTopEarlgreyPlicIrqIdUart0TxEmpty = 9, /**< uart0_tx_empty */
924 kTopEarlgreyPlicIrqIdUart1TxWatermark = 10, /**< uart1_tx_watermark */
925 kTopEarlgreyPlicIrqIdUart1RxWatermark = 11, /**< uart1_rx_watermark */
926 kTopEarlgreyPlicIrqIdUart1TxDone = 12, /**< uart1_tx_done */
927 kTopEarlgreyPlicIrqIdUart1RxOverflow = 13, /**< uart1_rx_overflow */
928 kTopEarlgreyPlicIrqIdUart1RxFrameErr = 14, /**< uart1_rx_frame_err */
929 kTopEarlgreyPlicIrqIdUart1RxBreakErr = 15, /**< uart1_rx_break_err */
930 kTopEarlgreyPlicIrqIdUart1RxTimeout = 16, /**< uart1_rx_timeout */
931 kTopEarlgreyPlicIrqIdUart1RxParityErr = 17, /**< uart1_rx_parity_err */
932 kTopEarlgreyPlicIrqIdUart1TxEmpty = 18, /**< uart1_tx_empty */
933 kTopEarlgreyPlicIrqIdUart2TxWatermark = 19, /**< uart2_tx_watermark */
934 kTopEarlgreyPlicIrqIdUart2RxWatermark = 20, /**< uart2_rx_watermark */
935 kTopEarlgreyPlicIrqIdUart2TxDone = 21, /**< uart2_tx_done */
936 kTopEarlgreyPlicIrqIdUart2RxOverflow = 22, /**< uart2_rx_overflow */
937 kTopEarlgreyPlicIrqIdUart2RxFrameErr = 23, /**< uart2_rx_frame_err */
938 kTopEarlgreyPlicIrqIdUart2RxBreakErr = 24, /**< uart2_rx_break_err */
939 kTopEarlgreyPlicIrqIdUart2RxTimeout = 25, /**< uart2_rx_timeout */
940 kTopEarlgreyPlicIrqIdUart2RxParityErr = 26, /**< uart2_rx_parity_err */
941 kTopEarlgreyPlicIrqIdUart2TxEmpty = 27, /**< uart2_tx_empty */
942 kTopEarlgreyPlicIrqIdUart3TxWatermark = 28, /**< uart3_tx_watermark */
943 kTopEarlgreyPlicIrqIdUart3RxWatermark = 29, /**< uart3_rx_watermark */
944 kTopEarlgreyPlicIrqIdUart3TxDone = 30, /**< uart3_tx_done */
945 kTopEarlgreyPlicIrqIdUart3RxOverflow = 31, /**< uart3_rx_overflow */
946 kTopEarlgreyPlicIrqIdUart3RxFrameErr = 32, /**< uart3_rx_frame_err */
947 kTopEarlgreyPlicIrqIdUart3RxBreakErr = 33, /**< uart3_rx_break_err */
948 kTopEarlgreyPlicIrqIdUart3RxTimeout = 34, /**< uart3_rx_timeout */
949 kTopEarlgreyPlicIrqIdUart3RxParityErr = 35, /**< uart3_rx_parity_err */
950 kTopEarlgreyPlicIrqIdUart3TxEmpty = 36, /**< uart3_tx_empty */
951 kTopEarlgreyPlicIrqIdGpioGpio0 = 37, /**< gpio_gpio 0 */
952 kTopEarlgreyPlicIrqIdGpioGpio1 = 38, /**< gpio_gpio 1 */
953 kTopEarlgreyPlicIrqIdGpioGpio2 = 39, /**< gpio_gpio 2 */
954 kTopEarlgreyPlicIrqIdGpioGpio3 = 40, /**< gpio_gpio 3 */
955 kTopEarlgreyPlicIrqIdGpioGpio4 = 41, /**< gpio_gpio 4 */
956 kTopEarlgreyPlicIrqIdGpioGpio5 = 42, /**< gpio_gpio 5 */
957 kTopEarlgreyPlicIrqIdGpioGpio6 = 43, /**< gpio_gpio 6 */
958 kTopEarlgreyPlicIrqIdGpioGpio7 = 44, /**< gpio_gpio 7 */
959 kTopEarlgreyPlicIrqIdGpioGpio8 = 45, /**< gpio_gpio 8 */
960 kTopEarlgreyPlicIrqIdGpioGpio9 = 46, /**< gpio_gpio 9 */
961 kTopEarlgreyPlicIrqIdGpioGpio10 = 47, /**< gpio_gpio 10 */
962 kTopEarlgreyPlicIrqIdGpioGpio11 = 48, /**< gpio_gpio 11 */
963 kTopEarlgreyPlicIrqIdGpioGpio12 = 49, /**< gpio_gpio 12 */
964 kTopEarlgreyPlicIrqIdGpioGpio13 = 50, /**< gpio_gpio 13 */
965 kTopEarlgreyPlicIrqIdGpioGpio14 = 51, /**< gpio_gpio 14 */
966 kTopEarlgreyPlicIrqIdGpioGpio15 = 52, /**< gpio_gpio 15 */
967 kTopEarlgreyPlicIrqIdGpioGpio16 = 53, /**< gpio_gpio 16 */
968 kTopEarlgreyPlicIrqIdGpioGpio17 = 54, /**< gpio_gpio 17 */
969 kTopEarlgreyPlicIrqIdGpioGpio18 = 55, /**< gpio_gpio 18 */
970 kTopEarlgreyPlicIrqIdGpioGpio19 = 56, /**< gpio_gpio 19 */
971 kTopEarlgreyPlicIrqIdGpioGpio20 = 57, /**< gpio_gpio 20 */
972 kTopEarlgreyPlicIrqIdGpioGpio21 = 58, /**< gpio_gpio 21 */
973 kTopEarlgreyPlicIrqIdGpioGpio22 = 59, /**< gpio_gpio 22 */
974 kTopEarlgreyPlicIrqIdGpioGpio23 = 60, /**< gpio_gpio 23 */
975 kTopEarlgreyPlicIrqIdGpioGpio24 = 61, /**< gpio_gpio 24 */
976 kTopEarlgreyPlicIrqIdGpioGpio25 = 62, /**< gpio_gpio 25 */
977 kTopEarlgreyPlicIrqIdGpioGpio26 = 63, /**< gpio_gpio 26 */
978 kTopEarlgreyPlicIrqIdGpioGpio27 = 64, /**< gpio_gpio 27 */
979 kTopEarlgreyPlicIrqIdGpioGpio28 = 65, /**< gpio_gpio 28 */
980 kTopEarlgreyPlicIrqIdGpioGpio29 = 66, /**< gpio_gpio 29 */
981 kTopEarlgreyPlicIrqIdGpioGpio30 = 67, /**< gpio_gpio 30 */
982 kTopEarlgreyPlicIrqIdGpioGpio31 = 68, /**< gpio_gpio 31 */
983 kTopEarlgreyPlicIrqIdSpiDeviceUploadCmdfifoNotEmpty = 69, /**< spi_device_upload_cmdfifo_not_empty */
984 kTopEarlgreyPlicIrqIdSpiDeviceUploadPayloadNotEmpty = 70, /**< spi_device_upload_payload_not_empty */
985 kTopEarlgreyPlicIrqIdSpiDeviceUploadPayloadOverflow = 71, /**< spi_device_upload_payload_overflow */
986 kTopEarlgreyPlicIrqIdSpiDeviceReadbufWatermark = 72, /**< spi_device_readbuf_watermark */
987 kTopEarlgreyPlicIrqIdSpiDeviceReadbufFlip = 73, /**< spi_device_readbuf_flip */
988 kTopEarlgreyPlicIrqIdSpiDeviceTpmHeaderNotEmpty = 74, /**< spi_device_tpm_header_not_empty */
989 kTopEarlgreyPlicIrqIdSpiDeviceTpmRdfifoCmdEnd = 75, /**< spi_device_tpm_rdfifo_cmd_end */
990 kTopEarlgreyPlicIrqIdSpiDeviceTpmRdfifoDrop = 76, /**< spi_device_tpm_rdfifo_drop */
991 kTopEarlgreyPlicIrqIdI2c0FmtThreshold = 77, /**< i2c0_fmt_threshold */
992 kTopEarlgreyPlicIrqIdI2c0RxThreshold = 78, /**< i2c0_rx_threshold */
993 kTopEarlgreyPlicIrqIdI2c0AcqThreshold = 79, /**< i2c0_acq_threshold */
994 kTopEarlgreyPlicIrqIdI2c0RxOverflow = 80, /**< i2c0_rx_overflow */
995 kTopEarlgreyPlicIrqIdI2c0ControllerHalt = 81, /**< i2c0_controller_halt */
996 kTopEarlgreyPlicIrqIdI2c0SclInterference = 82, /**< i2c0_scl_interference */
997 kTopEarlgreyPlicIrqIdI2c0SdaInterference = 83, /**< i2c0_sda_interference */
998 kTopEarlgreyPlicIrqIdI2c0StretchTimeout = 84, /**< i2c0_stretch_timeout */
999 kTopEarlgreyPlicIrqIdI2c0SdaUnstable = 85, /**< i2c0_sda_unstable */
1000 kTopEarlgreyPlicIrqIdI2c0CmdComplete = 86, /**< i2c0_cmd_complete */
1001 kTopEarlgreyPlicIrqIdI2c0TxStretch = 87, /**< i2c0_tx_stretch */
1002 kTopEarlgreyPlicIrqIdI2c0TxThreshold = 88, /**< i2c0_tx_threshold */
1003 kTopEarlgreyPlicIrqIdI2c0AcqStretch = 89, /**< i2c0_acq_stretch */
1004 kTopEarlgreyPlicIrqIdI2c0UnexpStop = 90, /**< i2c0_unexp_stop */
1005 kTopEarlgreyPlicIrqIdI2c0HostTimeout = 91, /**< i2c0_host_timeout */
1006 kTopEarlgreyPlicIrqIdI2c1FmtThreshold = 92, /**< i2c1_fmt_threshold */
1007 kTopEarlgreyPlicIrqIdI2c1RxThreshold = 93, /**< i2c1_rx_threshold */
1008 kTopEarlgreyPlicIrqIdI2c1AcqThreshold = 94, /**< i2c1_acq_threshold */
1009 kTopEarlgreyPlicIrqIdI2c1RxOverflow = 95, /**< i2c1_rx_overflow */
1010 kTopEarlgreyPlicIrqIdI2c1ControllerHalt = 96, /**< i2c1_controller_halt */
1011 kTopEarlgreyPlicIrqIdI2c1SclInterference = 97, /**< i2c1_scl_interference */
1012 kTopEarlgreyPlicIrqIdI2c1SdaInterference = 98, /**< i2c1_sda_interference */
1013 kTopEarlgreyPlicIrqIdI2c1StretchTimeout = 99, /**< i2c1_stretch_timeout */
1014 kTopEarlgreyPlicIrqIdI2c1SdaUnstable = 100, /**< i2c1_sda_unstable */
1015 kTopEarlgreyPlicIrqIdI2c1CmdComplete = 101, /**< i2c1_cmd_complete */
1016 kTopEarlgreyPlicIrqIdI2c1TxStretch = 102, /**< i2c1_tx_stretch */
1017 kTopEarlgreyPlicIrqIdI2c1TxThreshold = 103, /**< i2c1_tx_threshold */
1018 kTopEarlgreyPlicIrqIdI2c1AcqStretch = 104, /**< i2c1_acq_stretch */
1019 kTopEarlgreyPlicIrqIdI2c1UnexpStop = 105, /**< i2c1_unexp_stop */
1020 kTopEarlgreyPlicIrqIdI2c1HostTimeout = 106, /**< i2c1_host_timeout */
1021 kTopEarlgreyPlicIrqIdI2c2FmtThreshold = 107, /**< i2c2_fmt_threshold */
1022 kTopEarlgreyPlicIrqIdI2c2RxThreshold = 108, /**< i2c2_rx_threshold */
1023 kTopEarlgreyPlicIrqIdI2c2AcqThreshold = 109, /**< i2c2_acq_threshold */
1024 kTopEarlgreyPlicIrqIdI2c2RxOverflow = 110, /**< i2c2_rx_overflow */
1025 kTopEarlgreyPlicIrqIdI2c2ControllerHalt = 111, /**< i2c2_controller_halt */
1026 kTopEarlgreyPlicIrqIdI2c2SclInterference = 112, /**< i2c2_scl_interference */
1027 kTopEarlgreyPlicIrqIdI2c2SdaInterference = 113, /**< i2c2_sda_interference */
1028 kTopEarlgreyPlicIrqIdI2c2StretchTimeout = 114, /**< i2c2_stretch_timeout */
1029 kTopEarlgreyPlicIrqIdI2c2SdaUnstable = 115, /**< i2c2_sda_unstable */
1030 kTopEarlgreyPlicIrqIdI2c2CmdComplete = 116, /**< i2c2_cmd_complete */
1031 kTopEarlgreyPlicIrqIdI2c2TxStretch = 117, /**< i2c2_tx_stretch */
1032 kTopEarlgreyPlicIrqIdI2c2TxThreshold = 118, /**< i2c2_tx_threshold */
1033 kTopEarlgreyPlicIrqIdI2c2AcqStretch = 119, /**< i2c2_acq_stretch */
1034 kTopEarlgreyPlicIrqIdI2c2UnexpStop = 120, /**< i2c2_unexp_stop */
1035 kTopEarlgreyPlicIrqIdI2c2HostTimeout = 121, /**< i2c2_host_timeout */
1036 kTopEarlgreyPlicIrqIdRvTimerTimerExpiredHart0Timer0 = 122, /**< rv_timer_timer_expired_hart0_timer0 */
1037 kTopEarlgreyPlicIrqIdOtpCtrlOtpOperationDone = 123, /**< otp_ctrl_otp_operation_done */
1038 kTopEarlgreyPlicIrqIdOtpCtrlOtpError = 124, /**< otp_ctrl_otp_error */
1039 kTopEarlgreyPlicIrqIdAlertHandlerClassa = 125, /**< alert_handler_classa */
1040 kTopEarlgreyPlicIrqIdAlertHandlerClassb = 126, /**< alert_handler_classb */
1041 kTopEarlgreyPlicIrqIdAlertHandlerClassc = 127, /**< alert_handler_classc */
1042 kTopEarlgreyPlicIrqIdAlertHandlerClassd = 128, /**< alert_handler_classd */
1043 kTopEarlgreyPlicIrqIdSpiHost0Error = 129, /**< spi_host0_error */
1044 kTopEarlgreyPlicIrqIdSpiHost0SpiEvent = 130, /**< spi_host0_spi_event */
1045 kTopEarlgreyPlicIrqIdSpiHost1Error = 131, /**< spi_host1_error */
1046 kTopEarlgreyPlicIrqIdSpiHost1SpiEvent = 132, /**< spi_host1_spi_event */
1047 kTopEarlgreyPlicIrqIdUsbdevPktReceived = 133, /**< usbdev_pkt_received */
1048 kTopEarlgreyPlicIrqIdUsbdevPktSent = 134, /**< usbdev_pkt_sent */
1049 kTopEarlgreyPlicIrqIdUsbdevDisconnected = 135, /**< usbdev_disconnected */
1050 kTopEarlgreyPlicIrqIdUsbdevHostLost = 136, /**< usbdev_host_lost */
1051 kTopEarlgreyPlicIrqIdUsbdevLinkReset = 137, /**< usbdev_link_reset */
1052 kTopEarlgreyPlicIrqIdUsbdevLinkSuspend = 138, /**< usbdev_link_suspend */
1053 kTopEarlgreyPlicIrqIdUsbdevLinkResume = 139, /**< usbdev_link_resume */
1054 kTopEarlgreyPlicIrqIdUsbdevAvOutEmpty = 140, /**< usbdev_av_out_empty */
1055 kTopEarlgreyPlicIrqIdUsbdevRxFull = 141, /**< usbdev_rx_full */
1056 kTopEarlgreyPlicIrqIdUsbdevAvOverflow = 142, /**< usbdev_av_overflow */
1057 kTopEarlgreyPlicIrqIdUsbdevLinkInErr = 143, /**< usbdev_link_in_err */
1058 kTopEarlgreyPlicIrqIdUsbdevRxCrcErr = 144, /**< usbdev_rx_crc_err */
1059 kTopEarlgreyPlicIrqIdUsbdevRxPidErr = 145, /**< usbdev_rx_pid_err */
1060 kTopEarlgreyPlicIrqIdUsbdevRxBitstuffErr = 146, /**< usbdev_rx_bitstuff_err */
1061 kTopEarlgreyPlicIrqIdUsbdevFrame = 147, /**< usbdev_frame */
1062 kTopEarlgreyPlicIrqIdUsbdevPowered = 148, /**< usbdev_powered */
1063 kTopEarlgreyPlicIrqIdUsbdevLinkOutErr = 149, /**< usbdev_link_out_err */
1064 kTopEarlgreyPlicIrqIdUsbdevAvSetupEmpty = 150, /**< usbdev_av_setup_empty */
1065 kTopEarlgreyPlicIrqIdPwrmgrAonWakeup = 151, /**< pwrmgr_aon_wakeup */
1066 kTopEarlgreyPlicIrqIdSysrstCtrlAonEventDetected = 152, /**< sysrst_ctrl_aon_event_detected */
1067 kTopEarlgreyPlicIrqIdAdcCtrlAonMatchPending = 153, /**< adc_ctrl_aon_match_pending */
1068 kTopEarlgreyPlicIrqIdAonTimerAonWkupTimerExpired = 154, /**< aon_timer_aon_wkup_timer_expired */
1069 kTopEarlgreyPlicIrqIdAonTimerAonWdogTimerBark = 155, /**< aon_timer_aon_wdog_timer_bark */
1070 kTopEarlgreyPlicIrqIdSensorCtrlAonIoStatusChange = 156, /**< sensor_ctrl_aon_io_status_change */
1071 kTopEarlgreyPlicIrqIdSensorCtrlAonInitStatusChange = 157, /**< sensor_ctrl_aon_init_status_change */
1072 kTopEarlgreyPlicIrqIdFlashCtrlProgEmpty = 158, /**< flash_ctrl_prog_empty */
1073 kTopEarlgreyPlicIrqIdFlashCtrlProgLvl = 159, /**< flash_ctrl_prog_lvl */
1074 kTopEarlgreyPlicIrqIdFlashCtrlRdFull = 160, /**< flash_ctrl_rd_full */
1075 kTopEarlgreyPlicIrqIdFlashCtrlRdLvl = 161, /**< flash_ctrl_rd_lvl */
1076 kTopEarlgreyPlicIrqIdFlashCtrlOpDone = 162, /**< flash_ctrl_op_done */
1077 kTopEarlgreyPlicIrqIdFlashCtrlCorrErr = 163, /**< flash_ctrl_corr_err */
1078 kTopEarlgreyPlicIrqIdHmacHmacDone = 164, /**< hmac_hmac_done */
1079 kTopEarlgreyPlicIrqIdHmacFifoEmpty = 165, /**< hmac_fifo_empty */
1080 kTopEarlgreyPlicIrqIdHmacHmacErr = 166, /**< hmac_hmac_err */
1081 kTopEarlgreyPlicIrqIdKmacKmacDone = 167, /**< kmac_kmac_done */
1082 kTopEarlgreyPlicIrqIdKmacFifoEmpty = 168, /**< kmac_fifo_empty */
1083 kTopEarlgreyPlicIrqIdKmacKmacErr = 169, /**< kmac_kmac_err */
1084 kTopEarlgreyPlicIrqIdOtbnDone = 170, /**< otbn_done */
1085 kTopEarlgreyPlicIrqIdKeymgrOpDone = 171, /**< keymgr_op_done */
1086 kTopEarlgreyPlicIrqIdCsrngCsCmdReqDone = 172, /**< csrng_cs_cmd_req_done */
1087 kTopEarlgreyPlicIrqIdCsrngCsEntropyReq = 173, /**< csrng_cs_entropy_req */
1088 kTopEarlgreyPlicIrqIdCsrngCsHwInstExc = 174, /**< csrng_cs_hw_inst_exc */
1089 kTopEarlgreyPlicIrqIdCsrngCsFatalErr = 175, /**< csrng_cs_fatal_err */
1090 kTopEarlgreyPlicIrqIdEntropySrcEsEntropyValid = 176, /**< entropy_src_es_entropy_valid */
1091 kTopEarlgreyPlicIrqIdEntropySrcEsHealthTestFailed = 177, /**< entropy_src_es_health_test_failed */
1092 kTopEarlgreyPlicIrqIdEntropySrcEsObserveFifoReady = 178, /**< entropy_src_es_observe_fifo_ready */
1093 kTopEarlgreyPlicIrqIdEntropySrcEsFatalErr = 179, /**< entropy_src_es_fatal_err */
1094 kTopEarlgreyPlicIrqIdEdn0EdnCmdReqDone = 180, /**< edn0_edn_cmd_req_done */
1095 kTopEarlgreyPlicIrqIdEdn0EdnFatalErr = 181, /**< edn0_edn_fatal_err */
1096 kTopEarlgreyPlicIrqIdEdn1EdnCmdReqDone = 182, /**< edn1_edn_cmd_req_done */
1097 kTopEarlgreyPlicIrqIdEdn1EdnFatalErr = 183, /**< edn1_edn_fatal_err */
1098 kTopEarlgreyPlicIrqIdLast = 183, /**< \internal The Last Valid Interrupt ID. */
1100
1101/**
1102 * PLIC Interrupt Source to Peripheral Map
1103 *
1104 * This array is a mapping from `top_earlgrey_plic_irq_id_t` to
1105 * `top_earlgrey_plic_peripheral_t`.
1106 */
1108 top_earlgrey_plic_interrupt_for_peripheral[184];
1109
1110/**
1111 * PLIC Interrupt Target.
1112 *
1113 * Enumeration used to determine which set of IE, CC, threshold registers to
1114 * access for a given interrupt target.
1115 */
1117 kTopEarlgreyPlicTargetIbex0 = 0, /**< Ibex Core 0 */
1118 kTopEarlgreyPlicTargetLast = 0, /**< \internal Final PLIC target */
1120
1121
1122/**
1123 * Alert Handler Source Peripheral.
1124 *
1125 * Enumeration used to determine which peripheral asserted the corresponding
1126 * alert.
1127 */
1129 kTopEarlgreyAlertPeripheralExternal = 0, /**< External Peripheral */
1148 kTopEarlgreyAlertPeripheralSysrstCtrlAon = 19, /**< sysrst_ctrl_aon */
1149 kTopEarlgreyAlertPeripheralAdcCtrlAon = 20, /**< adc_ctrl_aon */
1151 kTopEarlgreyAlertPeripheralAonTimerAon = 22, /**< aon_timer_aon */
1152 kTopEarlgreyAlertPeripheralSensorCtrlAon = 23, /**< sensor_ctrl_aon */
1153 kTopEarlgreyAlertPeripheralSramCtrlRetAon = 24, /**< sram_ctrl_ret_aon */
1166 kTopEarlgreyAlertPeripheralSramCtrlMain = 37, /**< sram_ctrl_main */
1168 kTopEarlgreyAlertPeripheralRvCoreIbex = 39, /**< rv_core_ibex */
1169 kTopEarlgreyAlertPeripheralLast = 39, /**< \internal Final Alert peripheral */
1171
1172/**
1173 * Alert Handler Alert Source.
1174 *
1175 * Enumeration of all Alert Handler Alert Sources. The alert sources belonging to
1176 * the same peripheral are guaranteed to be consecutive.
1177 */
1179 kTopEarlgreyAlertIdUart0FatalFault = 0, /**< uart0_fatal_fault */
1180 kTopEarlgreyAlertIdUart1FatalFault = 1, /**< uart1_fatal_fault */
1181 kTopEarlgreyAlertIdUart2FatalFault = 2, /**< uart2_fatal_fault */
1182 kTopEarlgreyAlertIdUart3FatalFault = 3, /**< uart3_fatal_fault */
1183 kTopEarlgreyAlertIdGpioFatalFault = 4, /**< gpio_fatal_fault */
1184 kTopEarlgreyAlertIdSpiDeviceFatalFault = 5, /**< spi_device_fatal_fault */
1185 kTopEarlgreyAlertIdI2c0FatalFault = 6, /**< i2c0_fatal_fault */
1186 kTopEarlgreyAlertIdI2c1FatalFault = 7, /**< i2c1_fatal_fault */
1187 kTopEarlgreyAlertIdI2c2FatalFault = 8, /**< i2c2_fatal_fault */
1188 kTopEarlgreyAlertIdRvTimerFatalFault = 9, /**< rv_timer_fatal_fault */
1189 kTopEarlgreyAlertIdOtpCtrlFatalMacroError = 10, /**< otp_ctrl_fatal_macro_error */
1190 kTopEarlgreyAlertIdOtpCtrlFatalCheckError = 11, /**< otp_ctrl_fatal_check_error */
1191 kTopEarlgreyAlertIdOtpCtrlFatalBusIntegError = 12, /**< otp_ctrl_fatal_bus_integ_error */
1192 kTopEarlgreyAlertIdOtpCtrlFatalPrimOtpAlert = 13, /**< otp_ctrl_fatal_prim_otp_alert */
1193 kTopEarlgreyAlertIdOtpCtrlRecovPrimOtpAlert = 14, /**< otp_ctrl_recov_prim_otp_alert */
1194 kTopEarlgreyAlertIdLcCtrlFatalProgError = 15, /**< lc_ctrl_fatal_prog_error */
1195 kTopEarlgreyAlertIdLcCtrlFatalStateError = 16, /**< lc_ctrl_fatal_state_error */
1196 kTopEarlgreyAlertIdLcCtrlFatalBusIntegError = 17, /**< lc_ctrl_fatal_bus_integ_error */
1197 kTopEarlgreyAlertIdSpiHost0FatalFault = 18, /**< spi_host0_fatal_fault */
1198 kTopEarlgreyAlertIdSpiHost1FatalFault = 19, /**< spi_host1_fatal_fault */
1199 kTopEarlgreyAlertIdUsbdevFatalFault = 20, /**< usbdev_fatal_fault */
1200 kTopEarlgreyAlertIdPwrmgrAonFatalFault = 21, /**< pwrmgr_aon_fatal_fault */
1201 kTopEarlgreyAlertIdRstmgrAonFatalFault = 22, /**< rstmgr_aon_fatal_fault */
1202 kTopEarlgreyAlertIdRstmgrAonFatalCnstyFault = 23, /**< rstmgr_aon_fatal_cnsty_fault */
1203 kTopEarlgreyAlertIdClkmgrAonRecovFault = 24, /**< clkmgr_aon_recov_fault */
1204 kTopEarlgreyAlertIdClkmgrAonFatalFault = 25, /**< clkmgr_aon_fatal_fault */
1205 kTopEarlgreyAlertIdSysrstCtrlAonFatalFault = 26, /**< sysrst_ctrl_aon_fatal_fault */
1206 kTopEarlgreyAlertIdAdcCtrlAonFatalFault = 27, /**< adc_ctrl_aon_fatal_fault */
1207 kTopEarlgreyAlertIdPinmuxAonFatalFault = 28, /**< pinmux_aon_fatal_fault */
1208 kTopEarlgreyAlertIdAonTimerAonFatalFault = 29, /**< aon_timer_aon_fatal_fault */
1209 kTopEarlgreyAlertIdSensorCtrlAonRecovAlert = 30, /**< sensor_ctrl_aon_recov_alert */
1210 kTopEarlgreyAlertIdSensorCtrlAonFatalAlert = 31, /**< sensor_ctrl_aon_fatal_alert */
1211 kTopEarlgreyAlertIdSramCtrlRetAonFatalError = 32, /**< sram_ctrl_ret_aon_fatal_error */
1212 kTopEarlgreyAlertIdFlashCtrlRecovErr = 33, /**< flash_ctrl_recov_err */
1213 kTopEarlgreyAlertIdFlashCtrlFatalStdErr = 34, /**< flash_ctrl_fatal_std_err */
1214 kTopEarlgreyAlertIdFlashCtrlFatalErr = 35, /**< flash_ctrl_fatal_err */
1215 kTopEarlgreyAlertIdFlashCtrlFatalPrimFlashAlert = 36, /**< flash_ctrl_fatal_prim_flash_alert */
1216 kTopEarlgreyAlertIdFlashCtrlRecovPrimFlashAlert = 37, /**< flash_ctrl_recov_prim_flash_alert */
1217 kTopEarlgreyAlertIdRvDmFatalFault = 38, /**< rv_dm_fatal_fault */
1218 kTopEarlgreyAlertIdRvPlicFatalFault = 39, /**< rv_plic_fatal_fault */
1219 kTopEarlgreyAlertIdAesRecovCtrlUpdateErr = 40, /**< aes_recov_ctrl_update_err */
1220 kTopEarlgreyAlertIdAesFatalFault = 41, /**< aes_fatal_fault */
1221 kTopEarlgreyAlertIdHmacFatalFault = 42, /**< hmac_fatal_fault */
1222 kTopEarlgreyAlertIdKmacRecovOperationErr = 43, /**< kmac_recov_operation_err */
1223 kTopEarlgreyAlertIdKmacFatalFaultErr = 44, /**< kmac_fatal_fault_err */
1224 kTopEarlgreyAlertIdOtbnFatal = 45, /**< otbn_fatal */
1225 kTopEarlgreyAlertIdOtbnRecov = 46, /**< otbn_recov */
1226 kTopEarlgreyAlertIdKeymgrRecovOperationErr = 47, /**< keymgr_recov_operation_err */
1227 kTopEarlgreyAlertIdKeymgrFatalFaultErr = 48, /**< keymgr_fatal_fault_err */
1228 kTopEarlgreyAlertIdCsrngRecovAlert = 49, /**< csrng_recov_alert */
1229 kTopEarlgreyAlertIdCsrngFatalAlert = 50, /**< csrng_fatal_alert */
1230 kTopEarlgreyAlertIdEntropySrcRecovAlert = 51, /**< entropy_src_recov_alert */
1231 kTopEarlgreyAlertIdEntropySrcFatalAlert = 52, /**< entropy_src_fatal_alert */
1232 kTopEarlgreyAlertIdEdn0RecovAlert = 53, /**< edn0_recov_alert */
1233 kTopEarlgreyAlertIdEdn0FatalAlert = 54, /**< edn0_fatal_alert */
1234 kTopEarlgreyAlertIdEdn1RecovAlert = 55, /**< edn1_recov_alert */
1235 kTopEarlgreyAlertIdEdn1FatalAlert = 56, /**< edn1_fatal_alert */
1236 kTopEarlgreyAlertIdSramCtrlMainFatalError = 57, /**< sram_ctrl_main_fatal_error */
1237 kTopEarlgreyAlertIdRomCtrlFatal = 58, /**< rom_ctrl_fatal */
1238 kTopEarlgreyAlertIdRvCoreIbexFatalSwErr = 59, /**< rv_core_ibex_fatal_sw_err */
1239 kTopEarlgreyAlertIdRvCoreIbexRecovSwErr = 60, /**< rv_core_ibex_recov_sw_err */
1240 kTopEarlgreyAlertIdRvCoreIbexFatalHwErr = 61, /**< rv_core_ibex_fatal_hw_err */
1241 kTopEarlgreyAlertIdRvCoreIbexRecovHwErr = 62, /**< rv_core_ibex_recov_hw_err */
1242 kTopEarlgreyAlertIdLast = 62, /**< \internal The Last Valid Alert ID. */
1244
1245/**
1246 * Alert Handler Alert Source to Peripheral Map
1247 *
1248 * This array is a mapping from `top_earlgrey_alert_id_t` to
1249 * `top_earlgrey_alert_peripheral_t`.
1250 */
1252 top_earlgrey_alert_for_peripheral[63];
1253
1254#define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2
1255
1256// PERIPH_INSEL ranges from 0 to NUM_MIO_PADS + 2 -1}
1257// 0 and 1 are tied to value 0 and 1
1258#define NUM_MIO_PADS 47
1259#define NUM_DIO_PADS 16
1260
1261#define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3
1262
1263/**
1264 * Pinmux Peripheral Input.
1265 */
1267 kTopEarlgreyPinmuxPeripheralInGpioGpio0 = 0, /**< Peripheral Input 0 */
1268 kTopEarlgreyPinmuxPeripheralInGpioGpio1 = 1, /**< Peripheral Input 1 */
1269 kTopEarlgreyPinmuxPeripheralInGpioGpio2 = 2, /**< Peripheral Input 2 */
1270 kTopEarlgreyPinmuxPeripheralInGpioGpio3 = 3, /**< Peripheral Input 3 */
1271 kTopEarlgreyPinmuxPeripheralInGpioGpio4 = 4, /**< Peripheral Input 4 */
1272 kTopEarlgreyPinmuxPeripheralInGpioGpio5 = 5, /**< Peripheral Input 5 */
1273 kTopEarlgreyPinmuxPeripheralInGpioGpio6 = 6, /**< Peripheral Input 6 */
1274 kTopEarlgreyPinmuxPeripheralInGpioGpio7 = 7, /**< Peripheral Input 7 */
1275 kTopEarlgreyPinmuxPeripheralInGpioGpio8 = 8, /**< Peripheral Input 8 */
1276 kTopEarlgreyPinmuxPeripheralInGpioGpio9 = 9, /**< Peripheral Input 9 */
1277 kTopEarlgreyPinmuxPeripheralInGpioGpio10 = 10, /**< Peripheral Input 10 */
1278 kTopEarlgreyPinmuxPeripheralInGpioGpio11 = 11, /**< Peripheral Input 11 */
1279 kTopEarlgreyPinmuxPeripheralInGpioGpio12 = 12, /**< Peripheral Input 12 */
1280 kTopEarlgreyPinmuxPeripheralInGpioGpio13 = 13, /**< Peripheral Input 13 */
1281 kTopEarlgreyPinmuxPeripheralInGpioGpio14 = 14, /**< Peripheral Input 14 */
1282 kTopEarlgreyPinmuxPeripheralInGpioGpio15 = 15, /**< Peripheral Input 15 */
1283 kTopEarlgreyPinmuxPeripheralInGpioGpio16 = 16, /**< Peripheral Input 16 */
1284 kTopEarlgreyPinmuxPeripheralInGpioGpio17 = 17, /**< Peripheral Input 17 */
1285 kTopEarlgreyPinmuxPeripheralInGpioGpio18 = 18, /**< Peripheral Input 18 */
1286 kTopEarlgreyPinmuxPeripheralInGpioGpio19 = 19, /**< Peripheral Input 19 */
1287 kTopEarlgreyPinmuxPeripheralInGpioGpio20 = 20, /**< Peripheral Input 20 */
1288 kTopEarlgreyPinmuxPeripheralInGpioGpio21 = 21, /**< Peripheral Input 21 */
1289 kTopEarlgreyPinmuxPeripheralInGpioGpio22 = 22, /**< Peripheral Input 22 */
1290 kTopEarlgreyPinmuxPeripheralInGpioGpio23 = 23, /**< Peripheral Input 23 */
1291 kTopEarlgreyPinmuxPeripheralInGpioGpio24 = 24, /**< Peripheral Input 24 */
1292 kTopEarlgreyPinmuxPeripheralInGpioGpio25 = 25, /**< Peripheral Input 25 */
1293 kTopEarlgreyPinmuxPeripheralInGpioGpio26 = 26, /**< Peripheral Input 26 */
1294 kTopEarlgreyPinmuxPeripheralInGpioGpio27 = 27, /**< Peripheral Input 27 */
1295 kTopEarlgreyPinmuxPeripheralInGpioGpio28 = 28, /**< Peripheral Input 28 */
1296 kTopEarlgreyPinmuxPeripheralInGpioGpio29 = 29, /**< Peripheral Input 29 */
1297 kTopEarlgreyPinmuxPeripheralInGpioGpio30 = 30, /**< Peripheral Input 30 */
1298 kTopEarlgreyPinmuxPeripheralInGpioGpio31 = 31, /**< Peripheral Input 31 */
1299 kTopEarlgreyPinmuxPeripheralInI2c0Sda = 32, /**< Peripheral Input 32 */
1300 kTopEarlgreyPinmuxPeripheralInI2c0Scl = 33, /**< Peripheral Input 33 */
1301 kTopEarlgreyPinmuxPeripheralInI2c1Sda = 34, /**< Peripheral Input 34 */
1302 kTopEarlgreyPinmuxPeripheralInI2c1Scl = 35, /**< Peripheral Input 35 */
1303 kTopEarlgreyPinmuxPeripheralInI2c2Sda = 36, /**< Peripheral Input 36 */
1304 kTopEarlgreyPinmuxPeripheralInI2c2Scl = 37, /**< Peripheral Input 37 */
1305 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd0 = 38, /**< Peripheral Input 38 */
1306 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd1 = 39, /**< Peripheral Input 39 */
1307 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd2 = 40, /**< Peripheral Input 40 */
1308 kTopEarlgreyPinmuxPeripheralInSpiHost1Sd3 = 41, /**< Peripheral Input 41 */
1309 kTopEarlgreyPinmuxPeripheralInUart0Rx = 42, /**< Peripheral Input 42 */
1310 kTopEarlgreyPinmuxPeripheralInUart1Rx = 43, /**< Peripheral Input 43 */
1311 kTopEarlgreyPinmuxPeripheralInUart2Rx = 44, /**< Peripheral Input 44 */
1312 kTopEarlgreyPinmuxPeripheralInUart3Rx = 45, /**< Peripheral Input 45 */
1313 kTopEarlgreyPinmuxPeripheralInSpiDeviceTpmCsb = 46, /**< Peripheral Input 46 */
1314 kTopEarlgreyPinmuxPeripheralInFlashCtrlTck = 47, /**< Peripheral Input 47 */
1315 kTopEarlgreyPinmuxPeripheralInFlashCtrlTms = 48, /**< Peripheral Input 48 */
1316 kTopEarlgreyPinmuxPeripheralInFlashCtrlTdi = 49, /**< Peripheral Input 49 */
1323 kTopEarlgreyPinmuxPeripheralInUsbdevSense = 56, /**< Peripheral Input 56 */
1324 kTopEarlgreyPinmuxPeripheralInLast = 56, /**< \internal Last valid peripheral input */
1326
1327/**
1328 * Pinmux MIO Input Selector.
1329 */
1331 kTopEarlgreyPinmuxInselConstantZero = 0, /**< Tie constantly to zero */
1332 kTopEarlgreyPinmuxInselConstantOne = 1, /**< Tie constantly to one */
1333 kTopEarlgreyPinmuxInselIoa0 = 2, /**< MIO Pad 0 */
1334 kTopEarlgreyPinmuxInselIoa1 = 3, /**< MIO Pad 1 */
1335 kTopEarlgreyPinmuxInselIoa2 = 4, /**< MIO Pad 2 */
1336 kTopEarlgreyPinmuxInselIoa3 = 5, /**< MIO Pad 3 */
1337 kTopEarlgreyPinmuxInselIoa4 = 6, /**< MIO Pad 4 */
1338 kTopEarlgreyPinmuxInselIoa5 = 7, /**< MIO Pad 5 */
1339 kTopEarlgreyPinmuxInselIoa6 = 8, /**< MIO Pad 6 */
1340 kTopEarlgreyPinmuxInselIoa7 = 9, /**< MIO Pad 7 */
1341 kTopEarlgreyPinmuxInselIoa8 = 10, /**< MIO Pad 8 */
1342 kTopEarlgreyPinmuxInselIob0 = 11, /**< MIO Pad 9 */
1343 kTopEarlgreyPinmuxInselIob1 = 12, /**< MIO Pad 10 */
1344 kTopEarlgreyPinmuxInselIob2 = 13, /**< MIO Pad 11 */
1345 kTopEarlgreyPinmuxInselIob3 = 14, /**< MIO Pad 12 */
1346 kTopEarlgreyPinmuxInselIob4 = 15, /**< MIO Pad 13 */
1347 kTopEarlgreyPinmuxInselIob5 = 16, /**< MIO Pad 14 */
1348 kTopEarlgreyPinmuxInselIob6 = 17, /**< MIO Pad 15 */
1349 kTopEarlgreyPinmuxInselIob7 = 18, /**< MIO Pad 16 */
1350 kTopEarlgreyPinmuxInselIob8 = 19, /**< MIO Pad 17 */
1351 kTopEarlgreyPinmuxInselIob9 = 20, /**< MIO Pad 18 */
1352 kTopEarlgreyPinmuxInselIob10 = 21, /**< MIO Pad 19 */
1353 kTopEarlgreyPinmuxInselIob11 = 22, /**< MIO Pad 20 */
1354 kTopEarlgreyPinmuxInselIob12 = 23, /**< MIO Pad 21 */
1355 kTopEarlgreyPinmuxInselIoc0 = 24, /**< MIO Pad 22 */
1356 kTopEarlgreyPinmuxInselIoc1 = 25, /**< MIO Pad 23 */
1357 kTopEarlgreyPinmuxInselIoc2 = 26, /**< MIO Pad 24 */
1358 kTopEarlgreyPinmuxInselIoc3 = 27, /**< MIO Pad 25 */
1359 kTopEarlgreyPinmuxInselIoc4 = 28, /**< MIO Pad 26 */
1360 kTopEarlgreyPinmuxInselIoc5 = 29, /**< MIO Pad 27 */
1361 kTopEarlgreyPinmuxInselIoc6 = 30, /**< MIO Pad 28 */
1362 kTopEarlgreyPinmuxInselIoc7 = 31, /**< MIO Pad 29 */
1363 kTopEarlgreyPinmuxInselIoc8 = 32, /**< MIO Pad 30 */
1364 kTopEarlgreyPinmuxInselIoc9 = 33, /**< MIO Pad 31 */
1365 kTopEarlgreyPinmuxInselIoc10 = 34, /**< MIO Pad 32 */
1366 kTopEarlgreyPinmuxInselIoc11 = 35, /**< MIO Pad 33 */
1367 kTopEarlgreyPinmuxInselIoc12 = 36, /**< MIO Pad 34 */
1368 kTopEarlgreyPinmuxInselIor0 = 37, /**< MIO Pad 35 */
1369 kTopEarlgreyPinmuxInselIor1 = 38, /**< MIO Pad 36 */
1370 kTopEarlgreyPinmuxInselIor2 = 39, /**< MIO Pad 37 */
1371 kTopEarlgreyPinmuxInselIor3 = 40, /**< MIO Pad 38 */
1372 kTopEarlgreyPinmuxInselIor4 = 41, /**< MIO Pad 39 */
1373 kTopEarlgreyPinmuxInselIor5 = 42, /**< MIO Pad 40 */
1374 kTopEarlgreyPinmuxInselIor6 = 43, /**< MIO Pad 41 */
1375 kTopEarlgreyPinmuxInselIor7 = 44, /**< MIO Pad 42 */
1376 kTopEarlgreyPinmuxInselIor10 = 45, /**< MIO Pad 43 */
1377 kTopEarlgreyPinmuxInselIor11 = 46, /**< MIO Pad 44 */
1378 kTopEarlgreyPinmuxInselIor12 = 47, /**< MIO Pad 45 */
1379 kTopEarlgreyPinmuxInselIor13 = 48, /**< MIO Pad 46 */
1380 kTopEarlgreyPinmuxInselLast = 48, /**< \internal Last valid insel value */
1382
1383/**
1384 * Pinmux MIO Output.
1385 */
1387 kTopEarlgreyPinmuxMioOutIoa0 = 0, /**< MIO Pad 0 */
1388 kTopEarlgreyPinmuxMioOutIoa1 = 1, /**< MIO Pad 1 */
1389 kTopEarlgreyPinmuxMioOutIoa2 = 2, /**< MIO Pad 2 */
1390 kTopEarlgreyPinmuxMioOutIoa3 = 3, /**< MIO Pad 3 */
1391 kTopEarlgreyPinmuxMioOutIoa4 = 4, /**< MIO Pad 4 */
1392 kTopEarlgreyPinmuxMioOutIoa5 = 5, /**< MIO Pad 5 */
1393 kTopEarlgreyPinmuxMioOutIoa6 = 6, /**< MIO Pad 6 */
1394 kTopEarlgreyPinmuxMioOutIoa7 = 7, /**< MIO Pad 7 */
1395 kTopEarlgreyPinmuxMioOutIoa8 = 8, /**< MIO Pad 8 */
1396 kTopEarlgreyPinmuxMioOutIob0 = 9, /**< MIO Pad 9 */
1397 kTopEarlgreyPinmuxMioOutIob1 = 10, /**< MIO Pad 10 */
1398 kTopEarlgreyPinmuxMioOutIob2 = 11, /**< MIO Pad 11 */
1399 kTopEarlgreyPinmuxMioOutIob3 = 12, /**< MIO Pad 12 */
1400 kTopEarlgreyPinmuxMioOutIob4 = 13, /**< MIO Pad 13 */
1401 kTopEarlgreyPinmuxMioOutIob5 = 14, /**< MIO Pad 14 */
1402 kTopEarlgreyPinmuxMioOutIob6 = 15, /**< MIO Pad 15 */
1403 kTopEarlgreyPinmuxMioOutIob7 = 16, /**< MIO Pad 16 */
1404 kTopEarlgreyPinmuxMioOutIob8 = 17, /**< MIO Pad 17 */
1405 kTopEarlgreyPinmuxMioOutIob9 = 18, /**< MIO Pad 18 */
1406 kTopEarlgreyPinmuxMioOutIob10 = 19, /**< MIO Pad 19 */
1407 kTopEarlgreyPinmuxMioOutIob11 = 20, /**< MIO Pad 20 */
1408 kTopEarlgreyPinmuxMioOutIob12 = 21, /**< MIO Pad 21 */
1409 kTopEarlgreyPinmuxMioOutIoc0 = 22, /**< MIO Pad 22 */
1410 kTopEarlgreyPinmuxMioOutIoc1 = 23, /**< MIO Pad 23 */
1411 kTopEarlgreyPinmuxMioOutIoc2 = 24, /**< MIO Pad 24 */
1412 kTopEarlgreyPinmuxMioOutIoc3 = 25, /**< MIO Pad 25 */
1413 kTopEarlgreyPinmuxMioOutIoc4 = 26, /**< MIO Pad 26 */
1414 kTopEarlgreyPinmuxMioOutIoc5 = 27, /**< MIO Pad 27 */
1415 kTopEarlgreyPinmuxMioOutIoc6 = 28, /**< MIO Pad 28 */
1416 kTopEarlgreyPinmuxMioOutIoc7 = 29, /**< MIO Pad 29 */
1417 kTopEarlgreyPinmuxMioOutIoc8 = 30, /**< MIO Pad 30 */
1418 kTopEarlgreyPinmuxMioOutIoc9 = 31, /**< MIO Pad 31 */
1419 kTopEarlgreyPinmuxMioOutIoc10 = 32, /**< MIO Pad 32 */
1420 kTopEarlgreyPinmuxMioOutIoc11 = 33, /**< MIO Pad 33 */
1421 kTopEarlgreyPinmuxMioOutIoc12 = 34, /**< MIO Pad 34 */
1422 kTopEarlgreyPinmuxMioOutIor0 = 35, /**< MIO Pad 35 */
1423 kTopEarlgreyPinmuxMioOutIor1 = 36, /**< MIO Pad 36 */
1424 kTopEarlgreyPinmuxMioOutIor2 = 37, /**< MIO Pad 37 */
1425 kTopEarlgreyPinmuxMioOutIor3 = 38, /**< MIO Pad 38 */
1426 kTopEarlgreyPinmuxMioOutIor4 = 39, /**< MIO Pad 39 */
1427 kTopEarlgreyPinmuxMioOutIor5 = 40, /**< MIO Pad 40 */
1428 kTopEarlgreyPinmuxMioOutIor6 = 41, /**< MIO Pad 41 */
1429 kTopEarlgreyPinmuxMioOutIor7 = 42, /**< MIO Pad 42 */
1430 kTopEarlgreyPinmuxMioOutIor10 = 43, /**< MIO Pad 43 */
1431 kTopEarlgreyPinmuxMioOutIor11 = 44, /**< MIO Pad 44 */
1432 kTopEarlgreyPinmuxMioOutIor12 = 45, /**< MIO Pad 45 */
1433 kTopEarlgreyPinmuxMioOutIor13 = 46, /**< MIO Pad 46 */
1434 kTopEarlgreyPinmuxMioOutLast = 46, /**< \internal Last valid mio output */
1436
1437/**
1438 * Pinmux Peripheral Output Selector.
1439 */
1441 kTopEarlgreyPinmuxOutselConstantZero = 0, /**< Tie constantly to zero */
1442 kTopEarlgreyPinmuxOutselConstantOne = 1, /**< Tie constantly to one */
1443 kTopEarlgreyPinmuxOutselConstantHighZ = 2, /**< Tie constantly to high-Z */
1444 kTopEarlgreyPinmuxOutselGpioGpio0 = 3, /**< Peripheral Output 0 */
1445 kTopEarlgreyPinmuxOutselGpioGpio1 = 4, /**< Peripheral Output 1 */
1446 kTopEarlgreyPinmuxOutselGpioGpio2 = 5, /**< Peripheral Output 2 */
1447 kTopEarlgreyPinmuxOutselGpioGpio3 = 6, /**< Peripheral Output 3 */
1448 kTopEarlgreyPinmuxOutselGpioGpio4 = 7, /**< Peripheral Output 4 */
1449 kTopEarlgreyPinmuxOutselGpioGpio5 = 8, /**< Peripheral Output 5 */
1450 kTopEarlgreyPinmuxOutselGpioGpio6 = 9, /**< Peripheral Output 6 */
1451 kTopEarlgreyPinmuxOutselGpioGpio7 = 10, /**< Peripheral Output 7 */
1452 kTopEarlgreyPinmuxOutselGpioGpio8 = 11, /**< Peripheral Output 8 */
1453 kTopEarlgreyPinmuxOutselGpioGpio9 = 12, /**< Peripheral Output 9 */
1454 kTopEarlgreyPinmuxOutselGpioGpio10 = 13, /**< Peripheral Output 10 */
1455 kTopEarlgreyPinmuxOutselGpioGpio11 = 14, /**< Peripheral Output 11 */
1456 kTopEarlgreyPinmuxOutselGpioGpio12 = 15, /**< Peripheral Output 12 */
1457 kTopEarlgreyPinmuxOutselGpioGpio13 = 16, /**< Peripheral Output 13 */
1458 kTopEarlgreyPinmuxOutselGpioGpio14 = 17, /**< Peripheral Output 14 */
1459 kTopEarlgreyPinmuxOutselGpioGpio15 = 18, /**< Peripheral Output 15 */
1460 kTopEarlgreyPinmuxOutselGpioGpio16 = 19, /**< Peripheral Output 16 */
1461 kTopEarlgreyPinmuxOutselGpioGpio17 = 20, /**< Peripheral Output 17 */
1462 kTopEarlgreyPinmuxOutselGpioGpio18 = 21, /**< Peripheral Output 18 */
1463 kTopEarlgreyPinmuxOutselGpioGpio19 = 22, /**< Peripheral Output 19 */
1464 kTopEarlgreyPinmuxOutselGpioGpio20 = 23, /**< Peripheral Output 20 */
1465 kTopEarlgreyPinmuxOutselGpioGpio21 = 24, /**< Peripheral Output 21 */
1466 kTopEarlgreyPinmuxOutselGpioGpio22 = 25, /**< Peripheral Output 22 */
1467 kTopEarlgreyPinmuxOutselGpioGpio23 = 26, /**< Peripheral Output 23 */
1468 kTopEarlgreyPinmuxOutselGpioGpio24 = 27, /**< Peripheral Output 24 */
1469 kTopEarlgreyPinmuxOutselGpioGpio25 = 28, /**< Peripheral Output 25 */
1470 kTopEarlgreyPinmuxOutselGpioGpio26 = 29, /**< Peripheral Output 26 */
1471 kTopEarlgreyPinmuxOutselGpioGpio27 = 30, /**< Peripheral Output 27 */
1472 kTopEarlgreyPinmuxOutselGpioGpio28 = 31, /**< Peripheral Output 28 */
1473 kTopEarlgreyPinmuxOutselGpioGpio29 = 32, /**< Peripheral Output 29 */
1474 kTopEarlgreyPinmuxOutselGpioGpio30 = 33, /**< Peripheral Output 30 */
1475 kTopEarlgreyPinmuxOutselGpioGpio31 = 34, /**< Peripheral Output 31 */
1476 kTopEarlgreyPinmuxOutselI2c0Sda = 35, /**< Peripheral Output 32 */
1477 kTopEarlgreyPinmuxOutselI2c0Scl = 36, /**< Peripheral Output 33 */
1478 kTopEarlgreyPinmuxOutselI2c1Sda = 37, /**< Peripheral Output 34 */
1479 kTopEarlgreyPinmuxOutselI2c1Scl = 38, /**< Peripheral Output 35 */
1480 kTopEarlgreyPinmuxOutselI2c2Sda = 39, /**< Peripheral Output 36 */
1481 kTopEarlgreyPinmuxOutselI2c2Scl = 40, /**< Peripheral Output 37 */
1482 kTopEarlgreyPinmuxOutselSpiHost1Sd0 = 41, /**< Peripheral Output 38 */
1483 kTopEarlgreyPinmuxOutselSpiHost1Sd1 = 42, /**< Peripheral Output 39 */
1484 kTopEarlgreyPinmuxOutselSpiHost1Sd2 = 43, /**< Peripheral Output 40 */
1485 kTopEarlgreyPinmuxOutselSpiHost1Sd3 = 44, /**< Peripheral Output 41 */
1486 kTopEarlgreyPinmuxOutselUart0Tx = 45, /**< Peripheral Output 42 */
1487 kTopEarlgreyPinmuxOutselUart1Tx = 46, /**< Peripheral Output 43 */
1488 kTopEarlgreyPinmuxOutselUart2Tx = 47, /**< Peripheral Output 44 */
1489 kTopEarlgreyPinmuxOutselUart3Tx = 48, /**< Peripheral Output 45 */
1490 kTopEarlgreyPinmuxOutselSpiHost1Sck = 49, /**< Peripheral Output 46 */
1491 kTopEarlgreyPinmuxOutselSpiHost1Csb = 50, /**< Peripheral Output 47 */
1492 kTopEarlgreyPinmuxOutselFlashCtrlTdo = 51, /**< Peripheral Output 48 */
1493 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut0 = 52, /**< Peripheral Output 49 */
1494 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut1 = 53, /**< Peripheral Output 50 */
1495 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut2 = 54, /**< Peripheral Output 51 */
1496 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut3 = 55, /**< Peripheral Output 52 */
1497 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut4 = 56, /**< Peripheral Output 53 */
1498 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut5 = 57, /**< Peripheral Output 54 */
1499 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut6 = 58, /**< Peripheral Output 55 */
1500 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut7 = 59, /**< Peripheral Output 56 */
1501 kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut8 = 60, /**< Peripheral Output 57 */
1502 kTopEarlgreyPinmuxOutselOtpMacroTest0 = 61, /**< Peripheral Output 58 */
1503 kTopEarlgreyPinmuxOutselSysrstCtrlAonBatDisable = 62, /**< Peripheral Output 59 */
1504 kTopEarlgreyPinmuxOutselSysrstCtrlAonKey0Out = 63, /**< Peripheral Output 60 */
1505 kTopEarlgreyPinmuxOutselSysrstCtrlAonKey1Out = 64, /**< Peripheral Output 61 */
1506 kTopEarlgreyPinmuxOutselSysrstCtrlAonKey2Out = 65, /**< Peripheral Output 62 */
1507 kTopEarlgreyPinmuxOutselSysrstCtrlAonPwrbOut = 66, /**< Peripheral Output 63 */
1508 kTopEarlgreyPinmuxOutselSysrstCtrlAonZ3Wakeup = 67, /**< Peripheral Output 64 */
1509 kTopEarlgreyPinmuxOutselLast = 67, /**< \internal Last valid outsel value */
1511
1512/**
1513 * Dedicated Pad Selects
1514 */
1516 kTopEarlgreyDirectPadsUsbdevUsbDp = 0, /**< */
1517 kTopEarlgreyDirectPadsUsbdevUsbDn = 1, /**< */
1518 kTopEarlgreyDirectPadsSpiHost0Sd0 = 2, /**< */
1519 kTopEarlgreyDirectPadsSpiHost0Sd1 = 3, /**< */
1520 kTopEarlgreyDirectPadsSpiHost0Sd2 = 4, /**< */
1521 kTopEarlgreyDirectPadsSpiHost0Sd3 = 5, /**< */
1522 kTopEarlgreyDirectPadsSpiDeviceSd0 = 6, /**< */
1523 kTopEarlgreyDirectPadsSpiDeviceSd1 = 7, /**< */
1524 kTopEarlgreyDirectPadsSpiDeviceSd2 = 8, /**< */
1525 kTopEarlgreyDirectPadsSpiDeviceSd3 = 9, /**< */
1526 kTopEarlgreyDirectPadsSysrstCtrlAonEcRstL = 10, /**< */
1527 kTopEarlgreyDirectPadsSysrstCtrlAonFlashWpL = 11, /**< */
1528 kTopEarlgreyDirectPadsSpiDeviceSck = 12, /**< */
1529 kTopEarlgreyDirectPadsSpiDeviceCsb = 13, /**< */
1530 kTopEarlgreyDirectPadsSpiHost0Sck = 14, /**< */
1531 kTopEarlgreyDirectPadsSpiHost0Csb = 15, /**< */
1532 kTopEarlgreyDirectPadsLast = 15, /**< \internal Last valid direct pad */
1534
1535/**
1536 * Muxed Pad Selects
1537 */
1539 kTopEarlgreyMuxedPadsIoa0 = 0, /**< */
1540 kTopEarlgreyMuxedPadsIoa1 = 1, /**< */
1541 kTopEarlgreyMuxedPadsIoa2 = 2, /**< */
1542 kTopEarlgreyMuxedPadsIoa3 = 3, /**< */
1543 kTopEarlgreyMuxedPadsIoa4 = 4, /**< */
1544 kTopEarlgreyMuxedPadsIoa5 = 5, /**< */
1545 kTopEarlgreyMuxedPadsIoa6 = 6, /**< */
1546 kTopEarlgreyMuxedPadsIoa7 = 7, /**< */
1547 kTopEarlgreyMuxedPadsIoa8 = 8, /**< */
1548 kTopEarlgreyMuxedPadsIob0 = 9, /**< */
1549 kTopEarlgreyMuxedPadsIob1 = 10, /**< */
1550 kTopEarlgreyMuxedPadsIob2 = 11, /**< */
1551 kTopEarlgreyMuxedPadsIob3 = 12, /**< */
1552 kTopEarlgreyMuxedPadsIob4 = 13, /**< */
1553 kTopEarlgreyMuxedPadsIob5 = 14, /**< */
1554 kTopEarlgreyMuxedPadsIob6 = 15, /**< */
1555 kTopEarlgreyMuxedPadsIob7 = 16, /**< */
1556 kTopEarlgreyMuxedPadsIob8 = 17, /**< */
1557 kTopEarlgreyMuxedPadsIob9 = 18, /**< */
1558 kTopEarlgreyMuxedPadsIob10 = 19, /**< */
1559 kTopEarlgreyMuxedPadsIob11 = 20, /**< */
1560 kTopEarlgreyMuxedPadsIob12 = 21, /**< */
1561 kTopEarlgreyMuxedPadsIoc0 = 22, /**< */
1562 kTopEarlgreyMuxedPadsIoc1 = 23, /**< */
1563 kTopEarlgreyMuxedPadsIoc2 = 24, /**< */
1564 kTopEarlgreyMuxedPadsIoc3 = 25, /**< */
1565 kTopEarlgreyMuxedPadsIoc4 = 26, /**< */
1566 kTopEarlgreyMuxedPadsIoc5 = 27, /**< */
1567 kTopEarlgreyMuxedPadsIoc6 = 28, /**< */
1568 kTopEarlgreyMuxedPadsIoc7 = 29, /**< */
1569 kTopEarlgreyMuxedPadsIoc8 = 30, /**< */
1570 kTopEarlgreyMuxedPadsIoc9 = 31, /**< */
1571 kTopEarlgreyMuxedPadsIoc10 = 32, /**< */
1572 kTopEarlgreyMuxedPadsIoc11 = 33, /**< */
1573 kTopEarlgreyMuxedPadsIoc12 = 34, /**< */
1574 kTopEarlgreyMuxedPadsIor0 = 35, /**< */
1575 kTopEarlgreyMuxedPadsIor1 = 36, /**< */
1576 kTopEarlgreyMuxedPadsIor2 = 37, /**< */
1577 kTopEarlgreyMuxedPadsIor3 = 38, /**< */
1578 kTopEarlgreyMuxedPadsIor4 = 39, /**< */
1579 kTopEarlgreyMuxedPadsIor5 = 40, /**< */
1580 kTopEarlgreyMuxedPadsIor6 = 41, /**< */
1581 kTopEarlgreyMuxedPadsIor7 = 42, /**< */
1582 kTopEarlgreyMuxedPadsIor10 = 43, /**< */
1583 kTopEarlgreyMuxedPadsIor11 = 44, /**< */
1584 kTopEarlgreyMuxedPadsIor12 = 45, /**< */
1585 kTopEarlgreyMuxedPadsIor13 = 46, /**< */
1586 kTopEarlgreyMuxedPadsLast = 46, /**< \internal Last valid muxed pad */
1588
1589/**
1590 * Power Manager Wakeup Signals
1591 */
1593 kTopEarlgreyPowerManagerWakeUpsSysrstCtrlAonWkupReq = 0, /**< */
1594 kTopEarlgreyPowerManagerWakeUpsAdcCtrlAonWkupReq = 1, /**< */
1595 kTopEarlgreyPowerManagerWakeUpsPinmuxAonPinWkupReq = 2, /**< */
1596 kTopEarlgreyPowerManagerWakeUpsPinmuxAonUsbWkupReq = 3, /**< */
1597 kTopEarlgreyPowerManagerWakeUpsAonTimerAonWkupReq = 4, /**< */
1598 kTopEarlgreyPowerManagerWakeUpsSensorCtrlAonWkupReq = 5, /**< */
1599 kTopEarlgreyPowerManagerWakeUpsLast = 5, /**< \internal Last valid pwrmgr wakeup signal */
1601
1602/**
1603 * Reset Manager Software Controlled Resets
1604 */
1606 kTopEarlgreyResetManagerSwResetsSpiDevice = 0, /**< */
1607 kTopEarlgreyResetManagerSwResetsSpiHost0 = 1, /**< */
1608 kTopEarlgreyResetManagerSwResetsSpiHost1 = 2, /**< */
1609 kTopEarlgreyResetManagerSwResetsUsb = 3, /**< */
1610 kTopEarlgreyResetManagerSwResetsUsbAon = 4, /**< */
1611 kTopEarlgreyResetManagerSwResetsI2c0 = 5, /**< */
1612 kTopEarlgreyResetManagerSwResetsI2c1 = 6, /**< */
1613 kTopEarlgreyResetManagerSwResetsI2c2 = 7, /**< */
1614 kTopEarlgreyResetManagerSwResetsLast = 7, /**< \internal Last valid rstmgr software reset request */
1616
1617/**
1618 * Power Manager Reset Request Signals
1619 */
1621 kTopEarlgreyPowerManagerResetRequestsSysrstCtrlAonRstReq = 0, /**< */
1622 kTopEarlgreyPowerManagerResetRequestsAonTimerAonAonTimerRstReq = 1, /**< */
1623 kTopEarlgreyPowerManagerResetRequestsLast = 1, /**< \internal Last valid pwrmgr reset_request signal */
1625
1626/**
1627 * Clock Manager Software-Controlled ("Gated") Clocks.
1628 *
1629 * The Software has full control over these clocks.
1630 */
1632 kTopEarlgreyGateableClocksIoDiv4Peri = 0, /**< Clock clk_io_div4_peri in group peri */
1633 kTopEarlgreyGateableClocksIoDiv2Peri = 1, /**< Clock clk_io_div2_peri in group peri */
1634 kTopEarlgreyGateableClocksIoPeri = 2, /**< Clock clk_io_peri in group peri */
1635 kTopEarlgreyGateableClocksUsbPeri = 3, /**< Clock clk_usb_peri in group peri */
1636 kTopEarlgreyGateableClocksLast = 3, /**< \internal Last Valid Gateable Clock */
1638
1639/**
1640 * Clock Manager Software-Hinted Clocks.
1641 *
1642 * The Software has partial control over these clocks. It can ask them to stop,
1643 * but the clock manager is in control of whether the clock actually is stopped.
1644 */
1646 kTopEarlgreyHintableClocksMainAes = 0, /**< Clock clk_main_aes in group trans */
1647 kTopEarlgreyHintableClocksMainHmac = 1, /**< Clock clk_main_hmac in group trans */
1648 kTopEarlgreyHintableClocksMainKmac = 2, /**< Clock clk_main_kmac in group trans */
1649 kTopEarlgreyHintableClocksMainOtbn = 3, /**< Clock clk_main_otbn in group trans */
1650 kTopEarlgreyHintableClocksLast = 3, /**< \internal Last Valid Hintable Clock */
1652
1653/**
1654 * MMIO Region
1655 *
1656 * MMIO region excludes any memory that is separate from the module
1657 * configuration space, i.e. ROM, main SRAM, and flash are excluded but
1658 * retention SRAM, spi_device memory, or usbdev memory are included.
1659 */
1660#define TOP_EARLGREY_MMIO_BASE_ADDR 0x40000000u
1661#define TOP_EARLGREY_MMIO_SIZE_BYTES 0x10000000u
1662
1663// Header Extern Guard
1664#ifdef __cplusplus
1665} // extern "C"
1666#endif
1667
1668#endif // OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_