[PATCH 1/2] tx51: ensure eth phy resets properly by driving reset pin explicitly.
Christian Kapeller
christian.kapeller at cmotion.eu
Mon Jul 16 05:53:58 EDT 2012
diff --git a/arch/arm/boards/karo-tx51/tx51.c b/arch/arm/boards/karo-tx51/tx51.c
index 096683a..d862a68 100644
--- a/arch/arm/boards/karo-tx51/tx51.c
+++ b/arch/arm/boards/karo-tx51/tx51.c
@@ -205,6 +205,12 @@ static inline void tx51_fec_init(void)
}
/*
+ *Turn off phy power, be cautious and wait
+ */
+ gpio_set_value(TX51_FEC_PHY_PWR, 0);
+ mdelay(20);
+
+ /*
*Turn on phy power, leave in reset state
*/
gpio_set_value(TX51_FEC_PHY_PWR, 1);
@@ -212,7 +218,7 @@ static inline void tx51_fec_init(void)
/*
* Wait some time to let the phy activate the internal regulator
*/
- mdelay(10);
+ mdelay(20);
/*
* Deassert reset, phy latches the rest of bootstrap pins
--
1.7.5.4
More information about the barebox
mailing list