Commit 3cfa11ba authored by Steen Hegelund's avatar Steen Hegelund Committed by David S. Miller
Browse files

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: default avatarSteen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: default avatarBjarni Jonasson <bjarni.jonasson@microchip.com>
Signed-off-by: default avatarLars Povlsen <lars.povlsen@microchip.com>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f8c63088
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -54,4 +54,6 @@ config LAN743X
	  To compile this driver as a module, choose M here. The module will be
	  called lan743x.

source "drivers/net/ethernet/microchip/sparx5/Kconfig"

endif # NET_VENDOR_MICROCHIP
+2 −0
Original line number Diff line number Diff line
@@ -8,3 +8,5 @@ obj-$(CONFIG_ENCX24J600) += encx24j600.o encx24j600-regmap.o
obj-$(CONFIG_LAN743X) += lan743x.o

lan743x-objs := lan743x_main.o lan743x_ethtool.o lan743x_ptp.o

obj-$(CONFIG_SPARX5_SWITCH) += sparx5/
+9 −0
Original line number Diff line number Diff line
config SPARX5_SWITCH
	tristate "Sparx5 switch driver"
	depends on NET_SWITCHDEV
	depends on HAS_IOMEM
	select PHYLINK
	select PHY_SPARX5_SERDES
	select RESET_CONTROLLER
	help
	  This driver supports the Sparx5 network switch device.
+8 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for the Microchip Sparx5 network device drivers.
#

obj-$(CONFIG_SPARX5_SWITCH) += sparx5-switch.o

sparx5-switch-objs  := sparx5_main.o
+744 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading