On Fri, 2009-02-27 at 23:28 +0100, Lennert Buytenhek wrote:
This sort of enables auto-detection of speed.
For external ports I had to enabled the PPU to allow the external PHYs
to negotiate.
Also, on external PHYs ports 8 and 9, I write 0x0403 not 0x0003 (to
register 0x1, PCS Control Register). Which also enables inband
auto-negotiation, but I'm not sure this is necessary.
On the CPU port I force link-up and force speed+duplex setting. I only
got 100Mbit/s to the CPU port...
/* CPU Port 10: Force 100Mbit Full-Duplex */
REG_WRITE( 0x1A , 0x01 , 0x003D );
You should write 0x003E ... see attached patch
--
Med venlig hilsen / Best regards
Jesper Brouer
ComX Networks A/S
Linux Network developer
Cand. Scient Datalog / MSc.
Author of http://adsl-optimizer.dk
LinkedIn: http://www.linkedin.com/in/brouer