[PATCH] ARM i.MX51 babbage: Add delay after phy reset

Sascha Hauer s.hauer at pengutronix.de
Thu Sep 27 13:15:07 EDT 2012


Since we have phylib the phy won't be detected after poweron. It seems
the phy needs some time after reset.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/freescale-mx51-pdk/board.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/freescale-mx51-pdk/board.c b/arch/arm/boards/freescale-mx51-pdk/board.c
index 8c6bba5..3a8e5ea 100644
--- a/arch/arm/boards/freescale-mx51-pdk/board.c
+++ b/arch/arm/boards/freescale-mx51-pdk/board.c
@@ -227,9 +227,11 @@ static void babbage_power_init(void)
 	val = 0x49249;
 	mc13xxx_reg_write(mc13xxx, MC13892_REG_MODE_1, val);
 
-	udelay(500);
+	udelay(200);
 
 	gpio_set_value(GPIO_LAN8700_RESET, 1);
+
+	mdelay(50);
 }
 
 static int f3s_devices_init(void)
-- 
1.7.10.4




More information about the barebox mailing list