From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Schwingen Date: Fri, 22 Feb 2008 17:22:24 +0100 Subject: [U-Boot-Users] [PATCH] Add support for Generic PHY in macb In-Reply-To: <20080222170856.65e4fd3c@dhcp-252-066.norway.atmel.com> References: <395120.95844.qm@web26212.mail.ukl.yahoo.com> <20080222170856.65e4fd3c@dhcp-252-066.norway.atmel.com> Message-ID: <47BEF6C0.8070802@discworld.dascon.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Haavard Skinnemoen wrote: > 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... > And you have to know which PHY belongs to which MII port - for example, the IXP420 has two MII busses, but only one shared MDIO, so PHY addresses can not be autodetected - you need some kind of board-specific table/code that defines the mapping between PHY addresses and MII busses. Which is basically what we have now, in the form of CONFIG_PHY*_ADDR ;-) cu Michael