[U-Boot] [PATCH v2 0/2] net: phy: mv88e61xx: Revise as a PHY driver

Kevin Smith kevin.smith at elecsyscorp.com
Mon Dec 21 22:45:32 CET 2015


The previous version of this driver implemented a shell command to manually
comfigure the switch.  It did not integrate with the PHY infrastructure to
allow a MAC to use it as its PHY.  This is a complete rewrite to allow this
switch to function as a driver.  Since none of the original driver remains, the
old driver is first removed and the new PHY driver is added.

This version configures the switch to have a CPU connected over an MII
interface.  It will enable PHY interfaces based on the MV88E61XX_PHY_PORTS
macro.  The switch is configured to allow PHY ports to only communicate to the
CPU.  This allows the switch to be used as a basic PHY on any/all ports.

This was developed on a board with an mv88e6176 connected over SGMII.  It is
intended to work with other configurations, but these could not be tested.  Any
testing on other configurations or with other mv88e61xx chips is appreciated.

Signed-off-by: Kevin Smith <kevin.smith at elecsyscorp.com>
Cc: Prafulla Wadaskar <prafulla at marvell.com>
Cc: Joe Hershberger <joe.hershberger at ni.com>
Cc: Stefan Roese <sr at denx.de>
Cc: Marek Vasut <marex at denx.de>

Kevin Smith (2):
  net: Remove unused mv88e61xx switch driver
  net: phy: Add PHY driver for mv88e61xx switches

 drivers/net/phy/mv88e61xx.c | 959 +++++++++++++++++++++++++-------------------
 drivers/net/phy/mv88e61xx.h |  61 ---
 drivers/net/phy/phy.c       |   3 +
 include/netdev.h            |  58 ---
 include/phy.h               |   1 +
 5 files changed, 547 insertions(+), 535 deletions(-)
 delete mode 100644 drivers/net/phy/mv88e61xx.h

-- 
2.4.6


More information about the U-Boot mailing list