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:
chunzhi.lin
2023-06-29 11:55:05 +08:00
committed by xingxg2022
parent d21bf89240
commit d06c0a7858
4 changed files with 93 additions and 36 deletions

View File

@@ -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) {