lib: utils/reset: add priority to gpio reset
authorNikita Shubin <n.shubin@yadro.com>
Wed, 10 Nov 2021 09:42:25 +0000 (12:42 +0300)
committerAnup Patel <anup@brainfault.org>
Fri, 12 Nov 2021 04:45:54 +0000 (10:15 +0530)
commit94eba23376b5324f012e8e035a341d6d2d625b27
tree6b3e66afe0d0ea4872a4c5caacfd42dec42257b6
parent31fe5a7a3d80f0ceb25005740313cee1ef3fd4f6
lib: utils/reset: add priority to gpio reset

Make gpio_system_reset_check return priority instead of just true/false.

Make default 128 priority for reset/shutdown.

Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
lib/utils/reset/fdt_reset_gpio.c