1# Configuration for NXP S32 external interrupt controller
2
3# Copyright 2022-2024 NXP
4# SPDX-License-Identifier: Apache-2.0
5
6config NXP_S32_EIRQ
7	bool "External interrupt controller driver for NXP S32 MCUs"
8	default y
9	depends on DT_HAS_NXP_S32_SIUL2_EIRQ_ENABLED
10	select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
11	select PINCTRL
12	help
13	  External interrupt controller driver for NXP S32 MCUs
14
15if NXP_S32_EIRQ
16
17config NXP_S32_EIRQ_EXT_INTERRUPTS_MAX
18	int
19	default 8 if SOC_SERIES_S32ZE
20	default 32 if SOC_SERIES_S32K3
21	help
22	  Number of SIUL2 external interrupts per controller. This is a SoC
23	  integration option.
24
25config NXP_S32_EIRQ_EXT_INTERRUPTS_GROUP
26	int
27	default 8
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_S32_EIRQ
33
34config NXP_S32_WKPU
35	bool "Wake-up Unit interrupt controller driver for NXP S32 MCUs"
36	default y
37	depends on DT_HAS_NXP_S32_WKPU_ENABLED
38	help
39	  Wake-up Unit interrupt controller driver for NXP S32 MCUs
40
41if NXP_S32_WKPU
42
43config NXP_S32_WKPU_SOURCES_MAX
44	int
45	range 32 64
46	default 64 if SOC_SERIES_S32K3
47	help
48	  Number of WKPU external and internal sources per controller. This is
49	  a SoC integration option.
50
51endif # NXP_S32_WKPU
52