[PATCH 1/2] tx51: ensure eth phy resets properly by driving reset pin explicitly.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux