net: bcmgenet: add support for the GENETv5 hardware
authorDoug Berger <opendmb@gmail.com>
Tue, 14 Mar 2017 00:41:42 +0000 (17:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 04:51:51 +0000 (21:51 -0700)
commit421380856d9c7466a28a1410cce2055acaf84ffd
treeb0e7bf45a4049097a2a1ceb27ef250057cc05dba
parent0ce5aa1d6c97425ae0fd4082066049edcaffe01b
net: bcmgenet: add support for the GENETv5 hardware

This commit adds support for the GENETv5 implementation.

The GENETv5 reports a major version of 6 instead of 5 so compensate
for this when verifying the configuration of the driver.  Also the
EPHY revision is now contained in the MDIO registers of the PHY so
the EPHY revision of 0 in GENET_VER_FMT is expected for GENETv5.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h
drivers/net/ethernet/broadcom/genet/bcmmii.c
drivers/net/phy/mdio-bcm-unimac.c