From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Schwingen Date: Sun, 24 Feb 2008 17:36:52 +0100 Subject: [U-Boot-Users] [PATCH] Add support for Generic PHY in macb In-Reply-To: <20080224143020.ksoubcy5gk0sc0s8@feanor.sssup.it> References: <395120.95844.qm@web26212.mail.ukl.yahoo.com> <20080222170856.65e4fd3c@dhcp-252-066.norway.atmel.com> <47C01057.7070708@gandalf.sssup.it> <47C1349D.9050209@discworld.dascon.de> <20080224143020.ksoubcy5gk0sc0s8@feanor.sssup.it> Message-ID: <47C19D24.3040708@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 trimarchi at gandalf.sssup.it wrote: > ... if I understand the physical address is latched during power on and > if the logic is not good maybe it can be latched a different addresss in > different session. I like somenthing that permits at software > developer to easy > search for the physical address. The "mii info" command (without a PHY address as parameter) does exactly what you need: => mii info PHY 0x10: OUI = 0x5043, Model = 0x08, Rev = 0x07, 10baseT, HDX PHY 0x11: OUI = 0x5043, Model = 0x08, Rev = 0x07, 10baseT, HDX PHY 0x12: OUI = 0x5043, Model = 0x08, Rev = 0x07, 10baseT, HDX PHY 0x13: OUI = 0x5043, Model = 0x08, Rev = 0x07, 100baseT, FDX PHY 0x14: OUI = 0x5043, Model = 0x08, Rev = 0x07, 10baseT, HDX PHY 0x15: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX PHY 0x16: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX PHY 0x17: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX PHY 0x18: OUI = 0x0001, Model = 0x20, Rev = 0x02, 10baseT, HDX PHY 0x19: OUI = 0x0001, Model = 0x20, Rev = 0x02, 10baseT, HDX PHY 0x1A: OUI = 0x0001, Model = 0x20, Rev = 0x02, 10baseT, HDX PHY 0x1B: OUI = 0x0001, Model = 0x20, Rev = 0x02, 10baseT, HDX PHY 0x1C: OUI = 0x0001, Model = 0x20, Rev = 0x02, 10baseT, HDX PHY 0x1D: OUI = 0x0001, Model = 0x20, Rev = 0x02, 10baseT, HDX PHY 0x1E: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX Now which of these should the autodetect code pick? (hint: 0x13 is wrong, even if it is the only one that shows a 100Mbps link). Also, this really is a board with working MDIO, with correct pullups, so no "ghost" PHYs in the list. cu Michael