]> git.sur5r.net Git - u-boot/commitdiff
tqma6_wru4: Fix the reset delay for the the LAN8720 PHY
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 1 Feb 2016 13:19:59 +0000 (11:19 -0200)
committerStefano Babic <sbabic@denx.de>
Tue, 2 Feb 2016 20:20:55 +0000 (21:20 +0100)
According to the LAN8720 datasheet tpurstd (time that reset line should
stay asserted) is 25ms.

So do as suggested by the LAN8720 datasheet.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
board/tqc/tqma6/tqma6_wru4.c

index 4427799ca8fc0cbe62ea3a26928bad59d4433c6e..c9a7ab7ea92efe99199126a833d015c2989ed5be 100644 (file)
@@ -177,7 +177,7 @@ static void setup_iomuxc_enet(void)
        ret = gpio_request(ENET_PHY_RESET_GPIO, "phy-reset");
        if (!ret)
                gpio_direction_output(ENET_PHY_RESET_GPIO , 0);
-       udelay(1000);
+       udelay(25000);
        gpio_set_value(ENET_PHY_RESET_GPIO, 1);
 }