zephyr/drivers/interrupt_controller/Kconfig.rv32m1
Marti Bolivar 58d8afb476 interrupt_controller: RV32M1: add intmux driver / DT bindings
Add a level 2 interrupt controller for the RV32M1 SoC. This uses the
INTMUX peripheral.

As a first customer, convert the timer driver over to using this,
adding nodes for the LPTMR peripherals. This lets users select the
timer instance they want to use, and what intmux channel they want to
route its interrupt to, using DT overlays.

Signed-off-by: Marti Bolivar <marti@foundries.io>
Signed-off-by: Mike Scott <mike@foundries.io>
2019-01-25 11:59:46 -05:00

67 lines
1.6 KiB
Plaintext

# Kconfig - RV32M1 INTMUX config
#
# Copyright (c) 2018 Foundries.io
#
# SPDX-License-Identifier: Apache-2.0
config RV32M1_INTMUX
bool "OpenISA RV32M1 INTMUX interrupt controller support"
depends on SOC_OPENISA_RV32M1_RISCV32 && MULTI_LEVEL_INTERRUPTS
help
Select this option to enable support for the RV32M1 INTMUX
driver. This provides a level 2 interrupt controller for the SoC.
The INTMUX peripheral combines level 2 interrupts into
eight channels; each channel has its own level 1 interrupt to
the core.
if RV32M1_INTMUX
config RV32M1_INTMUX_INIT_PRIORITY
int "INTMUX driver initialization priority"
default 60
help
Boot time initialization priority for INTMUX driver.
Don't change the default unless you know what you are doing.
config RV32M1_INTMUX_CHANNEL_0
bool "INTMUX channel 0"
help
Enable support for INTMUX channel 0.
config RV32M1_INTMUX_CHANNEL_1
bool "INTMUX channel 1"
help
Enable support for INTMUX channel 1.
config RV32M1_INTMUX_CHANNEL_2
bool "INTMUX channel 2"
help
Enable support for INTMUX channel 2.
config RV32M1_INTMUX_CHANNEL_3
bool "INTMUX channel 3"
help
Enable support for INTMUX channel 3.
config RV32M1_INTMUX_CHANNEL_4
bool "INTMUX channel 4"
help
Enable support for INTMUX channel 4.
config RV32M1_INTMUX_CHANNEL_5
bool "INTMUX channel 5"
help
Enable support for INTMUX channel 5.
config RV32M1_INTMUX_CHANNEL_6
bool "INTMUX channel 6"
help
Enable support for INTMUX channel 6.
config RV32M1_INTMUX_CHANNEL_7
bool "INTMUX channel 7"
help
Enable support for INTMUX channel 7.
endif # RV32M1_INTMUX