mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
pinctrl: nuvoton: fix reset reason error for poweron
In non tip mode, BMC first power on with PORST+CORST. the gpio status will error. Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
This commit is contained in:
@@ -808,6 +808,9 @@ static bool is_gpio_persist(struct udevice *dev, uint bank)
|
||||
status = npcm_get_reset_status();
|
||||
dev_dbg(dev, "reset status: 0x%x\n", status);
|
||||
|
||||
if (status & PORST)
|
||||
return false;
|
||||
|
||||
if (status & CORST)
|
||||
regmap_read(priv->rst_regmap, CORSTC, &val);
|
||||
else if (status & WD0RST)
|
||||
|
||||
Reference in New Issue
Block a user