lib: utils: identify supported GPIO reset methods
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 28 Sep 2021 11:42:46 +0000 (13:42 +0200)
committerAnup Patel <anup@brainfault.org>
Fri, 1 Oct 2021 04:54:43 +0000 (10:24 +0530)
commit754d51192b6bf6a4afd9d46c5f736a9f6dd1b404
tree4fa636116858ce08252f70b388eb12d2f06bd886
parentfa59dd317aaf9c05c6d89a40c27bd98316d8c2df
lib: utils: identify supported GPIO reset methods

The GPIO reset driver supports reset and poweroff. But not all boards
support both. gpio_system_reset_check() must detect this situation.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/utils/reset/fdt_reset_gpio.c