xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision d556e929164fdc6c94848374fc98c40852f97adb)
193c1edb2SJiri Pirko#
293c1edb2SJiri Pirko# Mellanox switch drivers configuration
393c1edb2SJiri Pirko#
493c1edb2SJiri Pirko
593c1edb2SJiri Pirkoconfig MLXSW_CORE
693c1edb2SJiri Pirko	tristate "Mellanox Technologies Switch ASICs support"
73d1cbe83SArnd 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
326882b0aeSVadim Pasternakconfig MLXSW_I2C
336882b0aeSVadim Pasternak	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
346882b0aeSVadim Pasternak	depends on I2C && MLXSW_CORE
356882b0aeSVadim Pasternak	default m
366882b0aeSVadim Pasternak	---help---
376882b0aeSVadim Pasternak	  This is I2C bus implementation for Mellanox Technologies Switch ASICs.
386882b0aeSVadim Pasternak
396882b0aeSVadim Pasternak	  To compile this driver as a module, choose M here: the
406882b0aeSVadim Pasternak	  module will be called mlxsw_i2c.
416882b0aeSVadim Pasternak
42d1ba5263SElad Razconfig MLXSW_SWITCHIB
43d1ba5263SElad Raz	tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
44d1ba5263SElad Raz	depends on MLXSW_CORE && NET_SWITCHDEV
45d1ba5263SElad Raz	default m
46d1ba5263SElad Raz	---help---
47d1ba5263SElad Raz	  This driver supports Mellanox Technologies SwitchIB and SwitchIB-2
48d1ba5263SElad Raz	  Infiniband Switch ASICs.
49d1ba5263SElad Raz
50d1ba5263SElad Raz	  To compile this driver as a module, choose M here: the
51d1ba5263SElad Raz	  module will be called mlxsw_switchib.
52d1ba5263SElad Raz
5331557f0fSJiri Pirkoconfig MLXSW_SWITCHX2
5431557f0fSJiri Pirko	tristate "Mellanox Technologies SwitchX-2 support"
551d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
5631557f0fSJiri Pirko	default m
5731557f0fSJiri Pirko	---help---
5831557f0fSJiri Pirko	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
5931557f0fSJiri Pirko	  Switch ASICs.
6031557f0fSJiri Pirko
6131557f0fSJiri Pirko	  To compile this driver as a module, choose M here: the
6231557f0fSJiri Pirko	  module will be called mlxsw_switchx2.
6356ade8feSJiri Pirko
6456ade8feSJiri Pirkoconfig MLXSW_SPECTRUM
6556ade8feSJiri Pirko	tristate "Mellanox Technologies Spectrum support"
661d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
6756ade8feSJiri Pirko	default m
6856ade8feSJiri Pirko	---help---
6956ade8feSJiri Pirko	  This driver supports Mellanox Technologies Spectrum Ethernet
7056ade8feSJiri Pirko	  Switch ASICs.
7156ade8feSJiri Pirko
7256ade8feSJiri Pirko	  To compile this driver as a module, choose M here: the
7356ade8feSJiri Pirko	  module will be called mlxsw_spectrum.
74f00817dfSIdo Schimmel
75f00817dfSIdo Schimmelconfig MLXSW_SPECTRUM_DCB
76f00817dfSIdo Schimmel	bool "Data Center Bridging (DCB) support"
77f00817dfSIdo Schimmel	depends on MLXSW_SPECTRUM && DCB
78f00817dfSIdo Schimmel	default y
79f00817dfSIdo Schimmel	---help---
80f00817dfSIdo Schimmel	  Say Y here if you want to use Data Center Bridging (DCB) in the
81f00817dfSIdo Schimmel	  driver.
82*d556e929SVadim Pasternak
83*d556e929SVadim Pasternakconfig MLXSW_MINIMAL
84*d556e929SVadim Pasternak	tristate "Mellanox Technologies minimal I2C support"
85*d556e929SVadim Pasternak	depends on MLXSW_CORE && MLXSW_I2C
86*d556e929SVadim Pasternak	default m
87*d556e929SVadim Pasternak	---help---
88*d556e929SVadim Pasternak	  This driver supports I2C access for Mellanox Technologies Switch
89*d556e929SVadim Pasternak	  ASICs.
90*d556e929SVadim Pasternak
91*d556e929SVadim Pasternak	  To compile this driver as a module, choose M here: the
92*d556e929SVadim Pasternak	  module will be called mlxsw_minimal.
93