From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Mon, 25 Feb 2008 20:30:13 -0500 Subject: [U-Boot-Users] [PATCH] Add support for Generic PHY in macb In-Reply-To: <718910.92209.qm@web26215.mail.ukl.yahoo.com> References: <718910.92209.qm@web26215.mail.ukl.yahoo.com> Message-ID: <47C36BA5.5090204@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Michael Trimarchi wrote: > Hi, > ----- Messaggio originale ----- > >> Da: Haavard Skinnemoen >> A: Michael Trimarchi >> Cc: Michael Schwingen ; u-boot-users at lists.sourceforge.net >> Inviato: Venerd? 22 febbraio 2008, 17:08:56 >> Oggetto: Re: [U-Boot-Users] [PATCH] Add support for Generic PHY in macb >> >> On Fri, 22 Feb 2008 16:02:13 +0000 (GMT) >> Michael Trimarchi wrote: >> >> >>>> In any case, the dm9161a PHY in question does implement MDIO, so it >>>> really should work without any modifications. >>>> >>>> >>> Maybe we can add the for cycle like in linux to check the phy addr? >>> >> Yes, we could do that. But it comes with its own share of problems -- >> some boards have a too weak pull-up (or none at all) on the MDIO line, >> so the probing code sometimes thinks it has found a whole bunch of >> PHYs... >> >> Haavard >> >> > But the u-boot user may to choice to use the automatic detection, based on > phy_id mask and stop the search on the first one, or somenthing like this. > > Michael > I don't follow why you'd want to do this. As Andy, Haavard and others have pointed out, you can't probe for PHY addresses because quite often multiple ports will share an MDIO bus, and also it's unreliable at best. Anybody who writes U-boot code needs to know the details of his or her board, and PHY addresses are always fixed in hardware. There may be some reason to make them dynamic, but I can't imagine why. regards, Ben