]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: phy: micrel: add support for KSZ8895 switch in SMI mode
authorPhilippe De Muyter <phdm@macqel.be>
Wed, 19 Feb 2014 16:21:59 +0000 (17:21 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 30 Jan 2015 21:55:00 +0000 (15:55 -0600)
commitb7a5b0843812b7bd4a225951ce11e7d14398395c
tree3d9360609425a427275bec01c58a4ef4b4f993c0
parente9efe16da8e7233e59801e80f2770292a7fe4f77
net: phy: micrel: add support for KSZ8895 switch in SMI mode

This patch adds a phy driver for the Micrel KSZ8895 switch.  As the SoC MAC
is directly connected to the switch MAC the link to the switch is always up.

But the KSZ8895 switch can be hardwired in three configuration modes :
- not configurable with eventually an eeprom-stored configuration
- configurable by the mdio/mdc connection (SMI protocol)
- configurable by a SPI connection.

In not configurable mode, the switch starts automatically, but in the
other modes, it must be started programmatically, by writing 1 in
configuration register 1.
We only support the not configurable and mdio/mdc (aka SMI) modes here.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/micrel.c