]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
amlogic: board p212: Fix Ethernet PHY init
authorJasper kcoding <jasperkcoding@gmail.com>
Mon, 3 Sep 2018 20:14:53 +0000 (22:14 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 5 Sep 2018 20:02:34 +0000 (16:02 -0400)
Without this patch the Ethernet PHY on the p212 board does not get
fully configured.
When this happens Ethernet does not function.

The similar libretech-cc and khadas-vim boards have this code already.
That's why the Ethernet on these boards do work.

Signed-off-by: Jasper Kcoding <jasperkcoding@gmail.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
board/amlogic/p212/p212.c

index 06c2eaee47fb3b24e1c74e39cb84c471c48a20f9..00e07d77ad405d93eea880601ed75560a0db4e00 100644 (file)
@@ -29,7 +29,8 @@ int misc_init_r(void)
        char serial[EFUSE_SN_SIZE];
        ssize_t len;
 
-       meson_gx_eth_init(PHY_INTERFACE_MODE_RMII, 0);
+       meson_gx_eth_init(PHY_INTERFACE_MODE_RMII,
+                         MESON_GXL_USE_INTERNAL_RMII_PHY);
 
        if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
                len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,