From 3d109d65ee177e9a6cf576604f11e242aba1e35e Mon Sep 17 00:00:00 2001 From: Yangbo Lu Date: Wed, 15 Jan 2025 18:50:35 +0800 Subject: [PATCH] soc: nxp: imx95: enable multi-level interrupts for m7 Enabled multi-level interrupts for m7 since IRQSTEER is used. Signed-off-by: Yangbo Lu --- .../imx9/imx95/Kconfig.defconfig.mimx95.m7 | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/soc/nxp/imx/imx9/imx95/Kconfig.defconfig.mimx95.m7 b/soc/nxp/imx/imx9/imx95/Kconfig.defconfig.mimx95.m7 index 4265f5233b4..663267f88d1 100644 --- a/soc/nxp/imx/imx9/imx95/Kconfig.defconfig.mimx95.m7 +++ b/soc/nxp/imx/imx9/imx95/Kconfig.defconfig.mimx95.m7 @@ -11,8 +11,36 @@ config FLASH_SIZE config FLASH_BASE_ADDRESS default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH)) +# multi-level interrupts +config MULTI_LEVEL_INTERRUPTS + default y + +config 1ST_LEVEL_INTERRUPT_BITS + default 8 + +config MAX_IRQ_PER_AGGREGATOR + default 16 + +config 2ND_LEVEL_INTERRUPTS + default y + +config 2ND_LVL_ISR_TBL_OFFSET + default 234 + +config NUM_2ND_LEVEL_AGGREGATORS + default 1 + +config 2ND_LEVEL_INTERRUPT_BITS + default 8 + +config 2ND_LVL_INTR_00_OFFSET + default 224 + +config 3RD_LEVEL_INTERRUPTS + default n + config NUM_IRQS - default 230 + default 250 # 2ND_LVL_ISR_TBL_OFFSET + MAX_IRQ_PER_AGGREGATOR * NUM_2ND_LEVEL_AGGREGATORS config SYS_CLOCK_HW_CYCLES_PER_SEC default 800000000