board: ge: bx50v3: fix AR8033 reset timing issue
authorYung-Ching LIN <yungching0725@gmail.com>
Tue, 21 Feb 2017 01:56:55 +0000 (09:56 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Sun, 26 Mar 2017 14:58:08 +0000 (09:58 -0500)
Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-reset(1ms) requirement recommended in the AR8033 datasheet

Signed-off-by: Ken Lin <yungching0725@gmail.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Ian Ray <ian.ray@ge.com>
board/ge/bx50v3/bx50v3.c

index 2fc1144cdae17170193e69251dd39aa24e918330..80b4ba1b8bf113a9cca1a76c76957d270fde0117 100644 (file)
@@ -103,8 +103,9 @@ static void setup_iomux_enet(void)
 
        /* Reset AR8033 PHY */
        gpio_direction_output(IMX_GPIO_NR(1, 28), 0);
-       udelay(500);
+       mdelay(10);
        gpio_set_value(IMX_GPIO_NR(1, 28), 1);
+       mdelay(1);
 }
 
 static iomux_v3_cfg_t const usdhc2_pads[] = {