xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision 3d1cbe839ac3aa7b23a274b691092c90f9bf1b8e)
193c1edb2SJiri Pirko#
293c1edb2SJiri Pirko# Mellanox switch drivers configuration
393c1edb2SJiri Pirko#
493c1edb2SJiri Pirko
593c1edb2SJiri Pirkoconfig MLXSW_CORE
693c1edb2SJiri Pirko	tristate "Mellanox Technologies Switch ASICs support"
7*3d1cbe83SArnd Bergmann	depends on MAY_USE_DEVLINK
893c1edb2SJiri Pirko	---help---
993c1edb2SJiri Pirko	  This driver supports Mellanox Technologies Switch ASICs family.
1093c1edb2SJiri Pirko
1193c1edb2SJiri Pirko	  To compile this driver as a module, choose M here: the
1293c1edb2SJiri Pirko	  module will be called mlxsw_core.
13eda6500aSJiri Pirko
1489309da3SJiri Pirkoconfig MLXSW_CORE_HWMON
1589309da3SJiri Pirko	bool "HWMON support for Mellanox Technologies Switch ASICs"
1689309da3SJiri Pirko	depends on MLXSW_CORE && HWMON
1789309da3SJiri Pirko	depends on !(MLXSW_CORE=y && HWMON=m)
1889309da3SJiri Pirko	default y
1989309da3SJiri Pirko	---help---
2089309da3SJiri Pirko	  Say Y here if you want to expose HWMON interface on mlxsw devices.
2189309da3SJiri Pirko
22eda6500aSJiri Pirkoconfig MLXSW_PCI
23eda6500aSJiri Pirko	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
2474ed207eSJiri Pirko	depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE
25eda6500aSJiri Pirko	default m
26eda6500aSJiri Pirko	---help---
27eda6500aSJiri Pirko	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
28eda6500aSJiri Pirko
29eda6500aSJiri Pirko	  To compile this driver as a module, choose M here: the
30eda6500aSJiri Pirko	  module will be called mlxsw_pci.
3131557f0fSJiri Pirko
3231557f0fSJiri Pirkoconfig MLXSW_SWITCHX2
3331557f0fSJiri Pirko	tristate "Mellanox Technologies SwitchX-2 support"
3431557f0fSJiri Pirko	depends on MLXSW_CORE && NET_SWITCHDEV
3531557f0fSJiri Pirko	default m
3631557f0fSJiri Pirko	---help---
3731557f0fSJiri Pirko	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
3831557f0fSJiri Pirko	  Switch ASICs.
3931557f0fSJiri Pirko
4031557f0fSJiri Pirko	  To compile this driver as a module, choose M here: the
4131557f0fSJiri Pirko	  module will be called mlxsw_switchx2.
4256ade8feSJiri Pirko
4356ade8feSJiri Pirkoconfig MLXSW_SPECTRUM
4456ade8feSJiri Pirko	tristate "Mellanox Technologies Spectrum support"
4554a73201SIdo Schimmel	depends on MLXSW_CORE && NET_SWITCHDEV && VLAN_8021Q
4656ade8feSJiri Pirko	default m
4756ade8feSJiri Pirko	---help---
4856ade8feSJiri Pirko	  This driver supports Mellanox Technologies Spectrum Ethernet
4956ade8feSJiri Pirko	  Switch ASICs.
5056ade8feSJiri Pirko
5156ade8feSJiri Pirko	  To compile this driver as a module, choose M here: the
5256ade8feSJiri Pirko	  module will be called mlxsw_spectrum.
53