mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
misc: npcm_host_intf: change initialization sequence
configuration should be done before release host wait Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
This commit is contained in:
parent
e4587a7d69
commit
4d9fc67091
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue