[U-Boot-Users] Fix for MII utils

Steven Scholz steven.scholz at imc-berlin.de
Mon Oct 20 19:00:44 CEST 2003

Hi there,

the attached patch addresses two MII related issues:
a) mii info <addr> ignored <addr> and always showed info for 32 PHYs
b) The "Trick" mentioned in miiphy_info():
"	* Trick: we are reading two 16 registers into a 32 bit variable
	* so we do a 16 read into the high order bits of the variable (big
	* endian, you know), shift it down 16 bits, and the read the rest."
     does obviously not work on little endian machines.

* Patch by Steven Scholz, 20 Oct 2003
   - "mii info <addr>" now only shows the info for PHY "addr" as the help
      message already suggests
   - Endian fix for miiphy_info()



More information about the U-Boot mailing list