git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0943111
)
pinctrl: nuvoton: fix reset reason error for poweron
author
Jim Liu
<jim.t90615@gmail.com>
Tue, 4 Jul 2023 08:00:12 +0000
(16:00 +0800)
committer
Tom Rini
<trini@konsulko.com>
Fri, 14 Jul 2023 19:21:07 +0000
(15:21 -0400)
In non tip mode, BMC first power on with PORST+CORST.
the gpio status will error.
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
index
f18be08
..
7976e3b
100644
(file)
--- a/
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
+++ b/
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
@@
-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)