1# RV32M1 INTMUX config
2
3# Copyright (c) 2018 Foundries.io
4# SPDX-License-Identifier: Apache-2.0
5
6config RV32M1_INTMUX
7	bool "OpenISA RV32M1 INTMUX interrupt controller support"
8	default y
9	depends on DT_HAS_OPENISA_RV32M1_INTMUX_ENABLED
10	depends on MULTI_LEVEL_INTERRUPTS
11	help
12	  Select this option to enable support for the RV32M1 INTMUX
13	  driver. This provides a level 2 interrupt controller for the SoC.
14	  The INTMUX peripheral combines level 2 interrupts into
15	  eight channels; each channel has its own level 1 interrupt to
16	  the core.
17
18if RV32M1_INTMUX
19
20config RV32M1_INTMUX_INIT_PRIORITY
21	int "INTMUX driver initialization priority"
22	default 40
23	help
24	  Boot time initialization priority for INTMUX driver.
25	  Don't change the default unless you know what you are doing.
26
27config RV32M1_INTMUX_CHANNEL_0
28	bool "INTMUX channel 0"
29	help
30	  Enable support for INTMUX channel 0.
31
32config RV32M1_INTMUX_CHANNEL_1
33	bool "INTMUX channel 1"
34	help
35	  Enable support for INTMUX channel 1.
36if !BT
37config RV32M1_INTMUX_CHANNEL_2
38	bool "INTMUX channel 2"
39	help
40	  Enable support for INTMUX channel 2.
41
42config RV32M1_INTMUX_CHANNEL_3
43	bool "INTMUX channel 3"
44	help
45	  Enable support for INTMUX channel 3.
46endif # BT
47config RV32M1_INTMUX_CHANNEL_4
48	bool "INTMUX channel 4"
49	help
50	  Enable support for INTMUX channel 4.
51
52config RV32M1_INTMUX_CHANNEL_5
53	bool "INTMUX channel 5"
54	help
55	  Enable support for INTMUX channel 5.
56
57config RV32M1_INTMUX_CHANNEL_6
58	bool "INTMUX channel 6"
59	help
60	  Enable support for INTMUX channel 6.
61
62config RV32M1_INTMUX_CHANNEL_7
63	bool "INTMUX channel 7"
64	help
65	  Enable support for INTMUX channel 7.
66
67endif # RV32M1_INTMUX
68