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