]> git.sur5r.net Git - u-boot/commitdiff
mx6slevk: Fix the reset delay for the the LAN8720 PHY
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 1 Feb 2016 13:15:10 +0000 (11:15 -0200)
committerStefano Babic <sbabic@denx.de>
Tue, 2 Feb 2016 20:18:44 +0000 (21:18 +0100)
Since commit 59370f3fcd1350 ("net: phy: delay only if reset handler is
registered") Ethernet is no longer functional.

This commit does not have an issue in itself, but it revelead a problem
with the Ethernet initialization.

According to the LAN8720 datasheet tpurstd (time that reset line should
stay asserted) is 25ms.

So do as suggested in order to have Ethernet working again.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
board/freescale/mx6slevk/mx6slevk.c

index 5eab4b54a8d56652f7c558e67f3ce415168cbb1f..721ec2172328f56964aa3038cdc0f8b359f04aa2 100644 (file)
@@ -156,7 +156,7 @@ static void setup_iomux_fec(void)
 
        /* Reset LAN8720 PHY */
        gpio_direction_output(ETH_PHY_RESET , 0);
-       udelay(1000);
+       udelay(25000);
        gpio_set_value(ETH_PHY_RESET, 1);
 }