lib: utils/irqchip: Use kconfig for enabling/disabling drivers

We update irqchip drivers makefile to use kconfig for enabling/disabling
drivers. To avoid compile errors, we also enable appropriate irqchip
drivers for each platform.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Tested-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
This commit is contained in:
Anup Patel
2022-08-08 09:33:52 +05:30
committed by Anup Patel
parent 76af9d40da
commit 0b1cf2f645
12 changed files with 83 additions and 11 deletions

40
lib/utils/irqchip/Kconfig Normal file
View File

@@ -0,0 +1,40 @@
# SPDX-License-Identifier: BSD-2-Clause
menu "Interrupt Controller Support"
config FDT_IRQCHIP
bool "FDT based interrupt controller drivers"
default n
if FDT_IRQCHIP
config FDT_IRQCHIP_APLIC
bool "Advanced Platform Level Interrupt Controller (APLIC) FDT driver"
select IRQCHIP_APLIC
default n
config FDT_IRQCHIP_IMSIC
bool "Incoming Message Signalled Interrupt Controller (IMSIC) FDT driver"
select IRQCHIP_IMSIC
default n
config FDT_IRQCHIP_PLIC
bool "Platform Level Interrupt Controller (PLIC) FDT driver"
select IRQCHIP_PLIC
default n
endif
config IRQCHIP_APLIC
bool "Advanced Platform Level Interrupt Controller (APLIC) support"
default n
config IRQCHIP_IMSIC
bool "Incoming Message Signalled Interrupt Controller (IMSIC) support"
default n
config IRQCHIP_PLIC
bool "Platform Level Interrupt Controller (PLIC) support"
default n
endmenu