lib: utils/gpio: Add generic GPIO configuration library
authorAnup Patel <anup.patel@wdc.com>
Tue, 13 Jul 2021 03:23:42 +0000 (11:23 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 17 Jul 2021 06:12:51 +0000 (11:42 +0530)
commit36b8effe4a07bbf476deca6c8769529c69078f08
tree7ed406c370b4fc1662bc9175cb8141e1e325f0ff
parente931f387b27a2f575f5b713391e241d8963b48c5
lib: utils/gpio: Add generic GPIO configuration library

We add generic GPIO configuration library which is independent of
hardware description format (FDT or ACPI). The OpenSBI platform
support or GPIO drivers can register GPIO chip instances which
can be discovered and used by different GPIO clients. Each GPIO
chip instance has a unique ID which can be used by GPIO clients
to lookup GPIO chip instance.

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