| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| |
| #ifndef OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_ |
| #define OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_ |
| |
| /** |
| * @file |
| * @brief Top-specific Definitions |
| * |
| * This file contains preprocessor and type definitions for use within the |
| * device C/C++ codebase. |
| * |
| * These definitions are for information that depends on the top-specific chip |
| * configuration, which includes: |
| * - Device Memory Information (for Peripherals and Memory) |
| * - PLIC Interrupt ID Names and Source Mappings |
| * - Alert ID Names and Source Mappings |
| * - Pinmux Pin/Select Names |
| * - Power Manager Wakeups |
| */ |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| /** |
| * Peripheral base address for uart0 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_UART0_BASE_ADDR 0x40000000u |
| |
| /** |
| * Peripheral size for uart0 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_UART0_BASE_ADDR and |
| * `TOP_EARLGREY_UART0_BASE_ADDR + TOP_EARLGREY_UART0_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_UART0_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for uart1 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_UART1_BASE_ADDR 0x40010000u |
| |
| /** |
| * Peripheral size for uart1 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_UART1_BASE_ADDR and |
| * `TOP_EARLGREY_UART1_BASE_ADDR + TOP_EARLGREY_UART1_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_UART1_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for uart2 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_UART2_BASE_ADDR 0x40020000u |
| |
| /** |
| * Peripheral size for uart2 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_UART2_BASE_ADDR and |
| * `TOP_EARLGREY_UART2_BASE_ADDR + TOP_EARLGREY_UART2_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_UART2_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for uart3 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_UART3_BASE_ADDR 0x40030000u |
| |
| /** |
| * Peripheral size for uart3 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_UART3_BASE_ADDR and |
| * `TOP_EARLGREY_UART3_BASE_ADDR + TOP_EARLGREY_UART3_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_UART3_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for gpio in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_GPIO_BASE_ADDR 0x40040000u |
| |
| /** |
| * Peripheral size for gpio in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_GPIO_BASE_ADDR and |
| * `TOP_EARLGREY_GPIO_BASE_ADDR + TOP_EARLGREY_GPIO_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_GPIO_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for spi_device in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_SPI_DEVICE_BASE_ADDR 0x40050000u |
| |
| /** |
| * Peripheral size for spi_device in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_SPI_DEVICE_BASE_ADDR and |
| * `TOP_EARLGREY_SPI_DEVICE_BASE_ADDR + TOP_EARLGREY_SPI_DEVICE_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_SPI_DEVICE_SIZE_BYTES 0x2000u |
| |
| /** |
| * Peripheral base address for spi_host0 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_SPI_HOST0_BASE_ADDR 0x40060000u |
| |
| /** |
| * Peripheral size for spi_host0 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_SPI_HOST0_BASE_ADDR and |
| * `TOP_EARLGREY_SPI_HOST0_BASE_ADDR + TOP_EARLGREY_SPI_HOST0_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_SPI_HOST0_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for spi_host1 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_SPI_HOST1_BASE_ADDR 0x40070000u |
| |
| /** |
| * Peripheral size for spi_host1 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_SPI_HOST1_BASE_ADDR and |
| * `TOP_EARLGREY_SPI_HOST1_BASE_ADDR + TOP_EARLGREY_SPI_HOST1_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_SPI_HOST1_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for i2c0 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_I2C0_BASE_ADDR 0x40080000u |
| |
| /** |
| * Peripheral size for i2c0 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_I2C0_BASE_ADDR and |
| * `TOP_EARLGREY_I2C0_BASE_ADDR + TOP_EARLGREY_I2C0_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_I2C0_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for i2c1 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_I2C1_BASE_ADDR 0x40090000u |
| |
| /** |
| * Peripheral size for i2c1 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_I2C1_BASE_ADDR and |
| * `TOP_EARLGREY_I2C1_BASE_ADDR + TOP_EARLGREY_I2C1_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_I2C1_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for i2c2 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_I2C2_BASE_ADDR 0x400A0000u |
| |
| /** |
| * Peripheral size for i2c2 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_I2C2_BASE_ADDR and |
| * `TOP_EARLGREY_I2C2_BASE_ADDR + TOP_EARLGREY_I2C2_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_I2C2_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for pattgen in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_PATTGEN_BASE_ADDR 0x400E0000u |
| |
| /** |
| * Peripheral size for pattgen in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_PATTGEN_BASE_ADDR and |
| * `TOP_EARLGREY_PATTGEN_BASE_ADDR + TOP_EARLGREY_PATTGEN_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_PATTGEN_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for rv_timer in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_RV_TIMER_BASE_ADDR 0x40100000u |
| |
| /** |
| * Peripheral size for rv_timer in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_RV_TIMER_BASE_ADDR and |
| * `TOP_EARLGREY_RV_TIMER_BASE_ADDR + TOP_EARLGREY_RV_TIMER_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_RV_TIMER_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for usbdev in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_USBDEV_BASE_ADDR 0x40110000u |
| |
| /** |
| * Peripheral size for usbdev in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_USBDEV_BASE_ADDR and |
| * `TOP_EARLGREY_USBDEV_BASE_ADDR + TOP_EARLGREY_USBDEV_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_USBDEV_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for otp_ctrl in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_OTP_CTRL_BASE_ADDR 0x40130000u |
| |
| /** |
| * Peripheral size for otp_ctrl in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_OTP_CTRL_BASE_ADDR and |
| * `TOP_EARLGREY_OTP_CTRL_BASE_ADDR + TOP_EARLGREY_OTP_CTRL_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_OTP_CTRL_SIZE_BYTES 0x4000u |
| |
| /** |
| * Peripheral base address for lc_ctrl in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_LC_CTRL_BASE_ADDR 0x40140000u |
| |
| /** |
| * Peripheral size for lc_ctrl in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_LC_CTRL_BASE_ADDR and |
| * `TOP_EARLGREY_LC_CTRL_BASE_ADDR + TOP_EARLGREY_LC_CTRL_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_LC_CTRL_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for alert_handler in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR 0x40150000u |
| |
| /** |
| * Peripheral size for alert_handler in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR and |
| * `TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR + TOP_EARLGREY_ALERT_HANDLER_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_ALERT_HANDLER_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for pwrmgr_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_PWRMGR_AON_BASE_ADDR 0x40400000u |
| |
| /** |
| * Peripheral size for pwrmgr_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_PWRMGR_AON_BASE_ADDR and |
| * `TOP_EARLGREY_PWRMGR_AON_BASE_ADDR + TOP_EARLGREY_PWRMGR_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_PWRMGR_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for rstmgr_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_RSTMGR_AON_BASE_ADDR 0x40410000u |
| |
| /** |
| * Peripheral size for rstmgr_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_RSTMGR_AON_BASE_ADDR and |
| * `TOP_EARLGREY_RSTMGR_AON_BASE_ADDR + TOP_EARLGREY_RSTMGR_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_RSTMGR_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for clkmgr_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_CLKMGR_AON_BASE_ADDR 0x40420000u |
| |
| /** |
| * Peripheral size for clkmgr_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_CLKMGR_AON_BASE_ADDR and |
| * `TOP_EARLGREY_CLKMGR_AON_BASE_ADDR + TOP_EARLGREY_CLKMGR_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_CLKMGR_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for pinmux_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_PINMUX_AON_BASE_ADDR 0x40460000u |
| |
| /** |
| * Peripheral size for pinmux_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_PINMUX_AON_BASE_ADDR and |
| * `TOP_EARLGREY_PINMUX_AON_BASE_ADDR + TOP_EARLGREY_PINMUX_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_PINMUX_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for aon_timer_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_AON_TIMER_AON_BASE_ADDR 0x40470000u |
| |
| /** |
| * Peripheral size for aon_timer_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_AON_TIMER_AON_BASE_ADDR and |
| * `TOP_EARLGREY_AON_TIMER_AON_BASE_ADDR + TOP_EARLGREY_AON_TIMER_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_AON_TIMER_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for ast in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_AST_BASE_ADDR 0x40480000u |
| |
| /** |
| * Peripheral size for ast in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_AST_BASE_ADDR and |
| * `TOP_EARLGREY_AST_BASE_ADDR + TOP_EARLGREY_AST_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_AST_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for sensor_ctrl_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_SENSOR_CTRL_AON_BASE_ADDR 0x40490000u |
| |
| /** |
| * Peripheral size for sensor_ctrl_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_SENSOR_CTRL_AON_BASE_ADDR and |
| * `TOP_EARLGREY_SENSOR_CTRL_AON_BASE_ADDR + TOP_EARLGREY_SENSOR_CTRL_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_SENSOR_CTRL_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for sram_ctrl_ret_aon in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_SRAM_CTRL_RET_AON_BASE_ADDR 0x40500000u |
| |
| /** |
| * Peripheral size for sram_ctrl_ret_aon in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_SRAM_CTRL_RET_AON_BASE_ADDR and |
| * `TOP_EARLGREY_SRAM_CTRL_RET_AON_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_RET_AON_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_SRAM_CTRL_RET_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for flash_ctrl in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_FLASH_CTRL_BASE_ADDR 0x41000000u |
| |
| /** |
| * Peripheral size for flash_ctrl in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_FLASH_CTRL_BASE_ADDR and |
| * `TOP_EARLGREY_FLASH_CTRL_BASE_ADDR + TOP_EARLGREY_FLASH_CTRL_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_FLASH_CTRL_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for rv_plic in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_RV_PLIC_BASE_ADDR 0x41010000u |
| |
| /** |
| * Peripheral size for rv_plic in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_RV_PLIC_BASE_ADDR and |
| * `TOP_EARLGREY_RV_PLIC_BASE_ADDR + TOP_EARLGREY_RV_PLIC_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_RV_PLIC_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for aes in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_AES_BASE_ADDR 0x41100000u |
| |
| /** |
| * Peripheral size for aes in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_AES_BASE_ADDR and |
| * `TOP_EARLGREY_AES_BASE_ADDR + TOP_EARLGREY_AES_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_AES_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for hmac in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_HMAC_BASE_ADDR 0x41110000u |
| |
| /** |
| * Peripheral size for hmac in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_HMAC_BASE_ADDR and |
| * `TOP_EARLGREY_HMAC_BASE_ADDR + TOP_EARLGREY_HMAC_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_HMAC_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for kmac in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_KMAC_BASE_ADDR 0x41120000u |
| |
| /** |
| * Peripheral size for kmac in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_KMAC_BASE_ADDR and |
| * `TOP_EARLGREY_KMAC_BASE_ADDR + TOP_EARLGREY_KMAC_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_KMAC_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for keymgr in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_KEYMGR_BASE_ADDR 0x41130000u |
| |
| /** |
| * Peripheral size for keymgr in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_KEYMGR_BASE_ADDR and |
| * `TOP_EARLGREY_KEYMGR_BASE_ADDR + TOP_EARLGREY_KEYMGR_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_KEYMGR_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for csrng in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_CSRNG_BASE_ADDR 0x41150000u |
| |
| /** |
| * Peripheral size for csrng in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_CSRNG_BASE_ADDR and |
| * `TOP_EARLGREY_CSRNG_BASE_ADDR + TOP_EARLGREY_CSRNG_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_CSRNG_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for entropy_src in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR 0x41160000u |
| |
| /** |
| * Peripheral size for entropy_src in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR and |
| * `TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR + TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for edn0 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_EDN0_BASE_ADDR 0x41170000u |
| |
| /** |
| * Peripheral size for edn0 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_EDN0_BASE_ADDR and |
| * `TOP_EARLGREY_EDN0_BASE_ADDR + TOP_EARLGREY_EDN0_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_EDN0_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for edn1 in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_EDN1_BASE_ADDR 0x41180000u |
| |
| /** |
| * Peripheral size for edn1 in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_EDN1_BASE_ADDR and |
| * `TOP_EARLGREY_EDN1_BASE_ADDR + TOP_EARLGREY_EDN1_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_EDN1_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for sram_ctrl_main in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_SRAM_CTRL_MAIN_BASE_ADDR 0x411C0000u |
| |
| /** |
| * Peripheral size for sram_ctrl_main in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_SRAM_CTRL_MAIN_BASE_ADDR and |
| * `TOP_EARLGREY_SRAM_CTRL_MAIN_BASE_ADDR + TOP_EARLGREY_SRAM_CTRL_MAIN_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_SRAM_CTRL_MAIN_SIZE_BYTES 0x1000u |
| |
| /** |
| * Peripheral base address for otbn in top earlgrey. |
| * |
| * This should be used with #mmio_region_from_addr to access the memory-mapped |
| * registers associated with the peripheral (usually via a DIF). |
| */ |
| #define TOP_EARLGREY_OTBN_BASE_ADDR 0x411D0000u |
| |
| /** |
| * Peripheral size for otbn in top earlgrey. |
| * |
| * This is the size (in bytes) of the peripheral's reserved memory area. All |
| * memory-mapped registers associated with this peripheral should have an |
| * address between #TOP_EARLGREY_OTBN_BASE_ADDR and |
| * `TOP_EARLGREY_OTBN_BASE_ADDR + TOP_EARLGREY_OTBN_SIZE_BYTES`. |
| */ |
| #define TOP_EARLGREY_OTBN_SIZE_BYTES 0x10000u |
| |
| |
| /** |
| * Memory base address for rom in top earlgrey. |
| */ |
| #define TOP_EARLGREY_ROM_BASE_ADDR 0x8000u |
| |
| /** |
| * Memory size for rom in top earlgrey. |
| */ |
| #define TOP_EARLGREY_ROM_SIZE_BYTES 0x4000u |
| |
| /** |
| * Memory base address for ram_main in top earlgrey. |
| */ |
| #define TOP_EARLGREY_RAM_MAIN_BASE_ADDR 0x10000000u |
| |
| /** |
| * Memory size for ram_main in top earlgrey. |
| */ |
| #define TOP_EARLGREY_RAM_MAIN_SIZE_BYTES 0x20000u |
| |
| /** |
| * Memory base address for ram_ret_aon in top earlgrey. |
| */ |
| #define TOP_EARLGREY_RAM_RET_AON_BASE_ADDR 0x40600000u |
| |
| /** |
| * Memory size for ram_ret_aon in top earlgrey. |
| */ |
| #define TOP_EARLGREY_RAM_RET_AON_SIZE_BYTES 0x1000u |
| |
| /** |
| * Memory base address for eflash in top earlgrey. |
| */ |
| #define TOP_EARLGREY_EFLASH_BASE_ADDR 0x20000000u |
| |
| /** |
| * Memory size for eflash in top earlgrey. |
| */ |
| #define TOP_EARLGREY_EFLASH_SIZE_BYTES 0x100000u |
| |
| |
| /** |
| * PLIC Interrupt Source Peripheral. |
| * |
| * Enumeration used to determine which peripheral asserted the corresponding |
| * interrupt. |
| */ |
| typedef enum top_earlgrey_plic_peripheral { |
| kTopEarlgreyPlicPeripheralUnknown = 0, /**< Unknown Peripheral */ |
| kTopEarlgreyPlicPeripheralUart0 = 1, /**< uart0 */ |
| kTopEarlgreyPlicPeripheralUart1 = 2, /**< uart1 */ |
| kTopEarlgreyPlicPeripheralUart2 = 3, /**< uart2 */ |
| kTopEarlgreyPlicPeripheralUart3 = 4, /**< uart3 */ |
| kTopEarlgreyPlicPeripheralGpio = 5, /**< gpio */ |
| kTopEarlgreyPlicPeripheralSpiDevice = 6, /**< spi_device */ |
| kTopEarlgreyPlicPeripheralSpiHost0 = 7, /**< spi_host0 */ |
| kTopEarlgreyPlicPeripheralSpiHost1 = 8, /**< spi_host1 */ |
| kTopEarlgreyPlicPeripheralI2c0 = 9, /**< i2c0 */ |
| kTopEarlgreyPlicPeripheralI2c1 = 10, /**< i2c1 */ |
| kTopEarlgreyPlicPeripheralI2c2 = 11, /**< i2c2 */ |
| kTopEarlgreyPlicPeripheralPattgen = 12, /**< pattgen */ |
| kTopEarlgreyPlicPeripheralRvTimer = 13, /**< rv_timer */ |
| kTopEarlgreyPlicPeripheralUsbdev = 14, /**< usbdev */ |
| kTopEarlgreyPlicPeripheralOtpCtrl = 15, /**< otp_ctrl */ |
| kTopEarlgreyPlicPeripheralAlertHandler = 16, /**< alert_handler */ |
| kTopEarlgreyPlicPeripheralPwrmgrAon = 17, /**< pwrmgr_aon */ |
| kTopEarlgreyPlicPeripheralAonTimerAon = 18, /**< aon_timer_aon */ |
| kTopEarlgreyPlicPeripheralFlashCtrl = 19, /**< flash_ctrl */ |
| kTopEarlgreyPlicPeripheralHmac = 20, /**< hmac */ |
| kTopEarlgreyPlicPeripheralKmac = 21, /**< kmac */ |
| kTopEarlgreyPlicPeripheralKeymgr = 22, /**< keymgr */ |
| kTopEarlgreyPlicPeripheralCsrng = 23, /**< csrng */ |
| kTopEarlgreyPlicPeripheralEntropySrc = 24, /**< entropy_src */ |
| kTopEarlgreyPlicPeripheralEdn0 = 25, /**< edn0 */ |
| kTopEarlgreyPlicPeripheralEdn1 = 26, /**< edn1 */ |
| kTopEarlgreyPlicPeripheralOtbn = 27, /**< otbn */ |
| kTopEarlgreyPlicPeripheralLast = 27, /**< \internal Final PLIC peripheral */ |
| } top_earlgrey_plic_peripheral_t; |
| |
| /** |
| * PLIC Interrupt Source. |
| * |
| * Enumeration of all PLIC interrupt sources. The interrupt sources belonging to |
| * the same peripheral are guaranteed to be consecutive. |
| */ |
| typedef enum top_earlgrey_plic_irq_id { |
| kTopEarlgreyPlicIrqIdNone = 0, /**< No Interrupt */ |
| kTopEarlgreyPlicIrqIdUart0TxWatermark = 1, /**< uart0_tx_watermark */ |
| kTopEarlgreyPlicIrqIdUart0RxWatermark = 2, /**< uart0_rx_watermark */ |
| kTopEarlgreyPlicIrqIdUart0TxEmpty = 3, /**< uart0_tx_empty */ |
| kTopEarlgreyPlicIrqIdUart0RxOverflow = 4, /**< uart0_rx_overflow */ |
| kTopEarlgreyPlicIrqIdUart0RxFrameErr = 5, /**< uart0_rx_frame_err */ |
| kTopEarlgreyPlicIrqIdUart0RxBreakErr = 6, /**< uart0_rx_break_err */ |
| kTopEarlgreyPlicIrqIdUart0RxTimeout = 7, /**< uart0_rx_timeout */ |
| kTopEarlgreyPlicIrqIdUart0RxParityErr = 8, /**< uart0_rx_parity_err */ |
| kTopEarlgreyPlicIrqIdUart1TxWatermark = 9, /**< uart1_tx_watermark */ |
| kTopEarlgreyPlicIrqIdUart1RxWatermark = 10, /**< uart1_rx_watermark */ |
| kTopEarlgreyPlicIrqIdUart1TxEmpty = 11, /**< uart1_tx_empty */ |
| kTopEarlgreyPlicIrqIdUart1RxOverflow = 12, /**< uart1_rx_overflow */ |
| kTopEarlgreyPlicIrqIdUart1RxFrameErr = 13, /**< uart1_rx_frame_err */ |
| kTopEarlgreyPlicIrqIdUart1RxBreakErr = 14, /**< uart1_rx_break_err */ |
| kTopEarlgreyPlicIrqIdUart1RxTimeout = 15, /**< uart1_rx_timeout */ |
| kTopEarlgreyPlicIrqIdUart1RxParityErr = 16, /**< uart1_rx_parity_err */ |
| kTopEarlgreyPlicIrqIdUart2TxWatermark = 17, /**< uart2_tx_watermark */ |
| kTopEarlgreyPlicIrqIdUart2RxWatermark = 18, /**< uart2_rx_watermark */ |
| kTopEarlgreyPlicIrqIdUart2TxEmpty = 19, /**< uart2_tx_empty */ |
| kTopEarlgreyPlicIrqIdUart2RxOverflow = 20, /**< uart2_rx_overflow */ |
| kTopEarlgreyPlicIrqIdUart2RxFrameErr = 21, /**< uart2_rx_frame_err */ |
| kTopEarlgreyPlicIrqIdUart2RxBreakErr = 22, /**< uart2_rx_break_err */ |
| kTopEarlgreyPlicIrqIdUart2RxTimeout = 23, /**< uart2_rx_timeout */ |
| kTopEarlgreyPlicIrqIdUart2RxParityErr = 24, /**< uart2_rx_parity_err */ |
| kTopEarlgreyPlicIrqIdUart3TxWatermark = 25, /**< uart3_tx_watermark */ |
| kTopEarlgreyPlicIrqIdUart3RxWatermark = 26, /**< uart3_rx_watermark */ |
| kTopEarlgreyPlicIrqIdUart3TxEmpty = 27, /**< uart3_tx_empty */ |
| kTopEarlgreyPlicIrqIdUart3RxOverflow = 28, /**< uart3_rx_overflow */ |
| kTopEarlgreyPlicIrqIdUart3RxFrameErr = 29, /**< uart3_rx_frame_err */ |
| kTopEarlgreyPlicIrqIdUart3RxBreakErr = 30, /**< uart3_rx_break_err */ |
| kTopEarlgreyPlicIrqIdUart3RxTimeout = 31, /**< uart3_rx_timeout */ |
| kTopEarlgreyPlicIrqIdUart3RxParityErr = 32, /**< uart3_rx_parity_err */ |
| kTopEarlgreyPlicIrqIdGpioGpio0 = 33, /**< gpio_gpio 0 */ |
| kTopEarlgreyPlicIrqIdGpioGpio1 = 34, /**< gpio_gpio 1 */ |
| kTopEarlgreyPlicIrqIdGpioGpio2 = 35, /**< gpio_gpio 2 */ |
| kTopEarlgreyPlicIrqIdGpioGpio3 = 36, /**< gpio_gpio 3 */ |
| kTopEarlgreyPlicIrqIdGpioGpio4 = 37, /**< gpio_gpio 4 */ |
| kTopEarlgreyPlicIrqIdGpioGpio5 = 38, /**< gpio_gpio 5 */ |
| kTopEarlgreyPlicIrqIdGpioGpio6 = 39, /**< gpio_gpio 6 */ |
| kTopEarlgreyPlicIrqIdGpioGpio7 = 40, /**< gpio_gpio 7 */ |
| kTopEarlgreyPlicIrqIdGpioGpio8 = 41, /**< gpio_gpio 8 */ |
| kTopEarlgreyPlicIrqIdGpioGpio9 = 42, /**< gpio_gpio 9 */ |
| kTopEarlgreyPlicIrqIdGpioGpio10 = 43, /**< gpio_gpio 10 */ |
| kTopEarlgreyPlicIrqIdGpioGpio11 = 44, /**< gpio_gpio 11 */ |
| kTopEarlgreyPlicIrqIdGpioGpio12 = 45, /**< gpio_gpio 12 */ |
| kTopEarlgreyPlicIrqIdGpioGpio13 = 46, /**< gpio_gpio 13 */ |
| kTopEarlgreyPlicIrqIdGpioGpio14 = 47, /**< gpio_gpio 14 */ |
| kTopEarlgreyPlicIrqIdGpioGpio15 = 48, /**< gpio_gpio 15 */ |
| kTopEarlgreyPlicIrqIdGpioGpio16 = 49, /**< gpio_gpio 16 */ |
| kTopEarlgreyPlicIrqIdGpioGpio17 = 50, /**< gpio_gpio 17 */ |
| kTopEarlgreyPlicIrqIdGpioGpio18 = 51, /**< gpio_gpio 18 */ |
| kTopEarlgreyPlicIrqIdGpioGpio19 = 52, /**< gpio_gpio 19 */ |
| kTopEarlgreyPlicIrqIdGpioGpio20 = 53, /**< gpio_gpio 20 */ |
| kTopEarlgreyPlicIrqIdGpioGpio21 = 54, /**< gpio_gpio 21 */ |
| kTopEarlgreyPlicIrqIdGpioGpio22 = 55, /**< gpio_gpio 22 */ |
| kTopEarlgreyPlicIrqIdGpioGpio23 = 56, /**< gpio_gpio 23 */ |
| kTopEarlgreyPlicIrqIdGpioGpio24 = 57, /**< gpio_gpio 24 */ |
| kTopEarlgreyPlicIrqIdGpioGpio25 = 58, /**< gpio_gpio 25 */ |
| kTopEarlgreyPlicIrqIdGpioGpio26 = 59, /**< gpio_gpio 26 */ |
| kTopEarlgreyPlicIrqIdGpioGpio27 = 60, /**< gpio_gpio 27 */ |
| kTopEarlgreyPlicIrqIdGpioGpio28 = 61, /**< gpio_gpio 28 */ |
| kTopEarlgreyPlicIrqIdGpioGpio29 = 62, /**< gpio_gpio 29 */ |
| kTopEarlgreyPlicIrqIdGpioGpio30 = 63, /**< gpio_gpio 30 */ |
| kTopEarlgreyPlicIrqIdGpioGpio31 = 64, /**< gpio_gpio 31 */ |
| kTopEarlgreyPlicIrqIdSpiDeviceRxf = 65, /**< spi_device_rxf */ |
| kTopEarlgreyPlicIrqIdSpiDeviceRxlvl = 66, /**< spi_device_rxlvl */ |
| kTopEarlgreyPlicIrqIdSpiDeviceTxlvl = 67, /**< spi_device_txlvl */ |
| kTopEarlgreyPlicIrqIdSpiDeviceRxerr = 68, /**< spi_device_rxerr */ |
| kTopEarlgreyPlicIrqIdSpiDeviceRxoverflow = 69, /**< spi_device_rxoverflow */ |
| kTopEarlgreyPlicIrqIdSpiDeviceTxunderflow = 70, /**< spi_device_txunderflow */ |
| kTopEarlgreyPlicIrqIdSpiHost0Error = 71, /**< spi_host0_error */ |
| kTopEarlgreyPlicIrqIdSpiHost0SpiEvent = 72, /**< spi_host0_spi_event */ |
| kTopEarlgreyPlicIrqIdSpiHost1Error = 73, /**< spi_host1_error */ |
| kTopEarlgreyPlicIrqIdSpiHost1SpiEvent = 74, /**< spi_host1_spi_event */ |
| kTopEarlgreyPlicIrqIdI2c0FmtWatermark = 75, /**< i2c0_fmt_watermark */ |
| kTopEarlgreyPlicIrqIdI2c0RxWatermark = 76, /**< i2c0_rx_watermark */ |
| kTopEarlgreyPlicIrqIdI2c0FmtOverflow = 77, /**< i2c0_fmt_overflow */ |
| kTopEarlgreyPlicIrqIdI2c0RxOverflow = 78, /**< i2c0_rx_overflow */ |
| kTopEarlgreyPlicIrqIdI2c0Nak = 79, /**< i2c0_nak */ |
| kTopEarlgreyPlicIrqIdI2c0SclInterference = 80, /**< i2c0_scl_interference */ |
| kTopEarlgreyPlicIrqIdI2c0SdaInterference = 81, /**< i2c0_sda_interference */ |
| kTopEarlgreyPlicIrqIdI2c0StretchTimeout = 82, /**< i2c0_stretch_timeout */ |
| kTopEarlgreyPlicIrqIdI2c0SdaUnstable = 83, /**< i2c0_sda_unstable */ |
| kTopEarlgreyPlicIrqIdI2c0TransComplete = 84, /**< i2c0_trans_complete */ |
| kTopEarlgreyPlicIrqIdI2c0TxEmpty = 85, /**< i2c0_tx_empty */ |
| kTopEarlgreyPlicIrqIdI2c0TxNonempty = 86, /**< i2c0_tx_nonempty */ |
| kTopEarlgreyPlicIrqIdI2c0TxOverflow = 87, /**< i2c0_tx_overflow */ |
| kTopEarlgreyPlicIrqIdI2c0AcqOverflow = 88, /**< i2c0_acq_overflow */ |
| kTopEarlgreyPlicIrqIdI2c0AckStop = 89, /**< i2c0_ack_stop */ |
| kTopEarlgreyPlicIrqIdI2c0HostTimeout = 90, /**< i2c0_host_timeout */ |
| kTopEarlgreyPlicIrqIdI2c1FmtWatermark = 91, /**< i2c1_fmt_watermark */ |
| kTopEarlgreyPlicIrqIdI2c1RxWatermark = 92, /**< i2c1_rx_watermark */ |
| kTopEarlgreyPlicIrqIdI2c1FmtOverflow = 93, /**< i2c1_fmt_overflow */ |
| kTopEarlgreyPlicIrqIdI2c1RxOverflow = 94, /**< i2c1_rx_overflow */ |
| kTopEarlgreyPlicIrqIdI2c1Nak = 95, /**< i2c1_nak */ |
| kTopEarlgreyPlicIrqIdI2c1SclInterference = 96, /**< i2c1_scl_interference */ |
| kTopEarlgreyPlicIrqIdI2c1SdaInterference = 97, /**< i2c1_sda_interference */ |
| kTopEarlgreyPlicIrqIdI2c1StretchTimeout = 98, /**< i2c1_stretch_timeout */ |
| kTopEarlgreyPlicIrqIdI2c1SdaUnstable = 99, /**< i2c1_sda_unstable */ |
| kTopEarlgreyPlicIrqIdI2c1TransComplete = 100, /**< i2c1_trans_complete */ |
| kTopEarlgreyPlicIrqIdI2c1TxEmpty = 101, /**< i2c1_tx_empty */ |
| kTopEarlgreyPlicIrqIdI2c1TxNonempty = 102, /**< i2c1_tx_nonempty */ |
| kTopEarlgreyPlicIrqIdI2c1TxOverflow = 103, /**< i2c1_tx_overflow */ |
| kTopEarlgreyPlicIrqIdI2c1AcqOverflow = 104, /**< i2c1_acq_overflow */ |
| kTopEarlgreyPlicIrqIdI2c1AckStop = 105, /**< i2c1_ack_stop */ |
| kTopEarlgreyPlicIrqIdI2c1HostTimeout = 106, /**< i2c1_host_timeout */ |
| kTopEarlgreyPlicIrqIdI2c2FmtWatermark = 107, /**< i2c2_fmt_watermark */ |
| kTopEarlgreyPlicIrqIdI2c2RxWatermark = 108, /**< i2c2_rx_watermark */ |
| kTopEarlgreyPlicIrqIdI2c2FmtOverflow = 109, /**< i2c2_fmt_overflow */ |
| kTopEarlgreyPlicIrqIdI2c2RxOverflow = 110, /**< i2c2_rx_overflow */ |
| kTopEarlgreyPlicIrqIdI2c2Nak = 111, /**< i2c2_nak */ |
| kTopEarlgreyPlicIrqIdI2c2SclInterference = 112, /**< i2c2_scl_interference */ |
| kTopEarlgreyPlicIrqIdI2c2SdaInterference = 113, /**< i2c2_sda_interference */ |
| kTopEarlgreyPlicIrqIdI2c2StretchTimeout = 114, /**< i2c2_stretch_timeout */ |
| kTopEarlgreyPlicIrqIdI2c2SdaUnstable = 115, /**< i2c2_sda_unstable */ |
| kTopEarlgreyPlicIrqIdI2c2TransComplete = 116, /**< i2c2_trans_complete */ |
| kTopEarlgreyPlicIrqIdI2c2TxEmpty = 117, /**< i2c2_tx_empty */ |
| kTopEarlgreyPlicIrqIdI2c2TxNonempty = 118, /**< i2c2_tx_nonempty */ |
| kTopEarlgreyPlicIrqIdI2c2TxOverflow = 119, /**< i2c2_tx_overflow */ |
| kTopEarlgreyPlicIrqIdI2c2AcqOverflow = 120, /**< i2c2_acq_overflow */ |
| kTopEarlgreyPlicIrqIdI2c2AckStop = 121, /**< i2c2_ack_stop */ |
| kTopEarlgreyPlicIrqIdI2c2HostTimeout = 122, /**< i2c2_host_timeout */ |
| kTopEarlgreyPlicIrqIdPattgenDoneCh0 = 123, /**< pattgen_done_ch0 */ |
| kTopEarlgreyPlicIrqIdPattgenDoneCh1 = 124, /**< pattgen_done_ch1 */ |
| kTopEarlgreyPlicIrqIdRvTimerTimerExpired0_0 = 125, /**< rv_timer_timer_expired_0_0 */ |
| kTopEarlgreyPlicIrqIdUsbdevPktReceived = 126, /**< usbdev_pkt_received */ |
| kTopEarlgreyPlicIrqIdUsbdevPktSent = 127, /**< usbdev_pkt_sent */ |
| kTopEarlgreyPlicIrqIdUsbdevDisconnected = 128, /**< usbdev_disconnected */ |
| kTopEarlgreyPlicIrqIdUsbdevHostLost = 129, /**< usbdev_host_lost */ |
| kTopEarlgreyPlicIrqIdUsbdevLinkReset = 130, /**< usbdev_link_reset */ |
| kTopEarlgreyPlicIrqIdUsbdevLinkSuspend = 131, /**< usbdev_link_suspend */ |
| kTopEarlgreyPlicIrqIdUsbdevLinkResume = 132, /**< usbdev_link_resume */ |
| kTopEarlgreyPlicIrqIdUsbdevAvEmpty = 133, /**< usbdev_av_empty */ |
| kTopEarlgreyPlicIrqIdUsbdevRxFull = 134, /**< usbdev_rx_full */ |
| kTopEarlgreyPlicIrqIdUsbdevAvOverflow = 135, /**< usbdev_av_overflow */ |
| kTopEarlgreyPlicIrqIdUsbdevLinkInErr = 136, /**< usbdev_link_in_err */ |
| kTopEarlgreyPlicIrqIdUsbdevRxCrcErr = 137, /**< usbdev_rx_crc_err */ |
| kTopEarlgreyPlicIrqIdUsbdevRxPidErr = 138, /**< usbdev_rx_pid_err */ |
| kTopEarlgreyPlicIrqIdUsbdevRxBitstuffErr = 139, /**< usbdev_rx_bitstuff_err */ |
| kTopEarlgreyPlicIrqIdUsbdevFrame = 140, /**< usbdev_frame */ |
| kTopEarlgreyPlicIrqIdUsbdevConnected = 141, /**< usbdev_connected */ |
| kTopEarlgreyPlicIrqIdUsbdevLinkOutErr = 142, /**< usbdev_link_out_err */ |
| kTopEarlgreyPlicIrqIdOtpCtrlOtpOperationDone = 143, /**< otp_ctrl_otp_operation_done */ |
| kTopEarlgreyPlicIrqIdOtpCtrlOtpError = 144, /**< otp_ctrl_otp_error */ |
| kTopEarlgreyPlicIrqIdAlertHandlerClassa = 145, /**< alert_handler_classa */ |
| kTopEarlgreyPlicIrqIdAlertHandlerClassb = 146, /**< alert_handler_classb */ |
| kTopEarlgreyPlicIrqIdAlertHandlerClassc = 147, /**< alert_handler_classc */ |
| kTopEarlgreyPlicIrqIdAlertHandlerClassd = 148, /**< alert_handler_classd */ |
| kTopEarlgreyPlicIrqIdPwrmgrAonWakeup = 149, /**< pwrmgr_aon_wakeup */ |
| kTopEarlgreyPlicIrqIdAonTimerAonWkupTimerExpired = 150, /**< aon_timer_aon_wkup_timer_expired */ |
| kTopEarlgreyPlicIrqIdAonTimerAonWdogTimerBark = 151, /**< aon_timer_aon_wdog_timer_bark */ |
| kTopEarlgreyPlicIrqIdFlashCtrlProgEmpty = 152, /**< flash_ctrl_prog_empty */ |
| kTopEarlgreyPlicIrqIdFlashCtrlProgLvl = 153, /**< flash_ctrl_prog_lvl */ |
| kTopEarlgreyPlicIrqIdFlashCtrlRdFull = 154, /**< flash_ctrl_rd_full */ |
| kTopEarlgreyPlicIrqIdFlashCtrlRdLvl = 155, /**< flash_ctrl_rd_lvl */ |
| kTopEarlgreyPlicIrqIdFlashCtrlOpDone = 156, /**< flash_ctrl_op_done */ |
| kTopEarlgreyPlicIrqIdHmacHmacDone = 157, /**< hmac_hmac_done */ |
| kTopEarlgreyPlicIrqIdHmacFifoEmpty = 158, /**< hmac_fifo_empty */ |
| kTopEarlgreyPlicIrqIdHmacHmacErr = 159, /**< hmac_hmac_err */ |
| kTopEarlgreyPlicIrqIdKmacKmacDone = 160, /**< kmac_kmac_done */ |
| kTopEarlgreyPlicIrqIdKmacFifoEmpty = 161, /**< kmac_fifo_empty */ |
| kTopEarlgreyPlicIrqIdKmacKmacErr = 162, /**< kmac_kmac_err */ |
| kTopEarlgreyPlicIrqIdKeymgrOpDone = 163, /**< keymgr_op_done */ |
| kTopEarlgreyPlicIrqIdCsrngCsCmdReqDone = 164, /**< csrng_cs_cmd_req_done */ |
| kTopEarlgreyPlicIrqIdCsrngCsEntropyReq = 165, /**< csrng_cs_entropy_req */ |
| kTopEarlgreyPlicIrqIdCsrngCsHwInstExc = 166, /**< csrng_cs_hw_inst_exc */ |
| kTopEarlgreyPlicIrqIdCsrngCsFatalErr = 167, /**< csrng_cs_fatal_err */ |
| kTopEarlgreyPlicIrqIdEntropySrcEsEntropyValid = 168, /**< entropy_src_es_entropy_valid */ |
| kTopEarlgreyPlicIrqIdEntropySrcEsHealthTestFailed = 169, /**< entropy_src_es_health_test_failed */ |
| kTopEarlgreyPlicIrqIdEntropySrcEsFatalErr = 170, /**< entropy_src_es_fatal_err */ |
| kTopEarlgreyPlicIrqIdEdn0EdnCmdReqDone = 171, /**< edn0_edn_cmd_req_done */ |
| kTopEarlgreyPlicIrqIdEdn0EdnFatalErr = 172, /**< edn0_edn_fatal_err */ |
| kTopEarlgreyPlicIrqIdEdn1EdnCmdReqDone = 173, /**< edn1_edn_cmd_req_done */ |
| kTopEarlgreyPlicIrqIdEdn1EdnFatalErr = 174, /**< edn1_edn_fatal_err */ |
| kTopEarlgreyPlicIrqIdOtbnDone = 175, /**< otbn_done */ |
| kTopEarlgreyPlicIrqIdLast = 175, /**< \internal The Last Valid Interrupt ID. */ |
| } top_earlgrey_plic_irq_id_t; |
| |
| /** |
| * PLIC Interrupt Source to Peripheral Map |
| * |
| * This array is a mapping from `top_earlgrey_plic_irq_id_t` to |
| * `top_earlgrey_plic_peripheral_t`. |
| */ |
| extern const top_earlgrey_plic_peripheral_t |
| top_earlgrey_plic_interrupt_for_peripheral[176]; |
| |
| /** |
| * PLIC Interrupt Target. |
| * |
| * Enumeration used to determine which set of IE, CC, threshold registers to |
| * access for a given interrupt target. |
| */ |
| typedef enum top_earlgrey_plic_target { |
| kTopEarlgreyPlicTargetIbex0 = 0, /**< Ibex Core 0 */ |
| kTopEarlgreyPlicTargetLast = 0, /**< \internal Final PLIC target */ |
| } top_earlgrey_plic_target_t; |
| |
| /** |
| * Alert Handler Source Peripheral. |
| * |
| * Enumeration used to determine which peripheral asserted the corresponding |
| * alert. |
| */ |
| typedef enum top_earlgrey_alert_peripheral { |
| kTopEarlgreyAlertPeripheralOtpCtrl = 0, /**< otp_ctrl */ |
| kTopEarlgreyAlertPeripheralLcCtrl = 1, /**< lc_ctrl */ |
| kTopEarlgreyAlertPeripheralSensorCtrlAon = 2, /**< sensor_ctrl_aon */ |
| kTopEarlgreyAlertPeripheralSramCtrlRetAon = 3, /**< sram_ctrl_ret_aon */ |
| kTopEarlgreyAlertPeripheralFlashCtrl = 4, /**< flash_ctrl */ |
| kTopEarlgreyAlertPeripheralAes = 5, /**< aes */ |
| kTopEarlgreyAlertPeripheralKeymgr = 6, /**< keymgr */ |
| kTopEarlgreyAlertPeripheralCsrng = 7, /**< csrng */ |
| kTopEarlgreyAlertPeripheralEntropySrc = 8, /**< entropy_src */ |
| kTopEarlgreyAlertPeripheralEdn0 = 9, /**< edn0 */ |
| kTopEarlgreyAlertPeripheralEdn1 = 10, /**< edn1 */ |
| kTopEarlgreyAlertPeripheralSramCtrlMain = 11, /**< sram_ctrl_main */ |
| kTopEarlgreyAlertPeripheralOtbn = 12, /**< otbn */ |
| kTopEarlgreyAlertPeripheralLast = 12, /**< \internal Final Alert peripheral */ |
| } top_earlgrey_alert_peripheral_t; |
| |
| /** |
| * Alert Handler Alert Source. |
| * |
| * Enumeration of all Alert Handler Alert Sources. The alert sources belonging to |
| * the same peripheral are guaranteed to be consecutive. |
| */ |
| typedef enum top_earlgrey_alert_id { |
| kTopEarlgreyAlertIdOtpCtrlFatalMacroError = 0, /**< otp_ctrl_fatal_macro_error */ |
| kTopEarlgreyAlertIdOtpCtrlFatalCheckError = 1, /**< otp_ctrl_fatal_check_error */ |
| kTopEarlgreyAlertIdLcCtrlFatalProgError = 2, /**< lc_ctrl_fatal_prog_error */ |
| kTopEarlgreyAlertIdLcCtrlFatalStateError = 3, /**< lc_ctrl_fatal_state_error */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovAs = 4, /**< sensor_ctrl_aon_recov_as */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovCg = 5, /**< sensor_ctrl_aon_recov_cg */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovGd = 6, /**< sensor_ctrl_aon_recov_gd */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovTsHi = 7, /**< sensor_ctrl_aon_recov_ts_hi */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovTsLo = 8, /**< sensor_ctrl_aon_recov_ts_lo */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovLs = 9, /**< sensor_ctrl_aon_recov_ls */ |
| kTopEarlgreyAlertIdSensorCtrlAonRecovOt = 10, /**< sensor_ctrl_aon_recov_ot */ |
| kTopEarlgreyAlertIdSramCtrlRetAonFatalIntgError = 11, /**< sram_ctrl_ret_aon_fatal_intg_error */ |
| kTopEarlgreyAlertIdSramCtrlRetAonFatalParityError = 12, /**< sram_ctrl_ret_aon_fatal_parity_error */ |
| kTopEarlgreyAlertIdFlashCtrlRecovErr = 13, /**< flash_ctrl_recov_err */ |
| kTopEarlgreyAlertIdFlashCtrlRecovMpErr = 14, /**< flash_ctrl_recov_mp_err */ |
| kTopEarlgreyAlertIdFlashCtrlRecovEccErr = 15, /**< flash_ctrl_recov_ecc_err */ |
| kTopEarlgreyAlertIdAesRecovCtrlUpdateErr = 16, /**< aes_recov_ctrl_update_err */ |
| kTopEarlgreyAlertIdAesFatalFault = 17, /**< aes_fatal_fault */ |
| kTopEarlgreyAlertIdKeymgrFatalFaultErr = 18, /**< keymgr_fatal_fault_err */ |
| kTopEarlgreyAlertIdKeymgrRecovOperationErr = 19, /**< keymgr_recov_operation_err */ |
| kTopEarlgreyAlertIdCsrngFatalAlert = 20, /**< csrng_fatal_alert */ |
| kTopEarlgreyAlertIdEntropySrcRecovAlert = 21, /**< entropy_src_recov_alert */ |
| kTopEarlgreyAlertIdEntropySrcFatalAlert = 22, /**< entropy_src_fatal_alert */ |
| kTopEarlgreyAlertIdEdn0FatalAlert = 23, /**< edn0_fatal_alert */ |
| kTopEarlgreyAlertIdEdn1FatalAlert = 24, /**< edn1_fatal_alert */ |
| kTopEarlgreyAlertIdSramCtrlMainFatalIntgError = 25, /**< sram_ctrl_main_fatal_intg_error */ |
| kTopEarlgreyAlertIdSramCtrlMainFatalParityError = 26, /**< sram_ctrl_main_fatal_parity_error */ |
| kTopEarlgreyAlertIdOtbnFatal = 27, /**< otbn_fatal */ |
| kTopEarlgreyAlertIdOtbnRecov = 28, /**< otbn_recov */ |
| kTopEarlgreyAlertIdLast = 28, /**< \internal The Last Valid Alert ID. */ |
| } top_earlgrey_alert_id_t; |
| |
| /** |
| * Alert Handler Alert Source to Peripheral Map |
| * |
| * This array is a mapping from `top_earlgrey_alert_id_t` to |
| * `top_earlgrey_alert_peripheral_t`. |
| */ |
| extern const top_earlgrey_alert_peripheral_t |
| top_earlgrey_alert_for_peripheral[29]; |
| |
| #define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2 |
| |
| // PERIPH_INSEL ranges from 0 to NUM_MIO + 2 -1} |
| // 0 and 1 are tied to value 0 and 1 |
| #define NUM_MIO 44 |
| #define NUM_DIO 21 |
| |
| #define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3 |
| |
| /** |
| * Pinmux Peripheral Input. |
| */ |
| typedef enum top_earlgrey_pinmux_peripheral_in { |
| kTopEarlgreyPinmuxPeripheralInGpioGpio0 = 0, /**< gpio_gpio 0 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio1 = 1, /**< gpio_gpio 1 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio2 = 2, /**< gpio_gpio 2 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio3 = 3, /**< gpio_gpio 3 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio4 = 4, /**< gpio_gpio 4 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio5 = 5, /**< gpio_gpio 5 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio6 = 6, /**< gpio_gpio 6 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio7 = 7, /**< gpio_gpio 7 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio8 = 8, /**< gpio_gpio 8 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio9 = 9, /**< gpio_gpio 9 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio10 = 10, /**< gpio_gpio 10 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio11 = 11, /**< gpio_gpio 11 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio12 = 12, /**< gpio_gpio 12 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio13 = 13, /**< gpio_gpio 13 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio14 = 14, /**< gpio_gpio 14 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio15 = 15, /**< gpio_gpio 15 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio16 = 16, /**< gpio_gpio 16 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio17 = 17, /**< gpio_gpio 17 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio18 = 18, /**< gpio_gpio 18 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio19 = 19, /**< gpio_gpio 19 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio20 = 20, /**< gpio_gpio 20 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio21 = 21, /**< gpio_gpio 21 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio22 = 22, /**< gpio_gpio 22 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio23 = 23, /**< gpio_gpio 23 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio24 = 24, /**< gpio_gpio 24 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio25 = 25, /**< gpio_gpio 25 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio26 = 26, /**< gpio_gpio 26 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio27 = 27, /**< gpio_gpio 27 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio28 = 28, /**< gpio_gpio 28 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio29 = 29, /**< gpio_gpio 29 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio30 = 30, /**< gpio_gpio 30 */ |
| kTopEarlgreyPinmuxPeripheralInGpioGpio31 = 31, /**< gpio_gpio 31 */ |
| kTopEarlgreyPinmuxPeripheralInUart0Rx = 32, /**< uart0_rx */ |
| kTopEarlgreyPinmuxPeripheralInUart1Rx = 33, /**< uart1_rx */ |
| kTopEarlgreyPinmuxPeripheralInUart2Rx = 34, /**< uart2_rx */ |
| kTopEarlgreyPinmuxPeripheralInUart3Rx = 35, /**< uart3_rx */ |
| kTopEarlgreyPinmuxPeripheralInI2c0Sda = 36, /**< i2c0_sda */ |
| kTopEarlgreyPinmuxPeripheralInI2c0Scl = 37, /**< i2c0_scl */ |
| kTopEarlgreyPinmuxPeripheralInI2c1Sda = 38, /**< i2c1_sda */ |
| kTopEarlgreyPinmuxPeripheralInI2c1Scl = 39, /**< i2c1_scl */ |
| kTopEarlgreyPinmuxPeripheralInI2c2Sda = 40, /**< i2c2_sda */ |
| kTopEarlgreyPinmuxPeripheralInI2c2Scl = 41, /**< i2c2_scl */ |
| kTopEarlgreyPinmuxPeripheralInSpiHost1Sd0 = 42, /**< spi_host1_sd 0 */ |
| kTopEarlgreyPinmuxPeripheralInSpiHost1Sd1 = 43, /**< spi_host1_sd 1 */ |
| kTopEarlgreyPinmuxPeripheralInSpiHost1Sd2 = 44, /**< spi_host1_sd 2 */ |
| kTopEarlgreyPinmuxPeripheralInSpiHost1Sd3 = 45, /**< spi_host1_sd 3 */ |
| kTopEarlgreyPinmuxPeripheralInFlashCtrlTck = 46, /**< flash_ctrl_tck */ |
| kTopEarlgreyPinmuxPeripheralInFlashCtrlTms = 47, /**< flash_ctrl_tms */ |
| kTopEarlgreyPinmuxPeripheralInFlashCtrlTdi = 48, /**< flash_ctrl_tdi */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn0 = 49, /**< sensor_ctrl_aon_ast_debug_in 0 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn1 = 50, /**< sensor_ctrl_aon_ast_debug_in 1 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn2 = 51, /**< sensor_ctrl_aon_ast_debug_in 2 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn3 = 52, /**< sensor_ctrl_aon_ast_debug_in 3 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn4 = 53, /**< sensor_ctrl_aon_ast_debug_in 4 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn5 = 54, /**< sensor_ctrl_aon_ast_debug_in 5 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn6 = 55, /**< sensor_ctrl_aon_ast_debug_in 6 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn7 = 56, /**< sensor_ctrl_aon_ast_debug_in 7 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn8 = 57, /**< sensor_ctrl_aon_ast_debug_in 8 */ |
| kTopEarlgreyPinmuxPeripheralInSensorCtrlAonAstDebugIn9 = 58, /**< sensor_ctrl_aon_ast_debug_in 9 */ |
| kTopEarlgreyPinmuxPeripheralInLast = 58, /**< \internal Last valid peripheral input */ |
| } top_earlgrey_pinmux_peripheral_in_t; |
| |
| /** |
| * Pinmux MIO Input Selector. |
| */ |
| typedef enum top_earlgrey_pinmux_insel { |
| kTopEarlgreyPinmuxInselConstantZero = 0, /**< Tie constantly to zero */ |
| kTopEarlgreyPinmuxInselConstantOne = 1, /**< Tie constantly to one */ |
| kTopEarlgreyPinmuxInselMio0 = 2, /**< MIO Pad 0 */ |
| kTopEarlgreyPinmuxInselMio1 = 3, /**< MIO Pad 1 */ |
| kTopEarlgreyPinmuxInselMio2 = 4, /**< MIO Pad 2 */ |
| kTopEarlgreyPinmuxInselMio3 = 5, /**< MIO Pad 3 */ |
| kTopEarlgreyPinmuxInselMio4 = 6, /**< MIO Pad 4 */ |
| kTopEarlgreyPinmuxInselMio5 = 7, /**< MIO Pad 5 */ |
| kTopEarlgreyPinmuxInselMio6 = 8, /**< MIO Pad 6 */ |
| kTopEarlgreyPinmuxInselMio7 = 9, /**< MIO Pad 7 */ |
| kTopEarlgreyPinmuxInselMio8 = 10, /**< MIO Pad 8 */ |
| kTopEarlgreyPinmuxInselMio9 = 11, /**< MIO Pad 9 */ |
| kTopEarlgreyPinmuxInselMio10 = 12, /**< MIO Pad 10 */ |
| kTopEarlgreyPinmuxInselMio11 = 13, /**< MIO Pad 11 */ |
| kTopEarlgreyPinmuxInselMio12 = 14, /**< MIO Pad 12 */ |
| kTopEarlgreyPinmuxInselMio13 = 15, /**< MIO Pad 13 */ |
| kTopEarlgreyPinmuxInselMio14 = 16, /**< MIO Pad 14 */ |
| kTopEarlgreyPinmuxInselMio15 = 17, /**< MIO Pad 15 */ |
| kTopEarlgreyPinmuxInselMio16 = 18, /**< MIO Pad 16 */ |
| kTopEarlgreyPinmuxInselMio17 = 19, /**< MIO Pad 17 */ |
| kTopEarlgreyPinmuxInselMio18 = 20, /**< MIO Pad 18 */ |
| kTopEarlgreyPinmuxInselMio19 = 21, /**< MIO Pad 19 */ |
| kTopEarlgreyPinmuxInselMio20 = 22, /**< MIO Pad 20 */ |
| kTopEarlgreyPinmuxInselMio21 = 23, /**< MIO Pad 21 */ |
| kTopEarlgreyPinmuxInselMio22 = 24, /**< MIO Pad 22 */ |
| kTopEarlgreyPinmuxInselMio23 = 25, /**< MIO Pad 23 */ |
| kTopEarlgreyPinmuxInselMio24 = 26, /**< MIO Pad 24 */ |
| kTopEarlgreyPinmuxInselMio25 = 27, /**< MIO Pad 25 */ |
| kTopEarlgreyPinmuxInselMio26 = 28, /**< MIO Pad 26 */ |
| kTopEarlgreyPinmuxInselMio27 = 29, /**< MIO Pad 27 */ |
| kTopEarlgreyPinmuxInselMio28 = 30, /**< MIO Pad 28 */ |
| kTopEarlgreyPinmuxInselMio29 = 31, /**< MIO Pad 29 */ |
| kTopEarlgreyPinmuxInselMio30 = 32, /**< MIO Pad 30 */ |
| kTopEarlgreyPinmuxInselMio31 = 33, /**< MIO Pad 31 */ |
| kTopEarlgreyPinmuxInselMio32 = 34, /**< MIO Pad 32 */ |
| kTopEarlgreyPinmuxInselMio33 = 35, /**< MIO Pad 33 */ |
| kTopEarlgreyPinmuxInselMio34 = 36, /**< MIO Pad 34 */ |
| kTopEarlgreyPinmuxInselMio35 = 37, /**< MIO Pad 35 */ |
| kTopEarlgreyPinmuxInselMio36 = 38, /**< MIO Pad 36 */ |
| kTopEarlgreyPinmuxInselMio37 = 39, /**< MIO Pad 37 */ |
| kTopEarlgreyPinmuxInselMio38 = 40, /**< MIO Pad 38 */ |
| kTopEarlgreyPinmuxInselMio39 = 41, /**< MIO Pad 39 */ |
| kTopEarlgreyPinmuxInselMio40 = 42, /**< MIO Pad 40 */ |
| kTopEarlgreyPinmuxInselMio41 = 43, /**< MIO Pad 41 */ |
| kTopEarlgreyPinmuxInselMio42 = 44, /**< MIO Pad 42 */ |
| kTopEarlgreyPinmuxInselMio43 = 45, /**< MIO Pad 43 */ |
| kTopEarlgreyPinmuxInselLast = 45, /**< \internal Last valid insel value */ |
| } top_earlgrey_pinmux_insel_t; |
| |
| /** |
| * Pinmux MIO Output. |
| */ |
| typedef enum top_earlgrey_pinmux_mio_out { |
| kTopEarlgreyPinmuxMioOut0 = 0, /**< MIO Pad 0 */ |
| kTopEarlgreyPinmuxMioOut1 = 1, /**< MIO Pad 1 */ |
| kTopEarlgreyPinmuxMioOut2 = 2, /**< MIO Pad 2 */ |
| kTopEarlgreyPinmuxMioOut3 = 3, /**< MIO Pad 3 */ |
| kTopEarlgreyPinmuxMioOut4 = 4, /**< MIO Pad 4 */ |
| kTopEarlgreyPinmuxMioOut5 = 5, /**< MIO Pad 5 */ |
| kTopEarlgreyPinmuxMioOut6 = 6, /**< MIO Pad 6 */ |
| kTopEarlgreyPinmuxMioOut7 = 7, /**< MIO Pad 7 */ |
| kTopEarlgreyPinmuxMioOut8 = 8, /**< MIO Pad 8 */ |
| kTopEarlgreyPinmuxMioOut9 = 9, /**< MIO Pad 9 */ |
| kTopEarlgreyPinmuxMioOut10 = 10, /**< MIO Pad 10 */ |
| kTopEarlgreyPinmuxMioOut11 = 11, /**< MIO Pad 11 */ |
| kTopEarlgreyPinmuxMioOut12 = 12, /**< MIO Pad 12 */ |
| kTopEarlgreyPinmuxMioOut13 = 13, /**< MIO Pad 13 */ |
| kTopEarlgreyPinmuxMioOut14 = 14, /**< MIO Pad 14 */ |
| kTopEarlgreyPinmuxMioOut15 = 15, /**< MIO Pad 15 */ |
| kTopEarlgreyPinmuxMioOut16 = 16, /**< MIO Pad 16 */ |
| kTopEarlgreyPinmuxMioOut17 = 17, /**< MIO Pad 17 */ |
| kTopEarlgreyPinmuxMioOut18 = 18, /**< MIO Pad 18 */ |
| kTopEarlgreyPinmuxMioOut19 = 19, /**< MIO Pad 19 */ |
| kTopEarlgreyPinmuxMioOut20 = 20, /**< MIO Pad 20 */ |
| kTopEarlgreyPinmuxMioOut21 = 21, /**< MIO Pad 21 */ |
| kTopEarlgreyPinmuxMioOut22 = 22, /**< MIO Pad 22 */ |
| kTopEarlgreyPinmuxMioOut23 = 23, /**< MIO Pad 23 */ |
| kTopEarlgreyPinmuxMioOut24 = 24, /**< MIO Pad 24 */ |
| kTopEarlgreyPinmuxMioOut25 = 25, /**< MIO Pad 25 */ |
| kTopEarlgreyPinmuxMioOut26 = 26, /**< MIO Pad 26 */ |
| kTopEarlgreyPinmuxMioOut27 = 27, /**< MIO Pad 27 */ |
| kTopEarlgreyPinmuxMioOut28 = 28, /**< MIO Pad 28 */ |
| kTopEarlgreyPinmuxMioOut29 = 29, /**< MIO Pad 29 */ |
| kTopEarlgreyPinmuxMioOut30 = 30, /**< MIO Pad 30 */ |
| kTopEarlgreyPinmuxMioOut31 = 31, /**< MIO Pad 31 */ |
| kTopEarlgreyPinmuxMioOut32 = 32, /**< MIO Pad 32 */ |
| kTopEarlgreyPinmuxMioOut33 = 33, /**< MIO Pad 33 */ |
| kTopEarlgreyPinmuxMioOut34 = 34, /**< MIO Pad 34 */ |
| kTopEarlgreyPinmuxMioOut35 = 35, /**< MIO Pad 35 */ |
| kTopEarlgreyPinmuxMioOut36 = 36, /**< MIO Pad 36 */ |
| kTopEarlgreyPinmuxMioOut37 = 37, /**< MIO Pad 37 */ |
| kTopEarlgreyPinmuxMioOut38 = 38, /**< MIO Pad 38 */ |
| kTopEarlgreyPinmuxMioOut39 = 39, /**< MIO Pad 39 */ |
| kTopEarlgreyPinmuxMioOut40 = 40, /**< MIO Pad 40 */ |
| kTopEarlgreyPinmuxMioOut41 = 41, /**< MIO Pad 41 */ |
| kTopEarlgreyPinmuxMioOut42 = 42, /**< MIO Pad 42 */ |
| kTopEarlgreyPinmuxMioOut43 = 43, /**< MIO Pad 43 */ |
| kTopEarlgreyPinmuxMioOutLast = 43, /**< \internal Last valid mio output */ |
| } top_earlgrey_pinmux_mio_out_t; |
| |
| /** |
| * Pinmux Peripheral Output Selector. |
| */ |
| typedef enum top_earlgrey_pinmux_outsel { |
| kTopEarlgreyPinmuxOutselConstantZero = 0, /**< Tie constantly to zero */ |
| kTopEarlgreyPinmuxOutselConstantOne = 1, /**< Tie constantly to one */ |
| kTopEarlgreyPinmuxOutselConstantHighZ = 2, /**< Tie constantly to high-Z */ |
| kTopEarlgreyPinmuxOutselGpioGpio0 = 3, /**< gpio_gpio 0 */ |
| kTopEarlgreyPinmuxOutselGpioGpio1 = 4, /**< gpio_gpio 1 */ |
| kTopEarlgreyPinmuxOutselGpioGpio2 = 5, /**< gpio_gpio 2 */ |
| kTopEarlgreyPinmuxOutselGpioGpio3 = 6, /**< gpio_gpio 3 */ |
| kTopEarlgreyPinmuxOutselGpioGpio4 = 7, /**< gpio_gpio 4 */ |
| kTopEarlgreyPinmuxOutselGpioGpio5 = 8, /**< gpio_gpio 5 */ |
| kTopEarlgreyPinmuxOutselGpioGpio6 = 9, /**< gpio_gpio 6 */ |
| kTopEarlgreyPinmuxOutselGpioGpio7 = 10, /**< gpio_gpio 7 */ |
| kTopEarlgreyPinmuxOutselGpioGpio8 = 11, /**< gpio_gpio 8 */ |
| kTopEarlgreyPinmuxOutselGpioGpio9 = 12, /**< gpio_gpio 9 */ |
| kTopEarlgreyPinmuxOutselGpioGpio10 = 13, /**< gpio_gpio 10 */ |
| kTopEarlgreyPinmuxOutselGpioGpio11 = 14, /**< gpio_gpio 11 */ |
| kTopEarlgreyPinmuxOutselGpioGpio12 = 15, /**< gpio_gpio 12 */ |
| kTopEarlgreyPinmuxOutselGpioGpio13 = 16, /**< gpio_gpio 13 */ |
| kTopEarlgreyPinmuxOutselGpioGpio14 = 17, /**< gpio_gpio 14 */ |
| kTopEarlgreyPinmuxOutselGpioGpio15 = 18, /**< gpio_gpio 15 */ |
| kTopEarlgreyPinmuxOutselGpioGpio16 = 19, /**< gpio_gpio 16 */ |
| kTopEarlgreyPinmuxOutselGpioGpio17 = 20, /**< gpio_gpio 17 */ |
| kTopEarlgreyPinmuxOutselGpioGpio18 = 21, /**< gpio_gpio 18 */ |
| kTopEarlgreyPinmuxOutselGpioGpio19 = 22, /**< gpio_gpio 19 */ |
| kTopEarlgreyPinmuxOutselGpioGpio20 = 23, /**< gpio_gpio 20 */ |
| kTopEarlgreyPinmuxOutselGpioGpio21 = 24, /**< gpio_gpio 21 */ |
| kTopEarlgreyPinmuxOutselGpioGpio22 = 25, /**< gpio_gpio 22 */ |
| kTopEarlgreyPinmuxOutselGpioGpio23 = 26, /**< gpio_gpio 23 */ |
| kTopEarlgreyPinmuxOutselGpioGpio24 = 27, /**< gpio_gpio 24 */ |
| kTopEarlgreyPinmuxOutselGpioGpio25 = 28, /**< gpio_gpio 25 */ |
| kTopEarlgreyPinmuxOutselGpioGpio26 = 29, /**< gpio_gpio 26 */ |
| kTopEarlgreyPinmuxOutselGpioGpio27 = 30, /**< gpio_gpio 27 */ |
| kTopEarlgreyPinmuxOutselGpioGpio28 = 31, /**< gpio_gpio 28 */ |
| kTopEarlgreyPinmuxOutselGpioGpio29 = 32, /**< gpio_gpio 29 */ |
| kTopEarlgreyPinmuxOutselGpioGpio30 = 33, /**< gpio_gpio 30 */ |
| kTopEarlgreyPinmuxOutselGpioGpio31 = 34, /**< gpio_gpio 31 */ |
| kTopEarlgreyPinmuxOutselUart0Tx = 35, /**< uart0_tx */ |
| kTopEarlgreyPinmuxOutselUart1Tx = 36, /**< uart1_tx */ |
| kTopEarlgreyPinmuxOutselUart2Tx = 37, /**< uart2_tx */ |
| kTopEarlgreyPinmuxOutselUart3Tx = 38, /**< uart3_tx */ |
| kTopEarlgreyPinmuxOutselI2c0Sda = 39, /**< i2c0_sda */ |
| kTopEarlgreyPinmuxOutselI2c0Scl = 40, /**< i2c0_scl */ |
| kTopEarlgreyPinmuxOutselI2c1Sda = 41, /**< i2c1_sda */ |
| kTopEarlgreyPinmuxOutselI2c1Scl = 42, /**< i2c1_scl */ |
| kTopEarlgreyPinmuxOutselI2c2Sda = 43, /**< i2c2_sda */ |
| kTopEarlgreyPinmuxOutselI2c2Scl = 44, /**< i2c2_scl */ |
| kTopEarlgreyPinmuxOutselPattgenPda0Tx = 45, /**< pattgen_pda0_tx */ |
| kTopEarlgreyPinmuxOutselPattgenPcl0Tx = 46, /**< pattgen_pcl0_tx */ |
| kTopEarlgreyPinmuxOutselPattgenPda1Tx = 47, /**< pattgen_pda1_tx */ |
| kTopEarlgreyPinmuxOutselPattgenPcl1Tx = 48, /**< pattgen_pcl1_tx */ |
| kTopEarlgreyPinmuxOutselSpiHost1Sd0 = 49, /**< spi_host1_sd 0 */ |
| kTopEarlgreyPinmuxOutselSpiHost1Sd1 = 50, /**< spi_host1_sd 1 */ |
| kTopEarlgreyPinmuxOutselSpiHost1Sd2 = 51, /**< spi_host1_sd 2 */ |
| kTopEarlgreyPinmuxOutselSpiHost1Sd3 = 52, /**< spi_host1_sd 3 */ |
| kTopEarlgreyPinmuxOutselSpiHost1Sck = 53, /**< spi_host1_sck */ |
| kTopEarlgreyPinmuxOutselSpiHost1Csb = 54, /**< spi_host1_csb */ |
| kTopEarlgreyPinmuxOutselFlashCtrlTdo = 55, /**< flash_ctrl_tdo */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut0 = 56, /**< sensor_ctrl_aon_ast_debug_out 0 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut1 = 57, /**< sensor_ctrl_aon_ast_debug_out 1 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut2 = 58, /**< sensor_ctrl_aon_ast_debug_out 2 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut3 = 59, /**< sensor_ctrl_aon_ast_debug_out 3 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut4 = 60, /**< sensor_ctrl_aon_ast_debug_out 4 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut5 = 61, /**< sensor_ctrl_aon_ast_debug_out 5 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut6 = 62, /**< sensor_ctrl_aon_ast_debug_out 6 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut7 = 63, /**< sensor_ctrl_aon_ast_debug_out 7 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut8 = 64, /**< sensor_ctrl_aon_ast_debug_out 8 */ |
| kTopEarlgreyPinmuxOutselSensorCtrlAonAstDebugOut9 = 65, /**< sensor_ctrl_aon_ast_debug_out 9 */ |
| kTopEarlgreyPinmuxOutselLast = 65, /**< \internal Last valid outsel value */ |
| } top_earlgrey_pinmux_outsel_t; |
| |
| /** |
| * Power Manager Wakeup Signals |
| */ |
| typedef enum top_earlgrey_power_manager_wake_ups { |
| kTopEarlgreyPowerManagerWakeUpsPinmuxAonAonWkupReq = 0, /**< */ |
| kTopEarlgreyPowerManagerWakeUpsPinmuxAonUsbWkupReq = 1, /**< */ |
| kTopEarlgreyPowerManagerWakeUpsAonTimerAonAonTimerWkupReq = 2, /**< */ |
| kTopEarlgreyPowerManagerWakeUpsLast = 2, /**< \internal Last valid pwrmgr wakeup signal */ |
| } top_earlgrey_power_manager_wake_ups_t; |
| |
| /** |
| * Reset Manager Software Controlled Resets |
| */ |
| typedef enum top_earlgrey_reset_manager_sw_resets { |
| kTopEarlgreyResetManagerSwResetsSpiDevice = 0, /**< */ |
| kTopEarlgreyResetManagerSwResetsSpiHost0 = 1, /**< */ |
| kTopEarlgreyResetManagerSwResetsSpiHost1 = 2, /**< */ |
| kTopEarlgreyResetManagerSwResetsUsb = 3, /**< */ |
| kTopEarlgreyResetManagerSwResetsI2c0 = 4, /**< */ |
| kTopEarlgreyResetManagerSwResetsI2c1 = 5, /**< */ |
| kTopEarlgreyResetManagerSwResetsI2c2 = 6, /**< */ |
| kTopEarlgreyResetManagerSwResetsLast = 6, /**< \internal Last valid rstmgr software reset request */ |
| } top_earlgrey_reset_manager_sw_resets_t; |
| |
| /** |
| * Power Manager Reset Request Signals |
| */ |
| typedef enum top_earlgrey_power_manager_reset_requests { |
| kTopEarlgreyPowerManagerResetRequestsAonTimerAonAonTimerRstReq = 0, /**< */ |
| kTopEarlgreyPowerManagerResetRequestsLast = 0, /**< \internal Last valid pwrmgr reset_request signal */ |
| } top_earlgrey_power_manager_reset_requests_t; |
| |
| /** |
| * Clock Manager Software-Controlled ("Gated") Clocks. |
| * |
| * The Software has full control over these clocks. |
| */ |
| typedef enum top_earlgrey_gateable_clocks { |
| kTopEarlgreyGateableClocksIoDiv4Peri = 0, /**< Clock clk_io_div4_peri in group peri */ |
| kTopEarlgreyGateableClocksIoDiv2Peri = 1, /**< Clock clk_io_div2_peri in group peri */ |
| kTopEarlgreyGateableClocksUsbPeri = 2, /**< Clock clk_usb_peri in group peri */ |
| kTopEarlgreyGateableClocksLast = 2, /**< \internal Last Valid Gateable Clock */ |
| } top_earlgrey_gateable_clocks_t; |
| |
| /** |
| * Clock Manager Software-Hinted Clocks. |
| * |
| * The Software has partial control over these clocks. It can ask them to stop, |
| * but the clock manager is in control of whether the clock actually is stopped. |
| */ |
| typedef enum top_earlgrey_hintable_clocks { |
| kTopEarlgreyHintableClocksMainAes = 0, /**< Clock clk_main_aes in group trans */ |
| kTopEarlgreyHintableClocksMainHmac = 1, /**< Clock clk_main_hmac in group trans */ |
| kTopEarlgreyHintableClocksMainKmac = 2, /**< Clock clk_main_kmac in group trans */ |
| kTopEarlgreyHintableClocksMainOtbn = 3, /**< Clock clk_main_otbn in group trans */ |
| kTopEarlgreyHintableClocksLast = 3, /**< \internal Last Valid Hintable Clock */ |
| } top_earlgrey_hintable_clocks_t; |
| |
| // Header Extern Guard |
| #ifdef __cplusplus |
| } // extern "C" |
| #endif |
| |
| #endif // OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_ |