[EMAIL PROTECTED] 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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to