lib: sbi: convert reset to list
authorNikita Shubin <n.shubin@yadro.com>
Fri, 1 Oct 2021 08:31:16 +0000 (11:31 +0300)
committerAnup Patel <anup@brainfault.org>
Mon, 11 Oct 2021 04:29:29 +0000 (09:59 +0530)
commit516161c46f0d3c73bf6a57e551d6e2489912fc03
treea2186bbe2c1ac5817c9cce98cd79519e5e7a4752
parent754d51192b6bf6a4afd9d46c5f736a9f6dd1b404
lib: sbi: convert reset to list

To support different handlers for different types of resets, we are
adding a sbi_list of restart handlers.

Instead of sbi_system_reset_set_device we use
sbi_system_reset_add_device to reflect the actual meaning.

Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
include/sbi/sbi_system.h
lib/sbi/sbi_init.c
lib/sbi/sbi_system.c
lib/utils/reset/fdt_reset_gpio.c
lib/utils/reset/fdt_reset_sunxi_wdt.c
lib/utils/reset/fdt_reset_thead.c
lib/utils/sys/htif.c
lib/utils/sys/sifive_test.c
platform/kendryte/k210/platform.c
platform/nuclei/ux600/platform.c