diff options
| author | Jim Liu <jim.t90615@gmail.com> | 2023-07-04 16:00:13 +0800 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2023-07-14 12:52:18 -0400 | 
| commit | fc3dab4fbe0075de0f7d6407c870069f1680a509 (patch) | |
| tree | 38f9da934b2da60f73df59bb0f18600403bc7909 /drivers | |
| parent | 0adbb8fbb1b64ae45b76cd6b1a639856d3a82de4 (diff) | |
misc: npcm_host_intf: change initialization sequence
configuration should be done before release host wait
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/misc/npcm_host_intf.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/drivers/misc/npcm_host_intf.c b/drivers/misc/npcm_host_intf.c index 0244e404570..79f57f57d89 100644 --- 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;  } | 
