lib: utils/gpio: Add simple FDT based GPIO framework
authorAnup Patel <anup.patel@wdc.com>
Tue, 13 Jul 2021 03:23:43 +0000 (11:23 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 17 Jul 2021 08:11:17 +0000 (13:41 +0530)
commitc14f1fe0dfd96d7be1ed2abba0a873110cdbcc9d
tree2de83bb9c9ed98d47e0d3672535489b541a3044e
parent36b8effe4a07bbf476deca6c8769529c69078f08
lib: utils/gpio: Add simple FDT based GPIO framework

We add a simple FDT based GPIO framework which is built on top
of generic GPIO library. The phandle of FDT GPIO chip DT node
is treated as unique GPIO chip ID required by the generic GPIO
library. The FDT based GPIO chip drivers will be probed on-demand
from fdt_gpio_pin_get() called by the GPIO client drivers.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi_utils/gpio/fdt_gpio.h [new file with mode: 0644]
lib/utils/gpio/fdt_gpio.c [new file with mode: 0644]
lib/utils/gpio/objects.mk