mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-06-25 23:58:55 +00:00
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:
parent
76af9d40da
commit
0b1cf2f645
12 changed files with 83 additions and 11 deletions
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include <sbi/sbi_types.h>
|
||||
|
||||
#ifdef CONFIG_FDT_IRQCHIP
|
||||
|
||||
struct fdt_irqchip {
|
||||
const struct fdt_match *match_table;
|
||||
int (*cold_init)(void *fdt, int nodeoff, const struct fdt_match *match);
|
||||
|
@ -23,4 +25,12 @@ void fdt_irqchip_exit(void);
|
|||
|
||||
int fdt_irqchip_init(bool cold_boot);
|
||||
|
||||
#else
|
||||
|
||||
static inline void fdt_irqchip_exit(void) { }
|
||||
|
||||
static inline int fdt_irqchip_init(bool cold_boot) { return 0; }
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue