Skip to contentSkip to conversation

board: ge: bx50v3: fix AR8033 reset timing issue

PATCH New ken 2 participants 2 messages Feb 1, 2017 – Feb 3, 2017

lore
Share & tools
lore

ken

author
#0 lore raw

PATCH 1/2 board: ge: bx50v3: 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

---
 board/ge/bx50v3/bx50v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ge/bx50v3/bx50v3.c +2 -1
index 2fc1144..80b4ba1 100644
@@ -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[] = {
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/2 board: ge: bx50v3: fix AR8033 reset timing issue

Quoted 2 lines · On Wed, Feb 1, 2017 at 5:59 PM, ken <Ken Lin> <[email protected]> wrote:

Add the delay (10ms) to ensure the clock is stable and to meet the clock-to-reset(1ms) requirement recommended in the AR8033 datasheet
---

Your Signed-off-by is missing.