projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0adbb8f
)
misc: npcm_host_intf: change initialization sequence
author
Jim Liu
<jim.t90615@gmail.com>
Tue, 4 Jul 2023 08:00:13 +0000
(16:00 +0800)
committer
Tom Rini
<trini@konsulko.com>
Fri, 14 Jul 2023 16:52:18 +0000
(12:52 -0400)
configuration should be done before release host wait
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
drivers/misc/npcm_host_intf.c
patch
|
blob
|
history
diff --git
a/drivers/misc/npcm_host_intf.c
b/drivers/misc/npcm_host_intf.c
index 0244e4045703bf8ccd6983526daadfd93fed29ec..79f57f57d89caad34260ce07a15685baee902d72 100644
(file)
--- a/
drivers/misc/npcm_host_intf.c
+++ b/
drivers/misc/npcm_host_intf.c
@@
-50,9
+50,6
@@
static int npcm_host_intf_bind(struct udevice *dev)
const char *type;
int ret;
- /* Release host wait */
- setbits_8(SMC_CTL_REG_ADDR, SMC_CTL_HOSTWAIT);
-
syscon = syscon_regmap_lookup_by_phandle(dev, "syscon");
if (IS_ERR(syscon)) {
dev_err(dev, "%s: unable to get syscon, dev %s\n", __func__, dev->name);
@@
-93,6
+90,9
@@
static int npcm_host_intf_bind(struct udevice *dev)
regmap_update_bits(syscon, MFSEL1, MFSEL1_LPCSEL, MFSEL1_LPCSEL);
}
+ /* Release host wait */
+ setbits_8(SMC_CTL_REG_ADDR, SMC_CTL_HOSTWAIT);
+
return 0;
}