From: Fabio Estevam Date: Mon, 1 Feb 2016 13:15:10 +0000 (-0200) Subject: mx6slevk: Fix the reset delay for the the LAN8720 PHY X-Git-Tag: v2016.03-rc2~150 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=529a6712795a50d68967cbd071edfe232a245d5d;p=u-boot mx6slevk: Fix the reset delay for the the LAN8720 PHY 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 --- diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 5eab4b54a8..721ec21723 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -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); }