[U-Boot-Users] [PATCH] Add support for Generic PHY in macb

Michael Schwingen rincewind at discworld.dascon.de
Sun Feb 24 17:36:52 CET 2008


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





More information about the U-Boot mailing list