mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
boards: amlogic: remove ethernet gpio reset code from boards
The reset is already handled by the designware driver using information from device tree. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
e1904f4530
commit
0b600918d5
@ -30,12 +30,6 @@ int misc_init_r(void)
|
|||||||
|
|
||||||
meson_gx_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
|
meson_gx_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)) {
|
if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
|
||||||
len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
|
len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
|
||||||
mac_addr, EFUSE_MAC_SIZE);
|
mac_addr, EFUSE_MAC_SIZE);
|
||||||
|
|||||||
@ -30,12 +30,6 @@ int misc_init_r(void)
|
|||||||
|
|
||||||
meson_gx_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
|
meson_gx_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)) {
|
if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
|
||||||
len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
|
len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
|
||||||
mac_addr, EFUSE_MAC_SIZE);
|
mac_addr, EFUSE_MAC_SIZE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user