]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
udoo_neo: Fix ethernet
authorPeter Robinson <pbrobinson@gmail.com>
Tue, 21 Dec 2021 12:32:48 +0000 (12:32 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jan 2022 14:30:45 +0000 (09:30 -0500)
The ethernet has a RMII not RGMII, also needs DM_MDIO and finally
initialise it later in the process as it's not needed that early on
and not everything is ready so it locks up the device.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
board/udoo/neo/neo.c
configs/udoo_neo_defconfig

index 8b0d13b1cae108b0cc95351aadf798d5b0159b50..62f81fff681772bfaa0edaa45098dc05e54ff53f 100644 (file)
@@ -303,6 +303,8 @@ int board_init(void)
        setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
 #endif
 
+       setup_fec();
+
        return 0;
 }
 
@@ -337,7 +339,6 @@ static int get_board_value(void)
 int board_early_init_f(void)
 {
        setup_iomux_uart();
-       setup_fec();
 
        return 0;
 }
index f01d2e22e99044ccfe5e63fdeaab7a7e5f49d411..2a3775710057eb16ac8f9bdbe833f9dcde637390 100644 (file)
@@ -46,8 +46,8 @@ CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
 CONFIG_DM_ETH=y
+CONFIG_DM_MDIO=y
 CONFIG_FEC_MXC=y
-CONFIG_RGMII=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y