mips: ath79: ar933x: Fix ethernet PHY mismatch
We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work. Signed-off-by: Wills Wang <wills.wang@live.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
1ad3a6fb5b
commit
42a3f3e6eb
@ -660,6 +660,7 @@
|
||||
|
||||
#define AR933X_RESET_GE1_MDIO BIT(23)
|
||||
#define AR933X_RESET_GE0_MDIO BIT(22)
|
||||
#define AR933X_RESET_ETH_SWITCH_ANALOG BIT(14)
|
||||
#define AR933X_RESET_GE1_MAC BIT(13)
|
||||
#define AR933X_RESET_WMAC BIT(11)
|
||||
#define AR933X_RESET_GE0_MAC BIT(9)
|
||||
|
@ -81,7 +81,8 @@ static int eth_init_ar933x(void)
|
||||
MAP_NOCACHE);
|
||||
const u32 mask = AR933X_RESET_GE0_MAC | AR933X_RESET_GE0_MDIO |
|
||||
AR933X_RESET_GE1_MAC | AR933X_RESET_GE1_MDIO |
|
||||
AR933X_RESET_ETH_SWITCH;
|
||||
AR933X_RESET_ETH_SWITCH |
|
||||
AR933X_RESET_ETH_SWITCH_ANALOG;
|
||||
|
||||
/* Clear MDIO slave EN bit. */
|
||||
clrbits_be32(rregs + AR933X_RESET_REG_BOOTSTRAP, BIT(17));
|
||||
|
Loading…
Reference in New Issue
Block a user