Pavona Software APIs
top_scafi_deprecated.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/gen_top_sw.py -t hw/top_scafi_deprecated/data/autogen/top_scafi_deprecated.gen.hjson
8
9#ifndef OPENTITAN_HW_TOP_SCAFI_DEPRECATED_SW_AUTOGEN_TOP_SCAFI_DEPRECATED_H_
10#define OPENTITAN_HW_TOP_SCAFI_DEPRECATED_SW_AUTOGEN_TOP_SCAFI_DEPRECATED_H_
11
12/**
13 * @file
14 * @brief Top-specific Definitions
15 *
16 * This file contains preprocessor and type definitions for use within the
17 * device C/C++ codebase.
18 *
19 * These definitions are for information that depends on the top-specific chip
20 * configuration, which includes:
21 * - Device Memory Information (for Peripherals and Memory)
22 * - PLIC Interrupt ID Names and Source Mappings
23 * - Pinmux Pin/Select Names
24 * - Power Manager Wakeups
25 */
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/**
32 * Peripheral base address for uart0 in top scafi_deprecated.
33 *
34 * This should be used with #mmio_region_from_addr to access the memory-mapped
35 * registers associated with the peripheral (usually via a DIF).
36 */
37#define TOP_SCAFI_DEPRECATED_UART0_BASE_ADDR 0x40000000u
38
39/**
40 * Peripheral size for uart0 in top scafi_deprecated.
41 *
42 * This is the size (in bytes) of the peripheral's reserved memory area. All
43 * memory-mapped registers associated with this peripheral should have an
44 * address between #TOP_SCAFI_DEPRECATED_UART0_BASE_ADDR and
45 * `TOP_SCAFI_DEPRECATED_UART0_BASE_ADDR + TOP_SCAFI_DEPRECATED_UART0_SIZE_BYTES`.
46 */
47#define TOP_SCAFI_DEPRECATED_UART0_SIZE_BYTES 0x40u
48
49/**
50 * Peripheral base address for uart1 in top scafi_deprecated.
51 *
52 * This should be used with #mmio_region_from_addr to access the memory-mapped
53 * registers associated with the peripheral (usually via a DIF).
54 */
55#define TOP_SCAFI_DEPRECATED_UART1_BASE_ADDR 0x40010000u
56
57/**
58 * Peripheral size for uart1 in top scafi_deprecated.
59 *
60 * This is the size (in bytes) of the peripheral's reserved memory area. All
61 * memory-mapped registers associated with this peripheral should have an
62 * address between #TOP_SCAFI_DEPRECATED_UART1_BASE_ADDR and
63 * `TOP_SCAFI_DEPRECATED_UART1_BASE_ADDR + TOP_SCAFI_DEPRECATED_UART1_SIZE_BYTES`.
64 */
65#define TOP_SCAFI_DEPRECATED_UART1_SIZE_BYTES 0x40u
66
67/**
68 * Peripheral base address for gpio in top scafi_deprecated.
69 *
70 * This should be used with #mmio_region_from_addr to access the memory-mapped
71 * registers associated with the peripheral (usually via a DIF).
72 */
73#define TOP_SCAFI_DEPRECATED_GPIO_BASE_ADDR 0x40040000u
74
75/**
76 * Peripheral size for gpio in top scafi_deprecated.
77 *
78 * This is the size (in bytes) of the peripheral's reserved memory area. All
79 * memory-mapped registers associated with this peripheral should have an
80 * address between #TOP_SCAFI_DEPRECATED_GPIO_BASE_ADDR and
81 * `TOP_SCAFI_DEPRECATED_GPIO_BASE_ADDR + TOP_SCAFI_DEPRECATED_GPIO_SIZE_BYTES`.
82 */
83#define TOP_SCAFI_DEPRECATED_GPIO_SIZE_BYTES 0x80u
84
85/**
86 * Peripheral base address for spi_device in top scafi_deprecated.
87 *
88 * This should be used with #mmio_region_from_addr to access the memory-mapped
89 * registers associated with the peripheral (usually via a DIF).
90 */
91#define TOP_SCAFI_DEPRECATED_SPI_DEVICE_BASE_ADDR 0x40050000u
92
93/**
94 * Peripheral size for spi_device in top scafi_deprecated.
95 *
96 * This is the size (in bytes) of the peripheral's reserved memory area. All
97 * memory-mapped registers associated with this peripheral should have an
98 * address between #TOP_SCAFI_DEPRECATED_SPI_DEVICE_BASE_ADDR and
99 * `TOP_SCAFI_DEPRECATED_SPI_DEVICE_BASE_ADDR + TOP_SCAFI_DEPRECATED_SPI_DEVICE_SIZE_BYTES`.
100 */
101#define TOP_SCAFI_DEPRECATED_SPI_DEVICE_SIZE_BYTES 0x2000u
102
103/**
104 * Peripheral base address for spi_host0 in top scafi_deprecated.
105 *
106 * This should be used with #mmio_region_from_addr to access the memory-mapped
107 * registers associated with the peripheral (usually via a DIF).
108 */
109#define TOP_SCAFI_DEPRECATED_SPI_HOST0_BASE_ADDR 0x40060000u
110
111/**
112 * Peripheral size for spi_host0 in top scafi_deprecated.
113 *
114 * This is the size (in bytes) of the peripheral's reserved memory area. All
115 * memory-mapped registers associated with this peripheral should have an
116 * address between #TOP_SCAFI_DEPRECATED_SPI_HOST0_BASE_ADDR and
117 * `TOP_SCAFI_DEPRECATED_SPI_HOST0_BASE_ADDR + TOP_SCAFI_DEPRECATED_SPI_HOST0_SIZE_BYTES`.
118 */
119#define TOP_SCAFI_DEPRECATED_SPI_HOST0_SIZE_BYTES 0x40u
120
121/**
122 * Peripheral base address for rv_timer in top scafi_deprecated.
123 *
124 * This should be used with #mmio_region_from_addr to access the memory-mapped
125 * registers associated with the peripheral (usually via a DIF).
126 */
127#define TOP_SCAFI_DEPRECATED_RV_TIMER_BASE_ADDR 0x40100000u
128
129/**
130 * Peripheral size for rv_timer in top scafi_deprecated.
131 *
132 * This is the size (in bytes) of the peripheral's reserved memory area. All
133 * memory-mapped registers associated with this peripheral should have an
134 * address between #TOP_SCAFI_DEPRECATED_RV_TIMER_BASE_ADDR and
135 * `TOP_SCAFI_DEPRECATED_RV_TIMER_BASE_ADDR + TOP_SCAFI_DEPRECATED_RV_TIMER_SIZE_BYTES`.
136 */
137#define TOP_SCAFI_DEPRECATED_RV_TIMER_SIZE_BYTES 0x200u
138
139/**
140 * Peripheral base address for usbdev in top scafi_deprecated.
141 *
142 * This should be used with #mmio_region_from_addr to access the memory-mapped
143 * registers associated with the peripheral (usually via a DIF).
144 */
145#define TOP_SCAFI_DEPRECATED_USBDEV_BASE_ADDR 0x40320000u
146
147/**
148 * Peripheral size for usbdev in top scafi_deprecated.
149 *
150 * This is the size (in bytes) of the peripheral's reserved memory area. All
151 * memory-mapped registers associated with this peripheral should have an
152 * address between #TOP_SCAFI_DEPRECATED_USBDEV_BASE_ADDR and
153 * `TOP_SCAFI_DEPRECATED_USBDEV_BASE_ADDR + TOP_SCAFI_DEPRECATED_USBDEV_SIZE_BYTES`.
154 */
155#define TOP_SCAFI_DEPRECATED_USBDEV_SIZE_BYTES 0x1000u
156
157/**
158 * Peripheral base address for pwrmgr_aon in top scafi_deprecated.
159 *
160 * This should be used with #mmio_region_from_addr to access the memory-mapped
161 * registers associated with the peripheral (usually via a DIF).
162 */
163#define TOP_SCAFI_DEPRECATED_PWRMGR_AON_BASE_ADDR 0x40400000u
164
165/**
166 * Peripheral size for pwrmgr_aon in top scafi_deprecated.
167 *
168 * This is the size (in bytes) of the peripheral's reserved memory area. All
169 * memory-mapped registers associated with this peripheral should have an
170 * address between #TOP_SCAFI_DEPRECATED_PWRMGR_AON_BASE_ADDR and
171 * `TOP_SCAFI_DEPRECATED_PWRMGR_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_PWRMGR_AON_SIZE_BYTES`.
172 */
173#define TOP_SCAFI_DEPRECATED_PWRMGR_AON_SIZE_BYTES 0x80u
174
175/**
176 * Peripheral base address for rstmgr_aon in top scafi_deprecated.
177 *
178 * This should be used with #mmio_region_from_addr to access the memory-mapped
179 * registers associated with the peripheral (usually via a DIF).
180 */
181#define TOP_SCAFI_DEPRECATED_RSTMGR_AON_BASE_ADDR 0x40410000u
182
183/**
184 * Peripheral size for rstmgr_aon in top scafi_deprecated.
185 *
186 * This is the size (in bytes) of the peripheral's reserved memory area. All
187 * memory-mapped registers associated with this peripheral should have an
188 * address between #TOP_SCAFI_DEPRECATED_RSTMGR_AON_BASE_ADDR and
189 * `TOP_SCAFI_DEPRECATED_RSTMGR_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_RSTMGR_AON_SIZE_BYTES`.
190 */
191#define TOP_SCAFI_DEPRECATED_RSTMGR_AON_SIZE_BYTES 0x40u
192
193/**
194 * Peripheral base address for clkmgr_aon in top scafi_deprecated.
195 *
196 * This should be used with #mmio_region_from_addr to access the memory-mapped
197 * registers associated with the peripheral (usually via a DIF).
198 */
199#define TOP_SCAFI_DEPRECATED_CLKMGR_AON_BASE_ADDR 0x40420000u
200
201/**
202 * Peripheral size for clkmgr_aon in top scafi_deprecated.
203 *
204 * This is the size (in bytes) of the peripheral's reserved memory area. All
205 * memory-mapped registers associated with this peripheral should have an
206 * address between #TOP_SCAFI_DEPRECATED_CLKMGR_AON_BASE_ADDR and
207 * `TOP_SCAFI_DEPRECATED_CLKMGR_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_CLKMGR_AON_SIZE_BYTES`.
208 */
209#define TOP_SCAFI_DEPRECATED_CLKMGR_AON_SIZE_BYTES 0x80u
210
211/**
212 * Peripheral base address for pinmux_aon in top scafi_deprecated.
213 *
214 * This should be used with #mmio_region_from_addr to access the memory-mapped
215 * registers associated with the peripheral (usually via a DIF).
216 */
217#define TOP_SCAFI_DEPRECATED_PINMUX_AON_BASE_ADDR 0x40460000u
218
219/**
220 * Peripheral size for pinmux_aon in top scafi_deprecated.
221 *
222 * This is the size (in bytes) of the peripheral's reserved memory area. All
223 * memory-mapped registers associated with this peripheral should have an
224 * address between #TOP_SCAFI_DEPRECATED_PINMUX_AON_BASE_ADDR and
225 * `TOP_SCAFI_DEPRECATED_PINMUX_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_PINMUX_AON_SIZE_BYTES`.
226 */
227#define TOP_SCAFI_DEPRECATED_PINMUX_AON_SIZE_BYTES 0x1000u
228
229/**
230 * Peripheral base address for aon_timer_aon in top scafi_deprecated.
231 *
232 * This should be used with #mmio_region_from_addr to access the memory-mapped
233 * registers associated with the peripheral (usually via a DIF).
234 */
235#define TOP_SCAFI_DEPRECATED_AON_TIMER_AON_BASE_ADDR 0x40470000u
236
237/**
238 * Peripheral size for aon_timer_aon in top scafi_deprecated.
239 *
240 * This is the size (in bytes) of the peripheral's reserved memory area. All
241 * memory-mapped registers associated with this peripheral should have an
242 * address between #TOP_SCAFI_DEPRECATED_AON_TIMER_AON_BASE_ADDR and
243 * `TOP_SCAFI_DEPRECATED_AON_TIMER_AON_BASE_ADDR + TOP_SCAFI_DEPRECATED_AON_TIMER_AON_SIZE_BYTES`.
244 */
245#define TOP_SCAFI_DEPRECATED_AON_TIMER_AON_SIZE_BYTES 0x40u
246
247/**
248 * Peripheral base address for ast in top scafi_deprecated.
249 *
250 * This should be used with #mmio_region_from_addr to access the memory-mapped
251 * registers associated with the peripheral (usually via a DIF).
252 */
253#define TOP_SCAFI_DEPRECATED_AST_BASE_ADDR 0x40480000u
254
255/**
256 * Peripheral size for ast in top scafi_deprecated.
257 *
258 * This is the size (in bytes) of the peripheral's reserved memory area. All
259 * memory-mapped registers associated with this peripheral should have an
260 * address between #TOP_SCAFI_DEPRECATED_AST_BASE_ADDR and
261 * `TOP_SCAFI_DEPRECATED_AST_BASE_ADDR + TOP_SCAFI_DEPRECATED_AST_SIZE_BYTES`.
262 */
263#define TOP_SCAFI_DEPRECATED_AST_SIZE_BYTES 0x400u
264
265/**
266 * Peripheral base address for core device on flash_ctrl in top scafi_deprecated.
267 *
268 * This should be used with #mmio_region_from_addr to access the memory-mapped
269 * registers associated with the peripheral (usually via a DIF).
270 */
271#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_BASE_ADDR 0x41000000u
272
273/**
274 * Peripheral size for core device on flash_ctrl in top scafi_deprecated.
275 *
276 * This is the size (in bytes) of the peripheral's reserved memory area. All
277 * memory-mapped registers associated with this peripheral should have an
278 * address between #TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_BASE_ADDR and
279 * `TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_BASE_ADDR + TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_SIZE_BYTES`.
280 */
281#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_CORE_SIZE_BYTES 0x200u
282
283/**
284 * Peripheral base address for flash_macro_wrapper in top scafi_deprecated.
285 *
286 * This should be used with #mmio_region_from_addr to access the memory-mapped
287 * registers associated with the peripheral (usually via a DIF).
288 */
289#define TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_BASE_ADDR 0x41008000u
290
291/**
292 * Peripheral size for flash_macro_wrapper in top scafi_deprecated.
293 *
294 * This is the size (in bytes) of the peripheral's reserved memory area. All
295 * memory-mapped registers associated with this peripheral should have an
296 * address between #TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_BASE_ADDR and
297 * `TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_BASE_ADDR + TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_SIZE_BYTES`.
298 */
299#define TOP_SCAFI_DEPRECATED_FLASH_MACRO_WRAPPER_SIZE_BYTES 0x80u
300
301/**
302 * Peripheral base address for rv_plic in top scafi_deprecated.
303 *
304 * This should be used with #mmio_region_from_addr to access the memory-mapped
305 * registers associated with the peripheral (usually via a DIF).
306 */
307#define TOP_SCAFI_DEPRECATED_RV_PLIC_BASE_ADDR 0x48000000u
308
309/**
310 * Peripheral size for rv_plic in top scafi_deprecated.
311 *
312 * This is the size (in bytes) of the peripheral's reserved memory area. All
313 * memory-mapped registers associated with this peripheral should have an
314 * address between #TOP_SCAFI_DEPRECATED_RV_PLIC_BASE_ADDR and
315 * `TOP_SCAFI_DEPRECATED_RV_PLIC_BASE_ADDR + TOP_SCAFI_DEPRECATED_RV_PLIC_SIZE_BYTES`.
316 */
317#define TOP_SCAFI_DEPRECATED_RV_PLIC_SIZE_BYTES 0x8000000u
318
319/**
320 * Peripheral base address for aes in top scafi_deprecated.
321 *
322 * This should be used with #mmio_region_from_addr to access the memory-mapped
323 * registers associated with the peripheral (usually via a DIF).
324 */
325#define TOP_SCAFI_DEPRECATED_AES_BASE_ADDR 0x41100000u
326
327/**
328 * Peripheral size for aes in top scafi_deprecated.
329 *
330 * This is the size (in bytes) of the peripheral's reserved memory area. All
331 * memory-mapped registers associated with this peripheral should have an
332 * address between #TOP_SCAFI_DEPRECATED_AES_BASE_ADDR and
333 * `TOP_SCAFI_DEPRECATED_AES_BASE_ADDR + TOP_SCAFI_DEPRECATED_AES_SIZE_BYTES`.
334 */
335#define TOP_SCAFI_DEPRECATED_AES_SIZE_BYTES 0x100u
336
337/**
338 * Peripheral base address for regs device on sram_ctrl_main in top scafi_deprecated.
339 *
340 * This should be used with #mmio_region_from_addr to access the memory-mapped
341 * registers associated with the peripheral (usually via a DIF).
342 */
343#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_BASE_ADDR 0x411C0000u
344
345/**
346 * Peripheral size for regs device on sram_ctrl_main in top scafi_deprecated.
347 *
348 * This is the size (in bytes) of the peripheral's reserved memory area. All
349 * memory-mapped registers associated with this peripheral should have an
350 * address between #TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_BASE_ADDR and
351 * `TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_BASE_ADDR + TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_SIZE_BYTES`.
352 */
353#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_REGS_SIZE_BYTES 0x40u
354
355/**
356 * Peripheral base address for regs device on rom_ctrl in top scafi_deprecated.
357 *
358 * This should be used with #mmio_region_from_addr to access the memory-mapped
359 * registers associated with the peripheral (usually via a DIF).
360 */
361#define TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_BASE_ADDR 0x411E0000u
362
363/**
364 * Peripheral size for regs device on rom_ctrl in top scafi_deprecated.
365 *
366 * This is the size (in bytes) of the peripheral's reserved memory area. All
367 * memory-mapped registers associated with this peripheral should have an
368 * address between #TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_BASE_ADDR and
369 * `TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_BASE_ADDR + TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_SIZE_BYTES`.
370 */
371#define TOP_SCAFI_DEPRECATED_ROM_CTRL_REGS_SIZE_BYTES 0x80u
372
373/**
374 * Peripheral base address for cfg device on rv_core_ibex in top scafi_deprecated.
375 *
376 * This should be used with #mmio_region_from_addr to access the memory-mapped
377 * registers associated with the peripheral (usually via a DIF).
378 */
379#define TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_BASE_ADDR 0x411F0000u
380
381/**
382 * Peripheral size for cfg device on rv_core_ibex in top scafi_deprecated.
383 *
384 * This is the size (in bytes) of the peripheral's reserved memory area. All
385 * memory-mapped registers associated with this peripheral should have an
386 * address between #TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_BASE_ADDR and
387 * `TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_BASE_ADDR + TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_SIZE_BYTES`.
388 */
389#define TOP_SCAFI_DEPRECATED_RV_CORE_IBEX_CFG_SIZE_BYTES 0x100u
390
391
392/**
393 * Memory base address for mem memory on flash_ctrl in top scafi_deprecated.
394 */
395#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_MEM_BASE_ADDR 0x20000000u
396
397/**
398 * Memory size for mem memory on flash_ctrl in top scafi_deprecated.
399 */
400#define TOP_SCAFI_DEPRECATED_FLASH_CTRL_MEM_SIZE_BYTES 0x10000u
401
402/**
403 * Memory base address for ram memory on sram_ctrl_main in top scafi_deprecated.
404 */
405#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_RAM_BASE_ADDR 0x10000000u
406
407/**
408 * Memory size for ram memory on sram_ctrl_main in top scafi_deprecated.
409 */
410#define TOP_SCAFI_DEPRECATED_SRAM_CTRL_MAIN_RAM_SIZE_BYTES 0x20000u
411
412/**
413 * Memory base address for rom memory on rom_ctrl in top scafi_deprecated.
414 */
415#define TOP_SCAFI_DEPRECATED_ROM_CTRL_ROM_BASE_ADDR 0x8000u
416
417/**
418 * Memory size for rom memory on rom_ctrl in top scafi_deprecated.
419 */
420#define TOP_SCAFI_DEPRECATED_ROM_CTRL_ROM_SIZE_BYTES 0x8000u
421
422
423/**
424 * PLIC Interrupt Source Peripheral.
425 *
426 * Enumeration used to determine which peripheral asserted the corresponding
427 * interrupt.
428 */
442
443/**
444 * PLIC Interrupt Source.
445 *
446 * Enumeration of all PLIC interrupt sources. The interrupt sources belonging to
447 * the same peripheral are guaranteed to be consecutive.
448 */
450 kTopScafiDeprecatedPlicIrqIdNone = 0, /**< No Interrupt */
451 kTopScafiDeprecatedPlicIrqIdUart0TxWatermark = 1, /**< uart0_tx_watermark */
452 kTopScafiDeprecatedPlicIrqIdUart0RxWatermark = 2, /**< uart0_rx_watermark */
454 kTopScafiDeprecatedPlicIrqIdUart0RxOverflow = 4, /**< uart0_rx_overflow */
455 kTopScafiDeprecatedPlicIrqIdUart0RxFrameErr = 5, /**< uart0_rx_frame_err */
456 kTopScafiDeprecatedPlicIrqIdUart0RxBreakErr = 6, /**< uart0_rx_break_err */
457 kTopScafiDeprecatedPlicIrqIdUart0RxTimeout = 7, /**< uart0_rx_timeout */
458 kTopScafiDeprecatedPlicIrqIdUart0RxParityErr = 8, /**< uart0_rx_parity_err */
460 kTopScafiDeprecatedPlicIrqIdUart1TxWatermark = 10, /**< uart1_tx_watermark */
461 kTopScafiDeprecatedPlicIrqIdUart1RxWatermark = 11, /**< uart1_rx_watermark */
462 kTopScafiDeprecatedPlicIrqIdUart1TxDone = 12, /**< uart1_tx_done */
463 kTopScafiDeprecatedPlicIrqIdUart1RxOverflow = 13, /**< uart1_rx_overflow */
464 kTopScafiDeprecatedPlicIrqIdUart1RxFrameErr = 14, /**< uart1_rx_frame_err */
465 kTopScafiDeprecatedPlicIrqIdUart1RxBreakErr = 15, /**< uart1_rx_break_err */
466 kTopScafiDeprecatedPlicIrqIdUart1RxTimeout = 16, /**< uart1_rx_timeout */
467 kTopScafiDeprecatedPlicIrqIdUart1RxParityErr = 17, /**< uart1_rx_parity_err */
468 kTopScafiDeprecatedPlicIrqIdUart1TxEmpty = 18, /**< uart1_tx_empty */
479 kTopScafiDeprecatedPlicIrqIdGpioGpio10 = 29, /**< gpio_gpio 10 */
480 kTopScafiDeprecatedPlicIrqIdGpioGpio11 = 30, /**< gpio_gpio 11 */
481 kTopScafiDeprecatedPlicIrqIdGpioGpio12 = 31, /**< gpio_gpio 12 */
482 kTopScafiDeprecatedPlicIrqIdGpioGpio13 = 32, /**< gpio_gpio 13 */
483 kTopScafiDeprecatedPlicIrqIdGpioGpio14 = 33, /**< gpio_gpio 14 */
484 kTopScafiDeprecatedPlicIrqIdGpioGpio15 = 34, /**< gpio_gpio 15 */
485 kTopScafiDeprecatedPlicIrqIdGpioGpio16 = 35, /**< gpio_gpio 16 */
486 kTopScafiDeprecatedPlicIrqIdGpioGpio17 = 36, /**< gpio_gpio 17 */
487 kTopScafiDeprecatedPlicIrqIdGpioGpio18 = 37, /**< gpio_gpio 18 */
488 kTopScafiDeprecatedPlicIrqIdGpioGpio19 = 38, /**< gpio_gpio 19 */
489 kTopScafiDeprecatedPlicIrqIdGpioGpio20 = 39, /**< gpio_gpio 20 */
490 kTopScafiDeprecatedPlicIrqIdGpioGpio21 = 40, /**< gpio_gpio 21 */
491 kTopScafiDeprecatedPlicIrqIdGpioGpio22 = 41, /**< gpio_gpio 22 */
492 kTopScafiDeprecatedPlicIrqIdGpioGpio23 = 42, /**< gpio_gpio 23 */
493 kTopScafiDeprecatedPlicIrqIdGpioGpio24 = 43, /**< gpio_gpio 24 */
494 kTopScafiDeprecatedPlicIrqIdGpioGpio25 = 44, /**< gpio_gpio 25 */
495 kTopScafiDeprecatedPlicIrqIdGpioGpio26 = 45, /**< gpio_gpio 26 */
496 kTopScafiDeprecatedPlicIrqIdGpioGpio27 = 46, /**< gpio_gpio 27 */
497 kTopScafiDeprecatedPlicIrqIdGpioGpio28 = 47, /**< gpio_gpio 28 */
498 kTopScafiDeprecatedPlicIrqIdGpioGpio29 = 48, /**< gpio_gpio 29 */
499 kTopScafiDeprecatedPlicIrqIdGpioGpio30 = 49, /**< gpio_gpio 30 */
500 kTopScafiDeprecatedPlicIrqIdGpioGpio31 = 50, /**< gpio_gpio 31 */
501 kTopScafiDeprecatedPlicIrqIdSpiDeviceUploadCmdfifoNotEmpty = 51, /**< spi_device_upload_cmdfifo_not_empty */
502 kTopScafiDeprecatedPlicIrqIdSpiDeviceUploadPayloadNotEmpty = 52, /**< spi_device_upload_payload_not_empty */
503 kTopScafiDeprecatedPlicIrqIdSpiDeviceUploadPayloadOverflow = 53, /**< spi_device_upload_payload_overflow */
504 kTopScafiDeprecatedPlicIrqIdSpiDeviceReadbufWatermark = 54, /**< spi_device_readbuf_watermark */
505 kTopScafiDeprecatedPlicIrqIdSpiDeviceReadbufFlip = 55, /**< spi_device_readbuf_flip */
506 kTopScafiDeprecatedPlicIrqIdSpiDeviceTpmHeaderNotEmpty = 56, /**< spi_device_tpm_header_not_empty */
507 kTopScafiDeprecatedPlicIrqIdSpiDeviceTpmRdfifoCmdEnd = 57, /**< spi_device_tpm_rdfifo_cmd_end */
508 kTopScafiDeprecatedPlicIrqIdSpiDeviceTpmRdfifoDrop = 58, /**< spi_device_tpm_rdfifo_drop */
509 kTopScafiDeprecatedPlicIrqIdSpiHost0Error = 59, /**< spi_host0_error */
510 kTopScafiDeprecatedPlicIrqIdSpiHost0SpiEvent = 60, /**< spi_host0_spi_event */
511 kTopScafiDeprecatedPlicIrqIdUsbdevPktReceived = 61, /**< usbdev_pkt_received */
512 kTopScafiDeprecatedPlicIrqIdUsbdevPktSent = 62, /**< usbdev_pkt_sent */
513 kTopScafiDeprecatedPlicIrqIdUsbdevDisconnected = 63, /**< usbdev_disconnected */
514 kTopScafiDeprecatedPlicIrqIdUsbdevHostLost = 64, /**< usbdev_host_lost */
515 kTopScafiDeprecatedPlicIrqIdUsbdevLinkReset = 65, /**< usbdev_link_reset */
516 kTopScafiDeprecatedPlicIrqIdUsbdevLinkSuspend = 66, /**< usbdev_link_suspend */
517 kTopScafiDeprecatedPlicIrqIdUsbdevLinkResume = 67, /**< usbdev_link_resume */
518 kTopScafiDeprecatedPlicIrqIdUsbdevAvOutEmpty = 68, /**< usbdev_av_out_empty */
519 kTopScafiDeprecatedPlicIrqIdUsbdevRxFull = 69, /**< usbdev_rx_full */
520 kTopScafiDeprecatedPlicIrqIdUsbdevAvOverflow = 70, /**< usbdev_av_overflow */
521 kTopScafiDeprecatedPlicIrqIdUsbdevLinkInErr = 71, /**< usbdev_link_in_err */
522 kTopScafiDeprecatedPlicIrqIdUsbdevRxCrcErr = 72, /**< usbdev_rx_crc_err */
523 kTopScafiDeprecatedPlicIrqIdUsbdevRxPidErr = 73, /**< usbdev_rx_pid_err */
524 kTopScafiDeprecatedPlicIrqIdUsbdevRxBitstuffErr = 74, /**< usbdev_rx_bitstuff_err */
526 kTopScafiDeprecatedPlicIrqIdUsbdevPowered = 76, /**< usbdev_powered */
527 kTopScafiDeprecatedPlicIrqIdUsbdevLinkOutErr = 77, /**< usbdev_link_out_err */
528 kTopScafiDeprecatedPlicIrqIdUsbdevAvSetupEmpty = 78, /**< usbdev_av_setup_empty */
529 kTopScafiDeprecatedPlicIrqIdPwrmgrAonWakeup = 79, /**< pwrmgr_aon_wakeup */
530 kTopScafiDeprecatedPlicIrqIdAonTimerAonWkupTimerExpired = 80, /**< aon_timer_aon_wkup_timer_expired */
531 kTopScafiDeprecatedPlicIrqIdAonTimerAonWdogTimerBark = 81, /**< aon_timer_aon_wdog_timer_bark */
532 kTopScafiDeprecatedPlicIrqIdFlashCtrlProgEmpty = 82, /**< flash_ctrl_prog_empty */
533 kTopScafiDeprecatedPlicIrqIdFlashCtrlProgLvl = 83, /**< flash_ctrl_prog_lvl */
534 kTopScafiDeprecatedPlicIrqIdFlashCtrlRdFull = 84, /**< flash_ctrl_rd_full */
535 kTopScafiDeprecatedPlicIrqIdFlashCtrlRdLvl = 85, /**< flash_ctrl_rd_lvl */
536 kTopScafiDeprecatedPlicIrqIdFlashCtrlOpDone = 86, /**< flash_ctrl_op_done */
537 kTopScafiDeprecatedPlicIrqIdFlashCtrlCorrErr = 87, /**< flash_ctrl_corr_err */
538 kTopScafiDeprecatedPlicIrqIdLast = 87, /**< \internal The Last Valid Interrupt ID. */
540
541/**
542 * PLIC Interrupt Source to Peripheral Map
543 *
544 * This array is a mapping from `top_scafi_deprecated_plic_irq_id_t` to
545 * `top_scafi_deprecated_plic_peripheral_t`.
546 */
548 top_scafi_deprecated_plic_interrupt_for_peripheral[88];
549
550/**
551 * PLIC Interrupt Target.
552 *
553 * Enumeration used to determine which set of IE, CC, threshold registers to
554 * access for a given interrupt target.
555 */
557 kTopScafiDeprecatedPlicTargetIbex0 = 0, /**< Ibex Core 0 */
558 kTopScafiDeprecatedPlicTargetLast = 0, /**< \internal Final PLIC target */
560
561
562#define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2
563
564// PERIPH_INSEL ranges from 0 to NUM_MIO_PADS + 2 -1}
565// 0 and 1 are tied to value 0 and 1
566#define NUM_MIO_PADS 47
567#define NUM_DIO_PADS 14
568
569#define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3
570
571/**
572 * Pinmux Peripheral Input.
573 */
585 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio10 = 10, /**< Peripheral Input 10 */
586 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio11 = 11, /**< Peripheral Input 11 */
587 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio12 = 12, /**< Peripheral Input 12 */
588 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio13 = 13, /**< Peripheral Input 13 */
589 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio14 = 14, /**< Peripheral Input 14 */
590 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio15 = 15, /**< Peripheral Input 15 */
591 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio16 = 16, /**< Peripheral Input 16 */
592 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio17 = 17, /**< Peripheral Input 17 */
593 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio18 = 18, /**< Peripheral Input 18 */
594 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio19 = 19, /**< Peripheral Input 19 */
595 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio20 = 20, /**< Peripheral Input 20 */
596 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio21 = 21, /**< Peripheral Input 21 */
597 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio22 = 22, /**< Peripheral Input 22 */
598 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio23 = 23, /**< Peripheral Input 23 */
599 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio24 = 24, /**< Peripheral Input 24 */
600 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio25 = 25, /**< Peripheral Input 25 */
601 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio26 = 26, /**< Peripheral Input 26 */
602 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio27 = 27, /**< Peripheral Input 27 */
603 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio28 = 28, /**< Peripheral Input 28 */
604 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio29 = 29, /**< Peripheral Input 29 */
605 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio30 = 30, /**< Peripheral Input 30 */
606 kTopScafiDeprecatedPinmuxPeripheralInGpioGpio31 = 31, /**< Peripheral Input 31 */
607 kTopScafiDeprecatedPinmuxPeripheralInUart0Rx = 32, /**< Peripheral Input 32 */
608 kTopScafiDeprecatedPinmuxPeripheralInUart1Rx = 33, /**< Peripheral Input 33 */
609 kTopScafiDeprecatedPinmuxPeripheralInUsbdevSense = 34, /**< Peripheral Input 34 */
610 kTopScafiDeprecatedPinmuxPeripheralInLast = 34, /**< \internal Last valid peripheral input */
612
613/**
614 * Pinmux MIO Input Selector.
615 */
617 kTopScafiDeprecatedPinmuxInselConstantZero = 0, /**< Tie constantly to zero */
618 kTopScafiDeprecatedPinmuxInselConstantOne = 1, /**< Tie constantly to one */
629 kTopScafiDeprecatedPinmuxInselIob1 = 12, /**< MIO Pad 10 */
630 kTopScafiDeprecatedPinmuxInselIob2 = 13, /**< MIO Pad 11 */
631 kTopScafiDeprecatedPinmuxInselIob3 = 14, /**< MIO Pad 12 */
632 kTopScafiDeprecatedPinmuxInselIob4 = 15, /**< MIO Pad 13 */
633 kTopScafiDeprecatedPinmuxInselIob5 = 16, /**< MIO Pad 14 */
634 kTopScafiDeprecatedPinmuxInselIob6 = 17, /**< MIO Pad 15 */
635 kTopScafiDeprecatedPinmuxInselIob7 = 18, /**< MIO Pad 16 */
636 kTopScafiDeprecatedPinmuxInselIob8 = 19, /**< MIO Pad 17 */
637 kTopScafiDeprecatedPinmuxInselIob9 = 20, /**< MIO Pad 18 */
638 kTopScafiDeprecatedPinmuxInselIob10 = 21, /**< MIO Pad 19 */
639 kTopScafiDeprecatedPinmuxInselIob11 = 22, /**< MIO Pad 20 */
640 kTopScafiDeprecatedPinmuxInselIob12 = 23, /**< MIO Pad 21 */
641 kTopScafiDeprecatedPinmuxInselIoc0 = 24, /**< MIO Pad 22 */
642 kTopScafiDeprecatedPinmuxInselIoc1 = 25, /**< MIO Pad 23 */
643 kTopScafiDeprecatedPinmuxInselIoc2 = 26, /**< MIO Pad 24 */
644 kTopScafiDeprecatedPinmuxInselIoc3 = 27, /**< MIO Pad 25 */
645 kTopScafiDeprecatedPinmuxInselIoc4 = 28, /**< MIO Pad 26 */
646 kTopScafiDeprecatedPinmuxInselIoc5 = 29, /**< MIO Pad 27 */
647 kTopScafiDeprecatedPinmuxInselIoc6 = 30, /**< MIO Pad 28 */
648 kTopScafiDeprecatedPinmuxInselIoc7 = 31, /**< MIO Pad 29 */
649 kTopScafiDeprecatedPinmuxInselIoc8 = 32, /**< MIO Pad 30 */
650 kTopScafiDeprecatedPinmuxInselIoc9 = 33, /**< MIO Pad 31 */
651 kTopScafiDeprecatedPinmuxInselIoc10 = 34, /**< MIO Pad 32 */
652 kTopScafiDeprecatedPinmuxInselIoc11 = 35, /**< MIO Pad 33 */
653 kTopScafiDeprecatedPinmuxInselIoc12 = 36, /**< MIO Pad 34 */
654 kTopScafiDeprecatedPinmuxInselIor0 = 37, /**< MIO Pad 35 */
655 kTopScafiDeprecatedPinmuxInselIor1 = 38, /**< MIO Pad 36 */
656 kTopScafiDeprecatedPinmuxInselIor2 = 39, /**< MIO Pad 37 */
657 kTopScafiDeprecatedPinmuxInselIor3 = 40, /**< MIO Pad 38 */
658 kTopScafiDeprecatedPinmuxInselIor4 = 41, /**< MIO Pad 39 */
659 kTopScafiDeprecatedPinmuxInselIor5 = 42, /**< MIO Pad 40 */
660 kTopScafiDeprecatedPinmuxInselIor6 = 43, /**< MIO Pad 41 */
661 kTopScafiDeprecatedPinmuxInselIor7 = 44, /**< MIO Pad 42 */
662 kTopScafiDeprecatedPinmuxInselIor10 = 45, /**< MIO Pad 43 */
663 kTopScafiDeprecatedPinmuxInselIor11 = 46, /**< MIO Pad 44 */
664 kTopScafiDeprecatedPinmuxInselIor12 = 47, /**< MIO Pad 45 */
665 kTopScafiDeprecatedPinmuxInselIor13 = 48, /**< MIO Pad 46 */
666 kTopScafiDeprecatedPinmuxInselLast = 48, /**< \internal Last valid insel value */
668
669/**
670 * Pinmux MIO Output.
671 */
683 kTopScafiDeprecatedPinmuxMioOutIob1 = 10, /**< MIO Pad 10 */
684 kTopScafiDeprecatedPinmuxMioOutIob2 = 11, /**< MIO Pad 11 */
685 kTopScafiDeprecatedPinmuxMioOutIob3 = 12, /**< MIO Pad 12 */
686 kTopScafiDeprecatedPinmuxMioOutIob4 = 13, /**< MIO Pad 13 */
687 kTopScafiDeprecatedPinmuxMioOutIob5 = 14, /**< MIO Pad 14 */
688 kTopScafiDeprecatedPinmuxMioOutIob6 = 15, /**< MIO Pad 15 */
689 kTopScafiDeprecatedPinmuxMioOutIob7 = 16, /**< MIO Pad 16 */
690 kTopScafiDeprecatedPinmuxMioOutIob8 = 17, /**< MIO Pad 17 */
691 kTopScafiDeprecatedPinmuxMioOutIob9 = 18, /**< MIO Pad 18 */
695 kTopScafiDeprecatedPinmuxMioOutIoc0 = 22, /**< MIO Pad 22 */
696 kTopScafiDeprecatedPinmuxMioOutIoc1 = 23, /**< MIO Pad 23 */
697 kTopScafiDeprecatedPinmuxMioOutIoc2 = 24, /**< MIO Pad 24 */
698 kTopScafiDeprecatedPinmuxMioOutIoc3 = 25, /**< MIO Pad 25 */
699 kTopScafiDeprecatedPinmuxMioOutIoc4 = 26, /**< MIO Pad 26 */
700 kTopScafiDeprecatedPinmuxMioOutIoc5 = 27, /**< MIO Pad 27 */
701 kTopScafiDeprecatedPinmuxMioOutIoc6 = 28, /**< MIO Pad 28 */
702 kTopScafiDeprecatedPinmuxMioOutIoc7 = 29, /**< MIO Pad 29 */
703 kTopScafiDeprecatedPinmuxMioOutIoc8 = 30, /**< MIO Pad 30 */
704 kTopScafiDeprecatedPinmuxMioOutIoc9 = 31, /**< MIO Pad 31 */
708 kTopScafiDeprecatedPinmuxMioOutIor0 = 35, /**< MIO Pad 35 */
709 kTopScafiDeprecatedPinmuxMioOutIor1 = 36, /**< MIO Pad 36 */
710 kTopScafiDeprecatedPinmuxMioOutIor2 = 37, /**< MIO Pad 37 */
711 kTopScafiDeprecatedPinmuxMioOutIor3 = 38, /**< MIO Pad 38 */
712 kTopScafiDeprecatedPinmuxMioOutIor4 = 39, /**< MIO Pad 39 */
713 kTopScafiDeprecatedPinmuxMioOutIor5 = 40, /**< MIO Pad 40 */
714 kTopScafiDeprecatedPinmuxMioOutIor6 = 41, /**< MIO Pad 41 */
715 kTopScafiDeprecatedPinmuxMioOutIor7 = 42, /**< MIO Pad 42 */
720 kTopScafiDeprecatedPinmuxMioOutLast = 46, /**< \internal Last valid mio output */
722
723/**
724 * Pinmux Peripheral Output Selector.
725 */
727 kTopScafiDeprecatedPinmuxOutselConstantZero = 0, /**< Tie constantly to zero */
728 kTopScafiDeprecatedPinmuxOutselConstantOne = 1, /**< Tie constantly to one */
729 kTopScafiDeprecatedPinmuxOutselConstantHighZ = 2, /**< Tie constantly to high-Z */
730 kTopScafiDeprecatedPinmuxOutselGpioGpio0 = 3, /**< Peripheral Output 0 */
731 kTopScafiDeprecatedPinmuxOutselGpioGpio1 = 4, /**< Peripheral Output 1 */
732 kTopScafiDeprecatedPinmuxOutselGpioGpio2 = 5, /**< Peripheral Output 2 */
733 kTopScafiDeprecatedPinmuxOutselGpioGpio3 = 6, /**< Peripheral Output 3 */
734 kTopScafiDeprecatedPinmuxOutselGpioGpio4 = 7, /**< Peripheral Output 4 */
735 kTopScafiDeprecatedPinmuxOutselGpioGpio5 = 8, /**< Peripheral Output 5 */
736 kTopScafiDeprecatedPinmuxOutselGpioGpio6 = 9, /**< Peripheral Output 6 */
737 kTopScafiDeprecatedPinmuxOutselGpioGpio7 = 10, /**< Peripheral Output 7 */
738 kTopScafiDeprecatedPinmuxOutselGpioGpio8 = 11, /**< Peripheral Output 8 */
739 kTopScafiDeprecatedPinmuxOutselGpioGpio9 = 12, /**< Peripheral Output 9 */
740 kTopScafiDeprecatedPinmuxOutselGpioGpio10 = 13, /**< Peripheral Output 10 */
741 kTopScafiDeprecatedPinmuxOutselGpioGpio11 = 14, /**< Peripheral Output 11 */
742 kTopScafiDeprecatedPinmuxOutselGpioGpio12 = 15, /**< Peripheral Output 12 */
743 kTopScafiDeprecatedPinmuxOutselGpioGpio13 = 16, /**< Peripheral Output 13 */
744 kTopScafiDeprecatedPinmuxOutselGpioGpio14 = 17, /**< Peripheral Output 14 */
745 kTopScafiDeprecatedPinmuxOutselGpioGpio15 = 18, /**< Peripheral Output 15 */
746 kTopScafiDeprecatedPinmuxOutselGpioGpio16 = 19, /**< Peripheral Output 16 */
747 kTopScafiDeprecatedPinmuxOutselGpioGpio17 = 20, /**< Peripheral Output 17 */
748 kTopScafiDeprecatedPinmuxOutselGpioGpio18 = 21, /**< Peripheral Output 18 */
749 kTopScafiDeprecatedPinmuxOutselGpioGpio19 = 22, /**< Peripheral Output 19 */
750 kTopScafiDeprecatedPinmuxOutselGpioGpio20 = 23, /**< Peripheral Output 20 */
751 kTopScafiDeprecatedPinmuxOutselGpioGpio21 = 24, /**< Peripheral Output 21 */
752 kTopScafiDeprecatedPinmuxOutselGpioGpio22 = 25, /**< Peripheral Output 22 */
753 kTopScafiDeprecatedPinmuxOutselGpioGpio23 = 26, /**< Peripheral Output 23 */
754 kTopScafiDeprecatedPinmuxOutselGpioGpio24 = 27, /**< Peripheral Output 24 */
755 kTopScafiDeprecatedPinmuxOutselGpioGpio25 = 28, /**< Peripheral Output 25 */
756 kTopScafiDeprecatedPinmuxOutselGpioGpio26 = 29, /**< Peripheral Output 26 */
757 kTopScafiDeprecatedPinmuxOutselGpioGpio27 = 30, /**< Peripheral Output 27 */
758 kTopScafiDeprecatedPinmuxOutselGpioGpio28 = 31, /**< Peripheral Output 28 */
759 kTopScafiDeprecatedPinmuxOutselGpioGpio29 = 32, /**< Peripheral Output 29 */
760 kTopScafiDeprecatedPinmuxOutselGpioGpio30 = 33, /**< Peripheral Output 30 */
761 kTopScafiDeprecatedPinmuxOutselGpioGpio31 = 34, /**< Peripheral Output 31 */
762 kTopScafiDeprecatedPinmuxOutselUart0Tx = 35, /**< Peripheral Output 32 */
763 kTopScafiDeprecatedPinmuxOutselUart1Tx = 36, /**< Peripheral Output 33 */
764 kTopScafiDeprecatedPinmuxOutselLast = 36, /**< \internal Last valid outsel value */
766
767/**
768 * Dedicated Pad Selects
769 */
771 kTopScafiDeprecatedDirectPadsSpiHost0Sd0 = 0, /**< */
772 kTopScafiDeprecatedDirectPadsSpiHost0Sd1 = 1, /**< */
773 kTopScafiDeprecatedDirectPadsSpiHost0Sd2 = 2, /**< */
774 kTopScafiDeprecatedDirectPadsSpiHost0Sd3 = 3, /**< */
775 kTopScafiDeprecatedDirectPadsSpiDeviceSd0 = 4, /**< */
776 kTopScafiDeprecatedDirectPadsSpiDeviceSd1 = 5, /**< */
777 kTopScafiDeprecatedDirectPadsSpiDeviceSd2 = 6, /**< */
778 kTopScafiDeprecatedDirectPadsSpiDeviceSd3 = 7, /**< */
779 kTopScafiDeprecatedDirectPadsUsbdevUsbDp = 8, /**< */
780 kTopScafiDeprecatedDirectPadsUsbdevUsbDn = 9, /**< */
781 kTopScafiDeprecatedDirectPadsSpiDeviceSck = 10, /**< */
782 kTopScafiDeprecatedDirectPadsSpiDeviceCsb = 11, /**< */
783 kTopScafiDeprecatedDirectPadsSpiHost0Sck = 12, /**< */
784 kTopScafiDeprecatedDirectPadsSpiHost0Csb = 13, /**< */
785 kTopScafiDeprecatedDirectPadsLast = 13, /**< \internal Last valid direct pad */
787
788/**
789 * Muxed Pad Selects
790 */
792 kTopScafiDeprecatedMuxedPadsIoa0 = 0, /**< */
793 kTopScafiDeprecatedMuxedPadsIoa1 = 1, /**< */
794 kTopScafiDeprecatedMuxedPadsIoa2 = 2, /**< */
795 kTopScafiDeprecatedMuxedPadsIoa3 = 3, /**< */
796 kTopScafiDeprecatedMuxedPadsIoa4 = 4, /**< */
797 kTopScafiDeprecatedMuxedPadsIoa5 = 5, /**< */
798 kTopScafiDeprecatedMuxedPadsIoa6 = 6, /**< */
799 kTopScafiDeprecatedMuxedPadsIoa7 = 7, /**< */
800 kTopScafiDeprecatedMuxedPadsIoa8 = 8, /**< */
801 kTopScafiDeprecatedMuxedPadsIob0 = 9, /**< */
802 kTopScafiDeprecatedMuxedPadsIob1 = 10, /**< */
803 kTopScafiDeprecatedMuxedPadsIob2 = 11, /**< */
804 kTopScafiDeprecatedMuxedPadsIob3 = 12, /**< */
805 kTopScafiDeprecatedMuxedPadsIob4 = 13, /**< */
806 kTopScafiDeprecatedMuxedPadsIob5 = 14, /**< */
807 kTopScafiDeprecatedMuxedPadsIob6 = 15, /**< */
808 kTopScafiDeprecatedMuxedPadsIob7 = 16, /**< */
809 kTopScafiDeprecatedMuxedPadsIob8 = 17, /**< */
810 kTopScafiDeprecatedMuxedPadsIob9 = 18, /**< */
811 kTopScafiDeprecatedMuxedPadsIob10 = 19, /**< */
812 kTopScafiDeprecatedMuxedPadsIob11 = 20, /**< */
813 kTopScafiDeprecatedMuxedPadsIob12 = 21, /**< */
814 kTopScafiDeprecatedMuxedPadsIoc0 = 22, /**< */
815 kTopScafiDeprecatedMuxedPadsIoc1 = 23, /**< */
816 kTopScafiDeprecatedMuxedPadsIoc2 = 24, /**< */
817 kTopScafiDeprecatedMuxedPadsIoc3 = 25, /**< */
818 kTopScafiDeprecatedMuxedPadsIoc4 = 26, /**< */
819 kTopScafiDeprecatedMuxedPadsIoc5 = 27, /**< */
820 kTopScafiDeprecatedMuxedPadsIoc6 = 28, /**< */
821 kTopScafiDeprecatedMuxedPadsIoc7 = 29, /**< */
822 kTopScafiDeprecatedMuxedPadsIoc8 = 30, /**< */
823 kTopScafiDeprecatedMuxedPadsIoc9 = 31, /**< */
824 kTopScafiDeprecatedMuxedPadsIoc10 = 32, /**< */
825 kTopScafiDeprecatedMuxedPadsIoc11 = 33, /**< */
826 kTopScafiDeprecatedMuxedPadsIoc12 = 34, /**< */
827 kTopScafiDeprecatedMuxedPadsIor0 = 35, /**< */
828 kTopScafiDeprecatedMuxedPadsIor1 = 36, /**< */
829 kTopScafiDeprecatedMuxedPadsIor2 = 37, /**< */
830 kTopScafiDeprecatedMuxedPadsIor3 = 38, /**< */
831 kTopScafiDeprecatedMuxedPadsIor4 = 39, /**< */
832 kTopScafiDeprecatedMuxedPadsIor5 = 40, /**< */
833 kTopScafiDeprecatedMuxedPadsIor6 = 41, /**< */
834 kTopScafiDeprecatedMuxedPadsIor7 = 42, /**< */
835 kTopScafiDeprecatedMuxedPadsIor10 = 43, /**< */
836 kTopScafiDeprecatedMuxedPadsIor11 = 44, /**< */
837 kTopScafiDeprecatedMuxedPadsIor12 = 45, /**< */
838 kTopScafiDeprecatedMuxedPadsIor13 = 46, /**< */
839 kTopScafiDeprecatedMuxedPadsLast = 46, /**< \internal Last valid muxed pad */
841
842/**
843 * Power Manager Wakeup Signals
844 */
846 kTopScafiDeprecatedPowerManagerWakeUpsPinmuxAonPinWkupReq = 0, /**< */
847 kTopScafiDeprecatedPowerManagerWakeUpsPinmuxAonUsbWkupReq = 1, /**< */
848 kTopScafiDeprecatedPowerManagerWakeUpsAonTimerAonWkupReq = 2, /**< */
849 kTopScafiDeprecatedPowerManagerWakeUpsLast = 2, /**< \internal Last valid pwrmgr wakeup signal */
851
852/**
853 * Reset Manager Software Controlled Resets
854 */
856 kTopScafiDeprecatedResetManagerSwResetsSpiDevice = 0, /**< */
857 kTopScafiDeprecatedResetManagerSwResetsSpiHost0 = 1, /**< */
858 kTopScafiDeprecatedResetManagerSwResetsUsb = 2, /**< */
859 kTopScafiDeprecatedResetManagerSwResetsLast = 2, /**< \internal Last valid rstmgr software reset request */
861
862/**
863 * Power Manager Reset Request Signals
864 */
866 kTopScafiDeprecatedPowerManagerResetRequestsAonTimerAonAonTimerRstReq = 0, /**< */
867 kTopScafiDeprecatedPowerManagerResetRequestsLast = 0, /**< \internal Last valid pwrmgr reset_request signal */
869
870/**
871 * Clock Manager Software-Controlled ("Gated") Clocks.
872 *
873 * The Software has full control over these clocks.
874 */
876 kTopScafiDeprecatedGateableClocksIoDiv4Peri = 0, /**< Clock clk_io_div4_peri in group peri */
877 kTopScafiDeprecatedGateableClocksIoDiv2Peri = 1, /**< Clock clk_io_div2_peri in group peri */
878 kTopScafiDeprecatedGateableClocksIoPeri = 2, /**< Clock clk_io_peri in group peri */
879 kTopScafiDeprecatedGateableClocksUsbPeri = 3, /**< Clock clk_usb_peri in group peri */
880 kTopScafiDeprecatedGateableClocksLast = 3, /**< \internal Last Valid Gateable Clock */
882
883/**
884 * Clock Manager Software-Hinted Clocks.
885 *
886 * The Software has partial control over these clocks. It can ask them to stop,
887 * but the clock manager is in control of whether the clock actually is stopped.
888 */
890 kTopScafiDeprecatedHintableClocksMainAes = 0, /**< Clock clk_main_aes in group trans */
891 kTopScafiDeprecatedHintableClocksLast = 0, /**< \internal Last Valid Hintable Clock */
893
894/**
895 * MMIO Region
896 *
897 * MMIO region excludes any memory that is separate from the module
898 * configuration space, i.e. ROM, main SRAM, and flash are excluded but
899 * retention SRAM, spi_device memory, or usbdev memory are included.
900 */
901#define TOP_SCAFI_DEPRECATED_MMIO_BASE_ADDR 0x40000000u
902#define TOP_SCAFI_DEPRECATED_MMIO_SIZE_BYTES 0x10000000u
903
904// Header Extern Guard
905#ifdef __cplusplus
906} // extern "C"
907#endif
908
909#endif // OPENTITAN_HW_TOP_SCAFI_DEPRECATED_SW_AUTOGEN_TOP_SCAFI_DEPRECATED_H_