Commit 0254006b29fcb960ef8c3188eab12a39845719f0

Authored by Yung-Ching LIN
Committed by Stefano Babic
1 parent fc9ade56e3

board: advantech: dms-ba16: fix AR8033 reset timing issue

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>
Acked-by: Akshay Bhat <akshay.bhat@timesys.com>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

board/advantech/dms-ba16/dms-ba16.c
... ... @@ -103,8 +103,9 @@
103 103  
104 104 /* Reset AR8033 PHY */
105 105 gpio_direction_output(IMX_GPIO_NR(1, 28), 0);
106   - udelay(500);
  106 + mdelay(10);
107 107 gpio_set_value(IMX_GPIO_NR(1, 28), 1);
  108 + mdelay(1);
108 109 }
109 110  
110 111 static iomux_v3_cfg_t const usdhc2_pads[] = {