1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Mellanox switch drivers configuration
4#
5
6config MLXSW_CORE
7	tristate "Mellanox Technologies Switch ASICs support"
8	select NET_DEVLINK
9	select MLXFW
10	help
11	  This driver supports Mellanox Technologies Switch ASICs family.
12
13	  To compile this driver as a module, choose M here: the
14	  module will be called mlxsw_core.
15
16config MLXSW_CORE_HWMON
17	bool "HWMON support for Mellanox Technologies Switch ASICs"
18	depends on MLXSW_CORE && HWMON
19	depends on !(MLXSW_CORE=y && HWMON=m)
20	default y
21	help
22	  Say Y here if you want to expose HWMON interface on mlxsw devices.
23
24config MLXSW_CORE_THERMAL
25	bool "Thermal zone support for Mellanox Technologies Switch ASICs"
26	depends on MLXSW_CORE && THERMAL
27	default y
28	help
29	 Say Y here if you want to automatically control fans speed according
30	 ambient temperature reported by ASIC.
31
32config MLXSW_PCI
33	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
34	depends on PCI && HAS_IOMEM && MLXSW_CORE
35	default m
36	help
37	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
38
39	  To compile this driver as a module, choose M here: the
40	  module will be called mlxsw_pci.
41
42config MLXSW_I2C
43	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
44	depends on I2C && MLXSW_CORE
45	default m
46	help
47	  This is I2C bus implementation for Mellanox Technologies Switch ASICs.
48
49	  To compile this driver as a module, choose M here: the
50	  module will be called mlxsw_i2c.
51
52config MLXSW_SPECTRUM
53	tristate "Mellanox Technologies Spectrum family support"
54	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
55	depends on PSAMPLE || PSAMPLE=n
56	depends on BRIDGE || BRIDGE=n
57	depends on IPV6 || IPV6=n
58	depends on NET_IPGRE || NET_IPGRE=n
59	depends on IPV6_GRE || IPV6_GRE=n
60	depends on VXLAN || VXLAN=n
61	depends on PTP_1588_CLOCK_OPTIONAL
62	select GENERIC_ALLOCATOR
63	select PARMAN
64	select OBJAGG
65	select NET_PTP_CLASSIFY if PTP_1588_CLOCK
66	default m
67	help
68	  This driver supports Mellanox Technologies
69	  Spectrum/Spectrum-2/Spectrum-3 Ethernet Switch ASICs.
70
71	  To compile this driver as a module, choose M here: the
72	  module will be called mlxsw_spectrum.
73
74config MLXSW_SPECTRUM_DCB
75	bool "Data Center Bridging (DCB) support"
76	depends on MLXSW_SPECTRUM && DCB
77	default y
78	help
79	  Say Y here if you want to use Data Center Bridging (DCB) in the
80	  driver.
81
82config MLXSW_MINIMAL
83	tristate "Mellanox Technologies minimal I2C support"
84	depends on MLXSW_CORE && MLXSW_I2C
85	default m
86	help
87	  This driver supports I2C access for Mellanox Technologies Switch
88	  ASICs.
89
90	  To compile this driver as a module, choose M here: the
91	  module will be called mlxsw_minimal.
92