Commit 42f27253 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

net: DSA: Marvell mv88e6171 switch driver

This is the Marvell driver with some cleanups by Claudio Leite
and myself.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Cc: Claudio Leite <leitec@staticky.com>
Signed-off-by: default avatarClaudio Leite <leitec@staticky.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 09436296
...@@ -36,6 +36,15 @@ config NET_DSA_MV88E6123_61_65 ...@@ -36,6 +36,15 @@ config NET_DSA_MV88E6123_61_65
This enables support for the Marvell 88E6123/6161/6165 This enables support for the Marvell 88E6123/6161/6165
ethernet switch chips. ethernet switch chips.
config NET_DSA_MV88E6171
tristate "Marvell 88E6171 ethernet switch chip support"
select NET_DSA
select NET_DSA_MV88E6XXX
select NET_DSA_TAG_EDSA
---help---
This enables support for the Marvell 88E6171 ethernet switch
chip.
config NET_DSA_BCM_SF2 config NET_DSA_BCM_SF2
tristate "Broadcom Starfighter 2 Ethernet switch support" tristate "Broadcom Starfighter 2 Ethernet switch support"
select NET_DSA select NET_DSA
......
...@@ -7,4 +7,7 @@ endif ...@@ -7,4 +7,7 @@ endif
ifdef CONFIG_NET_DSA_MV88E6131 ifdef CONFIG_NET_DSA_MV88E6131
mv88e6xxx_drv-y += mv88e6131.o mv88e6xxx_drv-y += mv88e6131.o
endif endif
ifdef CONFIG_NET_DSA_MV88E6171
mv88e6xxx_drv-y += mv88e6171.o
endif
obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm_sf2.o obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm_sf2.o
This diff is collapsed.
...@@ -500,6 +500,9 @@ static int __init mv88e6xxx_init(void) ...@@ -500,6 +500,9 @@ static int __init mv88e6xxx_init(void)
#endif #endif
#if IS_ENABLED(CONFIG_NET_DSA_MV88E6123_61_65) #if IS_ENABLED(CONFIG_NET_DSA_MV88E6123_61_65)
register_switch_driver(&mv88e6123_61_65_switch_driver); register_switch_driver(&mv88e6123_61_65_switch_driver);
#endif
#if IS_ENABLED(CONFIG_NET_DSA_MV88E6171)
register_switch_driver(&mv88e6171_switch_driver);
#endif #endif
return 0; return 0;
} }
...@@ -507,6 +510,9 @@ module_init(mv88e6xxx_init); ...@@ -507,6 +510,9 @@ module_init(mv88e6xxx_init);
static void __exit mv88e6xxx_cleanup(void) static void __exit mv88e6xxx_cleanup(void)
{ {
#if IS_ENABLED(CONFIG_NET_DSA_MV88E6171)
unregister_switch_driver(&mv88e6171_switch_driver);
#endif
#if IS_ENABLED(CONFIG_NET_DSA_MV88E6123_61_65) #if IS_ENABLED(CONFIG_NET_DSA_MV88E6123_61_65)
unregister_switch_driver(&mv88e6123_61_65_switch_driver); unregister_switch_driver(&mv88e6123_61_65_switch_driver);
#endif #endif
......
...@@ -70,6 +70,7 @@ void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, ...@@ -70,6 +70,7 @@ void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds,
extern struct dsa_switch_driver mv88e6131_switch_driver; extern struct dsa_switch_driver mv88e6131_switch_driver;
extern struct dsa_switch_driver mv88e6123_61_65_switch_driver; extern struct dsa_switch_driver mv88e6123_61_65_switch_driver;
extern struct dsa_switch_driver mv88e6171_switch_driver;
#define REG_READ(addr, reg) \ #define REG_READ(addr, reg) \
({ \ ({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment