drivers: intc: Update drivers to use devicetree Kconfig symbol
Update intc drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.
We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.
Signed-off-by: Kumar Gala <galak@kernel.org>
diff --git a/drivers/interrupt_controller/Kconfig b/drivers/interrupt_controller/Kconfig
index 2a194de..93d6332 100644
--- a/drivers/interrupt_controller/Kconfig
+++ b/drivers/interrupt_controller/Kconfig
@@ -18,19 +18,22 @@
config SWERV_PIC
bool "SweRV EH1 Programmable Interrupt Controller (PIC)"
+ default y
+ depends on DT_HAS_SWERV_PIC_ENABLED
help
Programmable Interrupt Controller for the SweRV EH1 RISC-V CPU.
config VEXRISCV_LITEX_IRQ
bool "VexRiscv LiteX Interrupt controller"
- depends on SOC_RISCV32_LITEX_VEXRISCV
+ default y
+ depends on DT_HAS_VEXRISCV_INTC0_ENABLED
help
IRQ implementation for LiteX VexRiscv
config LEON_IRQMP
bool "GRLIB IRQMP interrupt controller"
default y
- depends on SOC_SPARC_LEON
+ depends on DT_HAS_GAISLER_IRQMP_ENABLED
help
GRLIB IRQMP and IRQAMP