nitrogen6x: phy: add 100 us delay after phy reset
authorTroy Kisky <troy.kisky@boundarydevices.com>
Thu, 2 Oct 2014 19:16:29 +0000 (12:16 -0700)
committerStefano Babic <sbabic@denx.de>
Mon, 6 Oct 2014 15:57:21 +0000 (17:57 +0200)
Testing shows that the Micrel PHY may not be completely out
of reset if accessed immediately.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
board/boundary/nitrogen6x/nitrogen6x.c

index e7954920465517697bd0887440df1bd5730f071e..a89a15ca746a36b7631f4a51097c8ba90a16c347 100644 (file)
@@ -246,6 +246,7 @@ static void setup_iomux_enet(void)
        gpio_set_value(IMX_GPIO_NR(1, 27), 1); /* Nitrogen6X PHY reset */
 
        imx_iomux_v3_setup_multiple_pads(enet_pads2, ARRAY_SIZE(enet_pads2));
+       udelay(100);    /* Wait 100 us before using mii interface */
 }
 
 static iomux_v3_cfg_t const usb_pads[] = {