lib: utils/reset: Add generic GPIO reset driver
authorGreen Wan <green.wan@sifive.com>
Tue, 13 Jul 2021 03:23:45 +0000 (11:23 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 17 Jul 2021 08:42:07 +0000 (14:12 +0530)
commite3d6919d10d73ff97cfe583cc78fc01c7beaf4b5
tree07e84a394080af03f315a24a08337938ef4e0ad5
parent4c3df2ab96be2ae513b80ee96d1db7b97155d231
lib: utils/reset: Add generic GPIO reset driver

We add generic GPIO reset driver inspired from gpio-restart
and gpio-poweroff drivers of Linux kernel.

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/reset/fdt_reset.c
lib/utils/reset/fdt_reset_gpio.c [new file with mode: 0644]
lib/utils/reset/objects.mk