xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision bd02fd76d1909637c95e8ef13e7fd1e748af910d)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
293c1edb2SJiri Pirko#
393c1edb2SJiri Pirko# Mellanox switch drivers configuration
493c1edb2SJiri Pirko#
593c1edb2SJiri Pirko
693c1edb2SJiri Pirkoconfig MLXSW_CORE
793c1edb2SJiri Pirko	tristate "Mellanox Technologies Switch ASICs support"
8f6b19b35SJiri Pirko	select NET_DEVLINK
9fb738b99SIdo Schimmel	select MLXFW
10*bd02fd76SJiri Pirko	select AUXILIARY_BUS
11a7f7f624SMasahiro Yamada	help
1293c1edb2SJiri Pirko	  This driver supports Mellanox Technologies Switch ASICs family.
1393c1edb2SJiri Pirko
1493c1edb2SJiri Pirko	  To compile this driver as a module, choose M here: the
1593c1edb2SJiri Pirko	  module will be called mlxsw_core.
16eda6500aSJiri Pirko
1789309da3SJiri Pirkoconfig MLXSW_CORE_HWMON
1889309da3SJiri Pirko	bool "HWMON support for Mellanox Technologies Switch ASICs"
1989309da3SJiri Pirko	depends on MLXSW_CORE && HWMON
2089309da3SJiri Pirko	depends on !(MLXSW_CORE=y && HWMON=m)
2189309da3SJiri Pirko	default y
22a7f7f624SMasahiro Yamada	help
2389309da3SJiri Pirko	  Say Y here if you want to expose HWMON interface on mlxsw devices.
2489309da3SJiri Pirko
25a50c1e35SIvan Veceraconfig MLXSW_CORE_THERMAL
26a50c1e35SIvan Vecera	bool "Thermal zone support for Mellanox Technologies Switch ASICs"
27a50c1e35SIvan Vecera	depends on MLXSW_CORE && THERMAL
28a50c1e35SIvan Vecera	default y
29a7f7f624SMasahiro Yamada	help
30a50c1e35SIvan Vecera	 Say Y here if you want to automatically control fans speed according
31a50c1e35SIvan Vecera	 ambient temperature reported by ASIC.
32a50c1e35SIvan Vecera
33eda6500aSJiri Pirkoconfig MLXSW_PCI
34eda6500aSJiri Pirko	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
35e020797bSGeert Uytterhoeven	depends on PCI && HAS_IOMEM && MLXSW_CORE
36eda6500aSJiri Pirko	default m
37a7f7f624SMasahiro Yamada	help
38eda6500aSJiri Pirko	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
39eda6500aSJiri Pirko
40eda6500aSJiri Pirko	  To compile this driver as a module, choose M here: the
41eda6500aSJiri Pirko	  module will be called mlxsw_pci.
4231557f0fSJiri Pirko
436882b0aeSVadim Pasternakconfig MLXSW_I2C
446882b0aeSVadim Pasternak	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
456882b0aeSVadim Pasternak	depends on I2C && MLXSW_CORE
466882b0aeSVadim Pasternak	default m
47a7f7f624SMasahiro Yamada	help
486882b0aeSVadim Pasternak	  This is I2C bus implementation for Mellanox Technologies Switch ASICs.
496882b0aeSVadim Pasternak
506882b0aeSVadim Pasternak	  To compile this driver as a module, choose M here: the
516882b0aeSVadim Pasternak	  module will be called mlxsw_i2c.
526882b0aeSVadim Pasternak
5356ade8feSJiri Pirkoconfig MLXSW_SPECTRUM
54da382875SJiri Pirko	tristate "Mellanox Technologies Spectrum family support"
551d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
568d1fb01dSArnd Bergmann	depends on PSAMPLE || PSAMPLE=n
570266f797SIdo Schimmel	depends on BRIDGE || BRIDGE=n
58428b851fSIdo Schimmel	depends on IPV6 || IPV6=n
5999db5229SPetr Machata	depends on NET_IPGRE || NET_IPGRE=n
6099db5229SPetr Machata	depends on IPV6_GRE || IPV6_GRE=n
61143a8e03SIdo Schimmel	depends on VXLAN || VXLAN=n
62e5f31552SArnd Bergmann	depends on PTP_1588_CLOCK_OPTIONAL
63f465261aSIdo Schimmel	select GENERIC_ALLOCATOR
6422a67766SJiri Pirko	select PARMAN
65c71abd7dSJiri Pirko	select OBJAGG
66d92e4e6eSPetr Machata	select NET_PTP_CLASSIFY if PTP_1588_CLOCK
6756ade8feSJiri Pirko	default m
68a7f7f624SMasahiro Yamada	help
69da382875SJiri Pirko	  This driver supports Mellanox Technologies
7047354021SAmit Cohen	  Spectrum/Spectrum-2/Spectrum-3/Spectrum-4 Ethernet 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
79a7f7f624SMasahiro Yamada	help
80f00817dfSIdo Schimmel	  Say Y here if you want to use Data Center Bridging (DCB) in the
81f00817dfSIdo Schimmel	  driver.
82d556e929SVadim Pasternak
83d556e929SVadim Pasternakconfig MLXSW_MINIMAL
84d556e929SVadim Pasternak	tristate "Mellanox Technologies minimal I2C support"
85d556e929SVadim Pasternak	depends on MLXSW_CORE && MLXSW_I2C
86d556e929SVadim Pasternak	default m
87a7f7f624SMasahiro Yamada	help
88d556e929SVadim Pasternak	  This driver supports I2C access for Mellanox Technologies Switch
89d556e929SVadim Pasternak	  ASICs.
90d556e929SVadim Pasternak
91d556e929SVadim Pasternak	  To compile this driver as a module, choose M here: the
92d556e929SVadim Pasternak	  module will be called mlxsw_minimal.
93