Skip to contentSkip to conversation

boards: amlogic-g200: remove phy reset

PATCH New Neil Armstrong 1 participant 2 messages May 28, 2019 – May 31, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boards: amlogic-g200: remove phy reset

The PHY reset is now handled by the MAC driver, remove this leftover.

---
 board/amlogic/q200/q200.c | 6 ------
 1 file changed, 6 deletions(-)
board/amlogic/q200/q200.c +0 -6
index 1932c14aa2..2ea97c362e 100644
@@ -26,12 +26,6 @@ int misc_init_r(void)
 
 	meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
 
-	/* Reset PHY on GPIOZ_14 */
-	clrbits_le32(GX_GPIO_EN(3), BIT(14));
-	clrbits_le32(GX_GPIO_OUT(3), BIT(14));
-	mdelay(10);
-	setbits_le32(GX_GPIO_OUT(3), BIT(14));
-
 	if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
 		len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
 					  mac_addr, EFUSE_MAC_SIZE);
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 boards: amlogic-g200: remove phy reset

Quoted 15 lines · Neil Armstrong

The PHY reset is now handled by the MAC driver, remove this leftover.

---
 board/amlogic/q200/q200.c | 6 ------
 1 file changed, 6 deletions(-)
board/amlogic/q200/q200.c +0 -0
index 1932c14aa2..2ea97c362e 100644
@@ -26,12 +26,6 @@ int misc_init_r(void)
 
 	meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);

board/amlogic/q200/q200.c int misc_init_r(void) · line 31

Quoted 10 lines
board/amlogic/q200/q200.c +0 -6
 
-	/* Reset PHY on GPIOZ_14 */
-	clrbits_le32(GX_GPIO_EN(3), BIT(14));
-	clrbits_le32(GX_GPIO_OUT(3), BIT(14));
-	mdelay(10);
-	setbits_le32(GX_GPIO_OUT(3), BIT(14));
-
 	if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
 		len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
 					  mac_addr, EFUSE_MAC_SIZE);

Applied to u-boot-amlogic