]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
boards: amlogic: remove ethernet gpio reset code from boards
authorBeniamino Galvani <b.galvani@gmail.com>
Tue, 14 Aug 2018 13:07:52 +0000 (15:07 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Aug 2018 17:19:53 +0000 (13:19 -0400)
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>
board/amlogic/nanopi-k2/nanopi-k2.c
board/amlogic/odroid-c2/odroid-c2.c

index 339dbb81dba2cad29a92464b478281b25bc8dc3c..ae29dd6fa47424431a11b2e1d6aa55fe088d3cda 100644 (file)
@@ -30,12 +30,6 @@ int misc_init_r(void)
 
        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)) {
                len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
                                          mac_addr, EFUSE_MAC_SIZE);
index c47b9ce9cb77ac066c9cf4ed17200d365b70cbf7..2a2755c387362cb6c6e018bb8c232bd23d97e1c4 100644 (file)
@@ -30,12 +30,6 @@ int misc_init_r(void)
 
        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)) {
                len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
                                          mac_addr, EFUSE_MAC_SIZE);