All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] PATCH: support board-specific ethernet PHY init for ARM
@ 2007-11-10 15:29 Michael Schwingen
  2007-12-08 12:45 ` Jean-Christophe PLAGNIOL-VILLARD
  2007-12-11  9:53 ` [U-Boot-Users] [PATCH] ARM: support board-specific ethernet PHY init Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 18+ messages in thread
From: Michael Schwingen @ 2007-11-10 15:29 UTC (permalink / raw)
  To: u-boot

Hi,

The following patch adds support for board-specific PHY initialization on
ARM targets (IXP42x in my case), similar to the PPC board code. 

I have one boards where the LED pins on the PHY need to be setup to function
properly, and one board where the ethernet switch starts up with all ports
disabled.

Signed-off-by: Michael Schwingen <michael@schwingen.org>

diff --git a/lib_arm/board.c b/lib_arm/board.c
index 7e97f13..c5a941d 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -430,6 +430,10 @@ extern void dm644x_eth_set_mac_addr (const u_int8_t *addr);
 	puts ("Net:   ");
 #endif
 	eth_initialize(gd->bd);
+#if defined(CONFIG_RESET_PHY_R)
+	debug ("Reset Ethernet PHY\n");
+	reset_phy();
+#endif
 #endif
 	/* main_loop() can return to retry autoboot, if so just run it again. */
 	for (;;) {

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-12-12  8:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-10 15:29 [U-Boot-Users] PATCH: support board-specific ethernet PHY init for ARM Michael Schwingen
2007-12-08 12:45 ` Jean-Christophe PLAGNIOL-VILLARD
2007-12-08 22:32   ` Michael Schwingen
2007-12-09  9:43     ` Jean-Christophe PLAGNIOL-VILLARD
2007-12-09  9:50       ` [U-Boot-Users] [PATCH] ARM: add support of CONFIG_LAST_STAGE_INIT for arm Jean-Christophe PLAGNIOL-VILLARD
2007-12-09 14:50         ` Wolfgang Denk
2007-12-09 16:38           ` Michael Schwingen
2007-12-10 17:58             ` Haavard Skinnemoen
2007-12-10 20:08               ` Michael Schwingen
2007-12-10 20:28               ` Ben Warren
2007-12-11  8:59                 ` Haavard Skinnemoen
2007-12-11 16:13                   ` Wolfgang Denk
2007-12-11 17:05                     ` Mike Frysinger
2007-12-11 22:03                       ` Wolfgang Denk
2007-12-11 18:38                   ` Michael Schwingen
2007-12-11 22:09                     ` Wolfgang Denk
2007-12-12  8:32                       ` Michael Schwingen
2007-12-11  9:53 ` [U-Boot-Users] [PATCH] ARM: support board-specific ethernet PHY init Jean-Christophe PLAGNIOL-VILLARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.