lib: utils/gpio: Generate FDT gpio driver list at compile-time
authorAnup Patel <apatel@ventanamicro.com>
Fri, 13 May 2022 03:57:12 +0000 (09:27 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 13 May 2022 03:57:12 +0000 (09:27 +0530)
commit4eacd8229b63bcc220fbdaa4c294ea5ae8c978f0
treeca4e10ff4088cb50fbba6424bd1bb0b647fa1248
parent998ed43fde10c64b3e949a904746464b23796971
lib: utils/gpio: Generate FDT gpio driver list at compile-time

Instead of having FDT gpio driver list hard-coded in the C source,
we generate it using carray.sh at compile-time.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
include/sbi_utils/gpio/fdt_gpio.h
lib/utils/gpio/fdt_gpio.c
lib/utils/gpio/fdt_gpio_drivers.carray [new file with mode: 0644]
lib/utils/gpio/objects.mk