xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision 67ea7ef19bddaf75c842f56181deba89e4ea62a2)
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
22a50c1e35SIvan Veceraconfig MLXSW_CORE_THERMAL
23a50c1e35SIvan Vecera	bool "Thermal zone support for Mellanox Technologies Switch ASICs"
24a50c1e35SIvan Vecera	depends on MLXSW_CORE && THERMAL
25a50c1e35SIvan Vecera	depends on !(MLXSW_CORE=y && THERMAL=m)
26a50c1e35SIvan Vecera	default y
27a50c1e35SIvan Vecera	---help---
28a50c1e35SIvan Vecera	 Say Y here if you want to automatically control fans speed according
29a50c1e35SIvan Vecera	 ambient temperature reported by ASIC.
30a50c1e35SIvan Vecera
31eda6500aSJiri Pirkoconfig MLXSW_PCI
32eda6500aSJiri Pirko	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
3374ed207eSJiri Pirko	depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE
34eda6500aSJiri Pirko	default m
35eda6500aSJiri Pirko	---help---
36eda6500aSJiri Pirko	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
37eda6500aSJiri Pirko
38eda6500aSJiri Pirko	  To compile this driver as a module, choose M here: the
39eda6500aSJiri Pirko	  module will be called mlxsw_pci.
4031557f0fSJiri Pirko
416882b0aeSVadim Pasternakconfig MLXSW_I2C
426882b0aeSVadim Pasternak	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
436882b0aeSVadim Pasternak	depends on I2C && MLXSW_CORE
446882b0aeSVadim Pasternak	default m
456882b0aeSVadim Pasternak	---help---
466882b0aeSVadim Pasternak	  This is I2C bus implementation for Mellanox Technologies Switch ASICs.
476882b0aeSVadim Pasternak
486882b0aeSVadim Pasternak	  To compile this driver as a module, choose M here: the
496882b0aeSVadim Pasternak	  module will be called mlxsw_i2c.
506882b0aeSVadim Pasternak
51d1ba5263SElad Razconfig MLXSW_SWITCHIB
52d1ba5263SElad Raz	tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
53*67ea7ef1SArnd Bergmann	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
54d1ba5263SElad Raz	default m
55d1ba5263SElad Raz	---help---
56d1ba5263SElad Raz	  This driver supports Mellanox Technologies SwitchIB and SwitchIB-2
57d1ba5263SElad Raz	  Infiniband Switch ASICs.
58d1ba5263SElad Raz
59d1ba5263SElad Raz	  To compile this driver as a module, choose M here: the
60d1ba5263SElad Raz	  module will be called mlxsw_switchib.
61d1ba5263SElad Raz
6231557f0fSJiri Pirkoconfig MLXSW_SWITCHX2
6331557f0fSJiri Pirko	tristate "Mellanox Technologies SwitchX-2 support"
641d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
6531557f0fSJiri Pirko	default m
6631557f0fSJiri Pirko	---help---
6731557f0fSJiri Pirko	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
6831557f0fSJiri Pirko	  Switch ASICs.
6931557f0fSJiri Pirko
7031557f0fSJiri Pirko	  To compile this driver as a module, choose M here: the
7131557f0fSJiri Pirko	  module will be called mlxsw_switchx2.
7256ade8feSJiri Pirko
7356ade8feSJiri Pirkoconfig MLXSW_SPECTRUM
7456ade8feSJiri Pirko	tristate "Mellanox Technologies Spectrum support"
751d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
7656ade8feSJiri Pirko	default m
7756ade8feSJiri Pirko	---help---
7856ade8feSJiri Pirko	  This driver supports Mellanox Technologies Spectrum Ethernet
7956ade8feSJiri Pirko	  Switch ASICs.
8056ade8feSJiri Pirko
8156ade8feSJiri Pirko	  To compile this driver as a module, choose M here: the
8256ade8feSJiri Pirko	  module will be called mlxsw_spectrum.
83f00817dfSIdo Schimmel
84f00817dfSIdo Schimmelconfig MLXSW_SPECTRUM_DCB
85f00817dfSIdo Schimmel	bool "Data Center Bridging (DCB) support"
86f00817dfSIdo Schimmel	depends on MLXSW_SPECTRUM && DCB
87f00817dfSIdo Schimmel	default y
88f00817dfSIdo Schimmel	---help---
89f00817dfSIdo Schimmel	  Say Y here if you want to use Data Center Bridging (DCB) in the
90f00817dfSIdo Schimmel	  driver.
91d556e929SVadim Pasternak
92d556e929SVadim Pasternakconfig MLXSW_MINIMAL
93d556e929SVadim Pasternak	tristate "Mellanox Technologies minimal I2C support"
94d556e929SVadim Pasternak	depends on MLXSW_CORE && MLXSW_I2C
95d556e929SVadim Pasternak	default m
96d556e929SVadim Pasternak	---help---
97d556e929SVadim Pasternak	  This driver supports I2C access for Mellanox Technologies Switch
98d556e929SVadim Pasternak	  ASICs.
99d556e929SVadim Pasternak
100d556e929SVadim Pasternak	  To compile this driver as a module, choose M here: the
101d556e929SVadim Pasternak	  module will be called mlxsw_minimal.
102