mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 17:13:40 +07:00
05bd97fc55
This adds a DSA driver for: Vitesse VSC7385 SparX-G5 5-port Integrated Gigabit Ethernet Switch Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch These switches have a built-in 8051 CPU and can download and execute firmware in this CPU. They can also be configured to use an external CPU handling the switch in a memory-mapped manner by connecting to that external CPU's memory bus. This driver (currently) only takes control of the switch chip over SPI and configures it to route packages around when connected to a CPU port. The chip has embedded PHYs and VLAN support so we model it using DSA as a best fit so we can easily add VLAN support and maybe later also exploit the internal frame header to get more direct control over the switch. The four built-in GPIO lines are exposed using a standard GPIO chip. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
91 lines
2.4 KiB
Plaintext
91 lines
2.4 KiB
Plaintext
menu "Distributed Switch Architecture drivers"
|
|
depends on HAVE_NET_DSA
|
|
|
|
source "drivers/net/dsa/b53/Kconfig"
|
|
|
|
config NET_DSA_BCM_SF2
|
|
tristate "Broadcom Starfighter 2 Ethernet switch support"
|
|
depends on HAS_IOMEM && NET_DSA && OF_MDIO
|
|
select NET_DSA_TAG_BRCM
|
|
select FIXED_PHY
|
|
select BCM7XXX_PHY
|
|
select MDIO_BCM_UNIMAC
|
|
select B53
|
|
---help---
|
|
This enables support for the Broadcom Starfighter 2 Ethernet
|
|
switch chips.
|
|
|
|
config NET_DSA_LOOP
|
|
tristate "DSA mock-up Ethernet switch chip support"
|
|
depends on NET_DSA
|
|
select FIXED_PHY
|
|
---help---
|
|
This enables support for a fake mock-up switch chip which
|
|
exercises the DSA APIs.
|
|
|
|
config NET_DSA_MT7530
|
|
tristate "Mediatek MT7530 Ethernet switch support"
|
|
depends on NET_DSA
|
|
select NET_DSA_TAG_MTK
|
|
---help---
|
|
This enables support for the Mediatek MT7530 Ethernet switch
|
|
chip.
|
|
|
|
config NET_DSA_MV88E6060
|
|
tristate "Marvell 88E6060 ethernet switch chip support"
|
|
depends on NET_DSA && NET_DSA_LEGACY
|
|
select NET_DSA_TAG_TRAILER
|
|
---help---
|
|
This enables support for the Marvell 88E6060 ethernet switch
|
|
chip.
|
|
|
|
source "drivers/net/dsa/microchip/Kconfig"
|
|
|
|
source "drivers/net/dsa/mv88e6xxx/Kconfig"
|
|
|
|
config NET_DSA_QCA8K
|
|
tristate "Qualcomm Atheros QCA8K Ethernet switch family support"
|
|
depends on NET_DSA
|
|
select NET_DSA_TAG_QCA
|
|
select REGMAP
|
|
---help---
|
|
This enables support for the Qualcomm Atheros QCA8K Ethernet
|
|
switch chips.
|
|
|
|
config NET_DSA_SMSC_LAN9303
|
|
tristate
|
|
select NET_DSA_TAG_LAN9303
|
|
---help---
|
|
This enables support for the SMSC/Microchip LAN9303 3 port ethernet
|
|
switch chips.
|
|
|
|
config NET_DSA_SMSC_LAN9303_I2C
|
|
tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in I2C managed mode"
|
|
depends on NET_DSA && I2C
|
|
select NET_DSA_SMSC_LAN9303
|
|
select REGMAP_I2C
|
|
---help---
|
|
Enable access functions if the SMSC/Microchip LAN9303 is configured
|
|
for I2C managed mode.
|
|
|
|
config NET_DSA_SMSC_LAN9303_MDIO
|
|
tristate "SMSC/Microchip LAN9303 3-ports 10/100 ethernet switch in MDIO managed mode"
|
|
depends on NET_DSA
|
|
select NET_DSA_SMSC_LAN9303
|
|
---help---
|
|
Enable access functions if the SMSC/Microchip LAN9303 is configured
|
|
for MDIO managed mode.
|
|
|
|
config NET_DSA_VITESSE_VSC73XX
|
|
tristate "Vitesse VSC7385/7388/7395/7398 support"
|
|
depends on OF && SPI
|
|
depends on NET_DSA
|
|
select FIXED_PHY
|
|
select VITESSE_PHY
|
|
select GPIOLIB
|
|
---help---
|
|
This enables support for the Vitesse VSC7385, VSC7388,
|
|
VSC7395 and VSC7398 SparX integrated ethernet switches.
|
|
|
|
endmenu
|