mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
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:

committed by
Anup Patel

parent
0274a96004
commit
395ff7eede
@@ -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,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user