lib: utils/gpio: Add minimal SiFive GPIO driver
authorGreen Wan <green.wan@sifive.com>
Tue, 13 Jul 2021 03:23:44 +0000 (11:23 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 17 Jul 2021 08:26:42 +0000 (13:56 +0530)
commit4c3df2ab96be2ae513b80ee96d1db7b97155d231
treeef5a32ca4dae27da90d187e98ea4c464cf2faa34
parentc14f1fe0dfd96d7be1ed2abba0a873110cdbcc9d
lib: utils/gpio: Add minimal SiFive GPIO driver

We add a minimal SiFive GPIO driver so that we can do GPIO based
system power-off and reset.

Signed-off-by: Green Wan <green.wan@sifive.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/utils/gpio/fdt_gpio.c
lib/utils/gpio/fdt_gpio_sifive.c [new file with mode: 0644]
lib/utils/gpio/objects.mk