linux/drivers/net/dsa
Florian Fainelli 8b7c94e347 net: dsa: bcm_sf2: Unhardcode port numbers
While the current driver mostly supports BCM7445 which has a hardcoded
location for its MoCA port on port 7 and port 0 for its internal PHY,
this is not necessarily true for all other chips out there such as
BCM3390 for instance.

Walk the list of ports from Device Tree, get their port number ("reg"
property), and then parse the "phy-mode" property and initialize two
internal variables: moca_port and a bitmask of internal PHYs. Since we
use interrupts for the MoCA port, we introduce two helper functions to
enable/disable interrupts and do this at the appropriate bank (INTRL2_0
or INTRL2_1).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-26 18:23:59 -07:00
..
bcm_sf2.c net: dsa: bcm_sf2: Unhardcode port numbers 2015-10-26 18:23:59 -07:00
bcm_sf2.h net: dsa: bcm_sf2: Unhardcode port numbers 2015-10-26 18:23:59 -07:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Implement FDB operations 2015-10-26 18:14:02 -07:00
Kconfig dsa: mv88e6352/mv88e6xxx: Add support for Marvell 88E6320 and 88E6321 2015-07-09 14:34:23 -07:00
Makefile net: dsa: Add support for Marvell 88E6352 2014-10-30 14:54:10 -04:00
mv88e6xxx.c net: dsa: Make mv88e6xxx use nested mdiobus read/write 2015-10-23 05:57:44 -07:00
mv88e6xxx.h net: dsa: mv88e6xxx: remove debugfs interface 2015-10-22 19:17:45 -07:00
mv88e6060.c net: dsa: Make mv88e6060 use nested mdiobus read/write 2015-10-23 05:57:45 -07:00
mv88e6123_61_65.c net: dsa: mv88e6xxx: remove link polling 2015-10-07 02:58:47 -07:00
mv88e6131.c net: dsa: mv88e6xxx: remove link polling 2015-10-07 02:58:47 -07:00
mv88e6171.c net: dsa: mv88e6xxx: remove port_fdb_getnext 2015-10-22 07:38:43 -07:00
mv88e6352.c net: dsa: mv88e6xxx: remove port_fdb_getnext 2015-10-22 07:38:43 -07:00