lib:utils:support pisces's system reboot
pisces system reboot will ecall gpio chip but not watchdog, and pull up cpu gpio5 to tell CPLD. CPLD will help for cold reboot. Add the function, gpio chip will pull up gpio16 after chip is probed. Signed-off-by: chunzhi.lin <chunzhi.lin@sophgo.com>
This commit is contained in:
@@ -91,7 +91,6 @@ static int mango_wdt_reset_init(void *fdt, int nodeoff,
|
||||
{
|
||||
unsigned long wdt_addr, top_addr;
|
||||
int rc;
|
||||
// struct device_node *np;
|
||||
|
||||
rc = fdt_get_node_addr_size(fdt, nodeoff, 0, &wdt_addr, NULL);
|
||||
if (rc < 0 || !wdt_addr) {
|
||||
|
||||
Reference in New Issue
Block a user