5 #ifndef OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_
6 #define OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_
34 #define TOP_EARLGREY_UART0_BASE_ADDR 0x40000000u
44 #define TOP_EARLGREY_UART0_SIZE_BYTES 0x40u
52 #define TOP_EARLGREY_UART1_BASE_ADDR 0x40010000u
62 #define TOP_EARLGREY_UART1_SIZE_BYTES 0x40u
70 #define TOP_EARLGREY_UART2_BASE_ADDR 0x40020000u
80 #define TOP_EARLGREY_UART2_SIZE_BYTES 0x40u
88 #define TOP_EARLGREY_UART3_BASE_ADDR 0x40030000u
98 #define TOP_EARLGREY_UART3_SIZE_BYTES 0x40u
106 #define TOP_EARLGREY_GPIO_BASE_ADDR 0x40040000u
116 #define TOP_EARLGREY_GPIO_SIZE_BYTES 0x80u
124 #define TOP_EARLGREY_SPI_DEVICE_BASE_ADDR 0x40050000u
134 #define TOP_EARLGREY_SPI_DEVICE_SIZE_BYTES 0x2000u
142 #define TOP_EARLGREY_I2C0_BASE_ADDR 0x40080000u
152 #define TOP_EARLGREY_I2C0_SIZE_BYTES 0x80u
160 #define TOP_EARLGREY_I2C1_BASE_ADDR 0x40090000u
170 #define TOP_EARLGREY_I2C1_SIZE_BYTES 0x80u
178 #define TOP_EARLGREY_I2C2_BASE_ADDR 0x400A0000u
188 #define TOP_EARLGREY_I2C2_SIZE_BYTES 0x80u
196 #define TOP_EARLGREY_PATTGEN_BASE_ADDR 0x400E0000u
206 #define TOP_EARLGREY_PATTGEN_SIZE_BYTES 0x40u
214 #define TOP_EARLGREY_RV_TIMER_BASE_ADDR 0x40100000u
224 #define TOP_EARLGREY_RV_TIMER_SIZE_BYTES 0x200u
232 #define TOP_EARLGREY_OTP_CTRL_CORE_BASE_ADDR 0x40130000u
242 #define TOP_EARLGREY_OTP_CTRL_CORE_SIZE_BYTES 0x1000u
250 #define TOP_EARLGREY_OTP_CTRL_PRIM_BASE_ADDR 0x40138000u
260 #define TOP_EARLGREY_OTP_CTRL_PRIM_SIZE_BYTES 0x20u
268 #define TOP_EARLGREY_LC_CTRL_REGS_BASE_ADDR 0x40140000u
278 #define TOP_EARLGREY_LC_CTRL_REGS_SIZE_BYTES 0x100u
286 #define TOP_EARLGREY_LC_CTRL_DMI_BASE_ADDR 0x0u
296 #define TOP_EARLGREY_LC_CTRL_DMI_SIZE_BYTES 0x1000u
304 #define TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR 0x40150000u
314 #define TOP_EARLGREY_ALERT_HANDLER_SIZE_BYTES 0x800u
322 #define TOP_EARLGREY_SPI_HOST0_BASE_ADDR 0x40300000u
332 #define TOP_EARLGREY_SPI_HOST0_SIZE_BYTES 0x40u
340 #define TOP_EARLGREY_SPI_HOST1_BASE_ADDR 0x40310000u
350 #define TOP_EARLGREY_SPI_HOST1_SIZE_BYTES 0x40u
358 #define TOP_EARLGREY_USBDEV_BASE_ADDR 0x40320000u
368 #define TOP_EARLGREY_USBDEV_SIZE_BYTES 0x1000u
376 #define TOP_EARLGREY_PWRMGR_AON_BASE_ADDR 0x40400000u
386 #define TOP_EARLGREY_PWRMGR_AON_SIZE_BYTES 0x80u
394 #define TOP_EARLGREY_RSTMGR_AON_BASE_ADDR 0x40410000u
404 #define TOP_EARLGREY_RSTMGR_AON_SIZE_BYTES 0x80u
412 #define TOP_EARLGREY_CLKMGR_AON_BASE_ADDR 0x40420000u
422 #define TOP_EARLGREY_CLKMGR_AON_SIZE_BYTES 0x80u
430 #define TOP_EARLGREY_SYSRST_CTRL_AON_BASE_ADDR 0x40430000u
440 #define TOP_EARLGREY_SYSRST_CTRL_AON_SIZE_BYTES 0x100u
448 #define TOP_EARLGREY_ADC_CTRL_AON_BASE_ADDR 0x40440000u
458 #define TOP_EARLGREY_ADC_CTRL_AON_SIZE_BYTES 0x80u
466 #define TOP_EARLGREY_PWM_AON_BASE_ADDR 0x40450000u
476 #define TOP_EARLGREY_PWM_AON_SIZE_BYTES 0x80u
484 #define TOP_EARLGREY_PINMUX_AON_BASE_ADDR 0x40460000u
494 #define TOP_EARLGREY_PINMUX_AON_SIZE_BYTES 0x1000u
502 #define TOP_EARLGREY_AON_TIMER_AON_BASE_ADDR 0x40470000u
512 #define TOP_EARLGREY_AON_TIMER_AON_SIZE_BYTES 0x40u
520 #define TOP_EARLGREY_AST_BASE_ADDR 0x40480000u
530 #define TOP_EARLGREY_AST_SIZE_BYTES 0x400u
538 #define TOP_EARLGREY_SENSOR_CTRL_AON_BASE_ADDR 0x40490000u
548 #define TOP_EARLGREY_SENSOR_CTRL_AON_SIZE_BYTES 0x80u
556 #define TOP_EARLGREY_SRAM_CTRL_RET_AON_REGS_BASE_ADDR 0x40500000u
566 #define TOP_EARLGREY_SRAM_CTRL_RET_AON_REGS_SIZE_BYTES 0x40u
574 #define TOP_EARLGREY_SRAM_CTRL_RET_AON_RAM_BASE_ADDR 0x40600000u
584 #define TOP_EARLGREY_SRAM_CTRL_RET_AON_RAM_SIZE_BYTES 0x1000u
592 #define TOP_EARLGREY_FLASH_CTRL_CORE_BASE_ADDR 0x41000000u
602 #define TOP_EARLGREY_FLASH_CTRL_CORE_SIZE_BYTES 0x200u
610 #define TOP_EARLGREY_FLASH_CTRL_PRIM_BASE_ADDR 0x41008000u
620 #define TOP_EARLGREY_FLASH_CTRL_PRIM_SIZE_BYTES 0x80u
628 #define TOP_EARLGREY_FLASH_CTRL_MEM_BASE_ADDR 0x20000000u
638 #define TOP_EARLGREY_FLASH_CTRL_MEM_SIZE_BYTES 0x100000u
646 #define TOP_EARLGREY_RV_DM_REGS_BASE_ADDR 0x41200000u
656 #define TOP_EARLGREY_RV_DM_REGS_SIZE_BYTES 0x10u
664 #define TOP_EARLGREY_RV_DM_MEM_BASE_ADDR 0x10000u
674 #define TOP_EARLGREY_RV_DM_MEM_SIZE_BYTES 0x1000u
682 #define TOP_EARLGREY_RV_DM_DBG_BASE_ADDR 0x1000u
692 #define TOP_EARLGREY_RV_DM_DBG_SIZE_BYTES 0x200u
700 #define TOP_EARLGREY_RV_PLIC_BASE_ADDR 0x48000000u
710 #define TOP_EARLGREY_RV_PLIC_SIZE_BYTES 0x8000000u
718 #define TOP_EARLGREY_AES_BASE_ADDR 0x41100000u
728 #define TOP_EARLGREY_AES_SIZE_BYTES 0x100u
736 #define TOP_EARLGREY_HMAC_BASE_ADDR 0x41110000u
746 #define TOP_EARLGREY_HMAC_SIZE_BYTES 0x2000u
754 #define TOP_EARLGREY_KMAC_BASE_ADDR 0x41120000u
764 #define TOP_EARLGREY_KMAC_SIZE_BYTES 0x1000u
772 #define TOP_EARLGREY_OTBN_BASE_ADDR 0x41130000u
782 #define TOP_EARLGREY_OTBN_SIZE_BYTES 0x10000u
790 #define TOP_EARLGREY_KEYMGR_BASE_ADDR 0x41140000u
800 #define TOP_EARLGREY_KEYMGR_SIZE_BYTES 0x100u
808 #define TOP_EARLGREY_CSRNG_BASE_ADDR 0x41150000u
818 #define TOP_EARLGREY_CSRNG_SIZE_BYTES 0x80u
826 #define TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR 0x41160000u
836 #define TOP_EARLGREY_ENTROPY_SRC_SIZE_BYTES 0x100u
844 #define TOP_EARLGREY_EDN0_BASE_ADDR 0x41170000u
854 #define TOP_EARLGREY_EDN0_SIZE_BYTES 0x80u
862 #define TOP_EARLGREY_EDN1_BASE_ADDR 0x41180000u
872 #define TOP_EARLGREY_EDN1_SIZE_BYTES 0x80u
880 #define TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_BASE_ADDR 0x411C0000u
890 #define TOP_EARLGREY_SRAM_CTRL_MAIN_REGS_SIZE_BYTES 0x40u
898 #define TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_BASE_ADDR 0x10000000u
908 #define TOP_EARLGREY_SRAM_CTRL_MAIN_RAM_SIZE_BYTES 0x20000u
916 #define TOP_EARLGREY_ROM_CTRL_REGS_BASE_ADDR 0x411E0000u
926 #define TOP_EARLGREY_ROM_CTRL_REGS_SIZE_BYTES 0x80u
934 #define TOP_EARLGREY_ROM_CTRL_ROM_BASE_ADDR 0x8000u
944 #define TOP_EARLGREY_ROM_CTRL_ROM_SIZE_BYTES 0x8000u
952 #define TOP_EARLGREY_RV_CORE_IBEX_CFG_BASE_ADDR 0x411F0000u
962 #define TOP_EARLGREY_RV_CORE_IBEX_CFG_SIZE_BYTES 0x100u
968 #define TOP_EARLGREY_RAM_RET_AON_BASE_ADDR 0x40600000u
973 #define TOP_EARLGREY_RAM_RET_AON_SIZE_BYTES 0x1000u
978 #define TOP_EARLGREY_EFLASH_BASE_ADDR 0x20000000u
983 #define TOP_EARLGREY_EFLASH_SIZE_BYTES 0x100000u
988 #define TOP_EARLGREY_RAM_MAIN_BASE_ADDR 0x10000000u
993 #define TOP_EARLGREY_RAM_MAIN_SIZE_BYTES 0x20000u
998 #define TOP_EARLGREY_ROM_BASE_ADDR 0x8000u
1003 #define TOP_EARLGREY_ROM_SIZE_BYTES 0x8000u
1044 kTopEarlgreyPlicPeripheralLast = 30,
1240 kTopEarlgreyPlicIrqIdLast = 185,
1260 kTopEarlgreyPlicTargetLast = 0,
1311 kTopEarlgreyAlertPeripheralLast = 40,
1386 kTopEarlgreyAlertIdLast = 64,
1398 #define PINMUX_MIO_PERIPH_INSEL_IDX_OFFSET 2
1402 #define NUM_MIO_PADS 47
1403 #define NUM_DIO_PADS 16
1405 #define PINMUX_PERIPH_OUTSEL_IDX_OFFSET 3
1468 kTopEarlgreyPinmuxPeripheralInLast = 56,
1524 kTopEarlgreyPinmuxInselLast = 48,
1578 kTopEarlgreyPinmuxMioOutLast = 46,
1663 kTopEarlgreyPinmuxOutselLast = 77,
1670 kTopEarlgreyDirectPadsUsbdevUsbDp = 0,
1671 kTopEarlgreyDirectPadsUsbdevUsbDn = 1,
1672 kTopEarlgreyDirectPadsSpiHost0Sd0 = 2,
1673 kTopEarlgreyDirectPadsSpiHost0Sd1 = 3,
1674 kTopEarlgreyDirectPadsSpiHost0Sd2 = 4,
1675 kTopEarlgreyDirectPadsSpiHost0Sd3 = 5,
1676 kTopEarlgreyDirectPadsSpiDeviceSd0 = 6,
1677 kTopEarlgreyDirectPadsSpiDeviceSd1 = 7,
1678 kTopEarlgreyDirectPadsSpiDeviceSd2 = 8,
1679 kTopEarlgreyDirectPadsSpiDeviceSd3 = 9,
1680 kTopEarlgreyDirectPadsSysrstCtrlAonEcRstL = 10,
1681 kTopEarlgreyDirectPadsSysrstCtrlAonFlashWpL = 11,
1682 kTopEarlgreyDirectPadsSpiDeviceSck = 12,
1683 kTopEarlgreyDirectPadsSpiDeviceCsb = 13,
1684 kTopEarlgreyDirectPadsSpiHost0Sck = 14,
1685 kTopEarlgreyDirectPadsSpiHost0Csb = 15,
1686 kTopEarlgreyDirectPadsLast = 15,
1693 kTopEarlgreyMuxedPadsIoa0 = 0,
1694 kTopEarlgreyMuxedPadsIoa1 = 1,
1695 kTopEarlgreyMuxedPadsIoa2 = 2,
1696 kTopEarlgreyMuxedPadsIoa3 = 3,
1697 kTopEarlgreyMuxedPadsIoa4 = 4,
1698 kTopEarlgreyMuxedPadsIoa5 = 5,
1699 kTopEarlgreyMuxedPadsIoa6 = 6,
1700 kTopEarlgreyMuxedPadsIoa7 = 7,
1701 kTopEarlgreyMuxedPadsIoa8 = 8,
1702 kTopEarlgreyMuxedPadsIob0 = 9,
1703 kTopEarlgreyMuxedPadsIob1 = 10,
1704 kTopEarlgreyMuxedPadsIob2 = 11,
1705 kTopEarlgreyMuxedPadsIob3 = 12,
1706 kTopEarlgreyMuxedPadsIob4 = 13,
1707 kTopEarlgreyMuxedPadsIob5 = 14,
1708 kTopEarlgreyMuxedPadsIob6 = 15,
1709 kTopEarlgreyMuxedPadsIob7 = 16,
1710 kTopEarlgreyMuxedPadsIob8 = 17,
1711 kTopEarlgreyMuxedPadsIob9 = 18,
1712 kTopEarlgreyMuxedPadsIob10 = 19,
1713 kTopEarlgreyMuxedPadsIob11 = 20,
1714 kTopEarlgreyMuxedPadsIob12 = 21,
1715 kTopEarlgreyMuxedPadsIoc0 = 22,
1716 kTopEarlgreyMuxedPadsIoc1 = 23,
1717 kTopEarlgreyMuxedPadsIoc2 = 24,
1718 kTopEarlgreyMuxedPadsIoc3 = 25,
1719 kTopEarlgreyMuxedPadsIoc4 = 26,
1720 kTopEarlgreyMuxedPadsIoc5 = 27,
1721 kTopEarlgreyMuxedPadsIoc6 = 28,
1722 kTopEarlgreyMuxedPadsIoc7 = 29,
1723 kTopEarlgreyMuxedPadsIoc8 = 30,
1724 kTopEarlgreyMuxedPadsIoc9 = 31,
1725 kTopEarlgreyMuxedPadsIoc10 = 32,
1726 kTopEarlgreyMuxedPadsIoc11 = 33,
1727 kTopEarlgreyMuxedPadsIoc12 = 34,
1728 kTopEarlgreyMuxedPadsIor0 = 35,
1729 kTopEarlgreyMuxedPadsIor1 = 36,
1730 kTopEarlgreyMuxedPadsIor2 = 37,
1731 kTopEarlgreyMuxedPadsIor3 = 38,
1732 kTopEarlgreyMuxedPadsIor4 = 39,
1733 kTopEarlgreyMuxedPadsIor5 = 40,
1734 kTopEarlgreyMuxedPadsIor6 = 41,
1735 kTopEarlgreyMuxedPadsIor7 = 42,
1736 kTopEarlgreyMuxedPadsIor10 = 43,
1737 kTopEarlgreyMuxedPadsIor11 = 44,
1738 kTopEarlgreyMuxedPadsIor12 = 45,
1739 kTopEarlgreyMuxedPadsIor13 = 46,
1740 kTopEarlgreyMuxedPadsLast = 46,
1747 kTopEarlgreyPowerManagerWakeUpsSysrstCtrlAonWkupReq = 0,
1748 kTopEarlgreyPowerManagerWakeUpsAdcCtrlAonWkupReq = 1,
1749 kTopEarlgreyPowerManagerWakeUpsPinmuxAonPinWkupReq = 2,
1750 kTopEarlgreyPowerManagerWakeUpsPinmuxAonUsbWkupReq = 3,
1751 kTopEarlgreyPowerManagerWakeUpsAonTimerAonWkupReq = 4,
1752 kTopEarlgreyPowerManagerWakeUpsSensorCtrlAonWkupReq = 5,
1753 kTopEarlgreyPowerManagerWakeUpsLast = 5,
1760 kTopEarlgreyResetManagerSwResetsSpiDevice = 0,
1761 kTopEarlgreyResetManagerSwResetsSpiHost0 = 1,
1762 kTopEarlgreyResetManagerSwResetsSpiHost1 = 2,
1763 kTopEarlgreyResetManagerSwResetsUsb = 3,
1764 kTopEarlgreyResetManagerSwResetsUsbAon = 4,
1765 kTopEarlgreyResetManagerSwResetsI2c0 = 5,
1766 kTopEarlgreyResetManagerSwResetsI2c1 = 6,
1767 kTopEarlgreyResetManagerSwResetsI2c2 = 7,
1768 kTopEarlgreyResetManagerSwResetsLast = 7,
1775 kTopEarlgreyPowerManagerResetRequestsSysrstCtrlAonRstReq = 0,
1776 kTopEarlgreyPowerManagerResetRequestsAonTimerAonAonTimerRstReq = 1,
1777 kTopEarlgreyPowerManagerResetRequestsLast = 1,
1790 kTopEarlgreyGateableClocksLast = 3,
1804 kTopEarlgreyHintableClocksLast = 3,
1814 #define TOP_EARLGREY_MMIO_BASE_ADDR 0x40000000u
1815 #define TOP_EARLGREY_MMIO_SIZE_BYTES 0x10000000u
1822 #endif // OPENTITAN_HW_TOP_EARLGREY_SW_AUTOGEN_TOP_EARLGREY_H_