1# Copyright 2022-2025 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4config NXP_SIUL2_EIRQ
5	bool "NXP SIUL2 external interrupt controller driver"
6	default y
7	depends on DT_HAS_NXP_SIUL2_EIRQ_ENABLED
8	select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
9	select PINCTRL
10	help
11	  NXP SIUL2 external interrupt controller driver.
12
13if NXP_SIUL2_EIRQ
14
15config NXP_SIUL2_EIRQ_EXT_INTERRUPTS_MAX
16	int
17	default 8 if SOC_SERIES_S32ZE
18	default 16 if SOC_SERIES_S32K5
19	default 32 if SOC_SERIES_S32K3 || SOC_SERIES_MCXE31X
20	help
21	  Number of SIUL2 external interrupts per controller. This is a SoC
22	  integration option.
23
24config NXP_SIUL2_EIRQ_EXT_INTERRUPTS_GROUP
25	int
26	default 8
27	default 16 if SOC_SERIES_S32K5
28	help
29	  Number of SIUL2 external interrupts grouped into a single core
30	  interrupt line. This is a SoC integration option.
31
32endif # NXP_SIUL2_EIRQ
33