[U-Boot] Micrel KS8995MA 5 port managed switch initialise

Chris Alfred (Internode) chrisalfred at internode.on.net
Wed Oct 21 13:43:13 CEST 2009


We have the MPC5200 MAC connected to the Micrel KS8995MA MII-SW port.
The configuration pins of the 8995 are set to:
  SPI slave
    PS0=0
    PS1=1
  PHY mode MII
    SCONF0=1
    SCONF1=0
    SCONF2=0

The MII and SPI ports are working, checked with the uboot mii and sspi 
commands.

However, ethernet transmit and receive do not appear to work. Looks 
like the switch is not configured correctly and does not pass any 
data.

The manual initialisation sequence we are using is:
sspi 0 24 020100
sspi 0 24 02024c
sspi 0 24 020305
sspi 0 24 0204F1
sspi 0 24 020620
sspi 0 24 021061
sspi 0 24 022061
sspi 0 24 023061
sspi 0 24 024061
sspi 0 24 025061
sspi 0 24 025B18
sspi 0 24 0260FF
sspi 0 24 0261FF
sspi 0 24 0262FF
sspi 0 24 0263FF
sspi 0 24 0264FF
sspi 0 24 0265FF
sspi 0 24 0266FF
sspi 0 24 0267FE
sspi 0 24 020101

This was taken from the example:
https://dev.openwrt.org/browser/trunk/package/spi-ks8995/src/spi_ks8995.c

Does anyone have an example that works?

Regards to all uboot-ers,
Chris



More information about the U-Boot mailing list