lib: utils/reset: Add a sunxi watchdog reset driver

One of the watchdogs in the D1 SoC provides a "soft reset" function,
which allows software to immediately reset the entire SoC. Add a driver
so it can implement the SBI system reset function.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Samuel Holland
2021-09-08 21:10:09 -05:00
committed by Anup Patel
parent 0274a96004
commit 395ff7eede
3 changed files with 80 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ extern struct fdt_reset fdt_poweroff_gpio;
extern struct fdt_reset fdt_reset_gpio;
extern struct fdt_reset fdt_reset_htif;
extern struct fdt_reset fdt_reset_sifive_test;
extern struct fdt_reset fdt_reset_sunxi_wdt;
extern struct fdt_reset fdt_reset_thead;
static struct fdt_reset *reset_drivers[] = {
@@ -23,6 +24,7 @@ static struct fdt_reset *reset_drivers[] = {
&fdt_reset_gpio,
&fdt_reset_htif,
&fdt_reset_sifive_test,
&fdt_reset_sunxi_wdt,
&fdt_reset_thead,
};