From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 8 Dec 2007 13:45:34 +0100 Subject: [U-Boot-Users] PATCH: support board-specific ethernet PHY init for ARM In-Reply-To: <20071110152920.GA10872@discworld.dascon.de> References: <20071110152920.GA10872@discworld.dascon.de> Message-ID: <20071208124534.GB32116@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 16:29 Sat 10 Nov , Michael Schwingen wrote: > 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 > > 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 (;;) { The phy reset will be call in the mac layer drivers not in the board part. Best Regards J.