Skip to content

Commit 3cfa11b

Browse files
steen-hegelund-mchpdavem330
authored andcommitted
net: sparx5: add the basic sparx5 driver
This adds the Sparx5 basic SwitchDev driver framework with IO range mapping, switch device detection and core clock configuration. Support for ports, phylink, netdev, mactable etc. are in the following patches. Signed-off-by: Steen Hegelund <[email protected]> Signed-off-by: Bjarni Jonasson <[email protected]> Signed-off-by: Lars Povlsen <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f8c6308 commit 3cfa11b

File tree

7 files changed

+5680
-0
lines changed

7 files changed

+5680
-0
lines changed

drivers/net/ethernet/microchip/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,6 @@ config LAN743X
5454
To compile this driver as a module, choose M here. The module will be
5555
called lan743x.
5656

57+
source "drivers/net/ethernet/microchip/sparx5/Kconfig"
58+
5759
endif # NET_VENDOR_MICROCHIP

drivers/net/ethernet/microchip/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ obj-$(CONFIG_ENCX24J600) += encx24j600.o encx24j600-regmap.o
88
obj-$(CONFIG_LAN743X) += lan743x.o
99

1010
lan743x-objs := lan743x_main.o lan743x_ethtool.o lan743x_ptp.o
11+
12+
obj-$(CONFIG_SPARX5_SWITCH) += sparx5/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config SPARX5_SWITCH
2+
tristate "Sparx5 switch driver"
3+
depends on NET_SWITCHDEV
4+
depends on HAS_IOMEM
5+
select PHYLINK
6+
select PHY_SPARX5_SERDES
7+
select RESET_CONTROLLER
8+
help
9+
This driver supports the Sparx5 network switch device.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
3+
# Makefile for the Microchip Sparx5 network device drivers.
4+
#
5+
6+
obj-$(CONFIG_SPARX5_SWITCH) += sparx5-switch.o
7+
8+
sparx5-switch-objs := sparx5_main.o

0 commit comments

Comments
 (0)