mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
rtl8xxxu: Set correct bit to reset MCU IO wrapper
All chips, except for 8812 require BIT(0) for resetting the MCU IO wrapper. 8723b requires a more complicated reset sequence, so it will need a custom reset function. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
a26703f39d
commit
53b381c4d7
1 changed files with 2 additions and 2 deletions
|
|
@ -2052,13 +2052,13 @@ static void rtl8xxxu_reset_8051(struct rtl8xxxu_priv *priv)
|
|||
u16 sys_func;
|
||||
|
||||
val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1);
|
||||
val8 &= ~BIT(3);
|
||||
val8 &= ~BIT(0);
|
||||
rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8);
|
||||
sys_func = rtl8xxxu_read16(priv, REG_SYS_FUNC);
|
||||
sys_func &= ~SYS_FUNC_CPU_ENABLE;
|
||||
rtl8xxxu_write16(priv, REG_SYS_FUNC, sys_func);
|
||||
val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1);
|
||||
val8 |= BIT(3);
|
||||
val8 |= BIT(0);
|
||||
rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8);
|
||||
sys_func |= SYS_FUNC_CPU_ENABLE;
|
||||
rtl8xxxu_write16(priv, REG_SYS_FUNC, sys_func);
|
||||
|
|
|
|||
Loading…
Reference in a new issue