net: dsa: add Broadcom SF2 switch driver
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 28 Aug 2014 00:04:56 +0000 (17:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Aug 2014 05:59:40 +0000 (22:59 -0700)
commit246d7f773c13cac3e3ab1609fd4ffee520242c63
tree4c29061faa719384ca97859a168b0c3d8d346948
parent5037d532b83d7325a2743dffe82882a64697a8e8
net: dsa: add Broadcom SF2 switch driver

Add support for the Broadcom Starfigther 2 switch chip using a DSA
driver. This switch driver supports the following features:

- configuration of the external switch port interface: MII, RevMII,
  RGMII and RGMII_NO_ID are supported
- support for the per-port MIB counters
- support for link interrupts for special ports (e.g: MoCA)
- powering up/down of switch memories to conserve power when ports are
  unused

Finally, update the compatible property for the DSA core code to match
our switch top-level compatible node.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Kconfig
drivers/net/dsa/Makefile
drivers/net/dsa/bcm_sf2.c [new file with mode: 0644]
drivers/net/dsa/bcm_sf2.h [new file with mode: 0644]
drivers/net/dsa/bcm_sf2_regs.h [new file with mode: 0644]
net/dsa/dsa.c