lib: utils: support both of gpio-poweroff, gpio-reset
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 22 Jul 2021 10:53:59 +0000 (12:53 +0200)
committerAnup Patel <anup@brainfault.org>
Tue, 27 Jul 2021 11:56:54 +0000 (17:26 +0530)
commite928472e67f86d73c00537dfa6d5cef5d646426d
tree455537f1107843cb1401ddc2d9b788248e0d5e50
parentce03c88ee142787cfe994d776491f43020de01de
lib: utils: support both of gpio-poweroff, gpio-reset

The generic GPIO reset driver has two entries in the match table:
"gpio-poweroff", "gpio-reset". Only the first entry is considered by
fdt_reset_init().

Define "gpio-poweroff" and "gpio-reset" as compatibility strings of two
separate reset drivers. They still can share code.

Fixes: e3d6919d10d7 ("lib: utils/reset: Add generic GPIO reset driver")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/utils/reset/fdt_reset.c
lib/utils/reset/fdt_reset_gpio.c