xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision a3a02a52bcfcbcc4a637d4b68bf1bc391c9fad02)
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	select PAGE_POOL
37	default m
38	help
39	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
40
41	  To compile this driver as a module, choose M here: the
42	  module will be called mlxsw_pci.
43
44config MLXSW_I2C
45	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
46	depends on I2C && MLXSW_CORE
47	default m
48	help
49	  This is I2C bus implementation for Mellanox Technologies Switch ASICs.
50
51	  To compile this driver as a module, choose M here: the
52	  module will be called mlxsw_i2c.
53
54config MLXSW_SPECTRUM
55	tristate "Mellanox Technologies Spectrum family support"
56	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
57	depends on PSAMPLE || PSAMPLE=n
58	depends on BRIDGE || BRIDGE=n
59	depends on IPV6 || IPV6=n
60	depends on NET_IPGRE || NET_IPGRE=n
61	depends on IPV6_GRE || IPV6_GRE=n
62	depends on VXLAN || VXLAN=n
63	depends on PTP_1588_CLOCK_OPTIONAL
64	select GENERIC_ALLOCATOR
65	select PARMAN
66	select OBJAGG
67	select NET_PTP_CLASSIFY if PTP_1588_CLOCK
68	default m
69	help
70	  This driver supports Mellanox Technologies
71	  Spectrum/Spectrum-2/Spectrum-3/Spectrum-4 Ethernet Switch ASICs.
72
73	  To compile this driver as a module, choose M here: the
74	  module will be called mlxsw_spectrum.
75
76config MLXSW_SPECTRUM_DCB
77	bool "Data Center Bridging (DCB) support"
78	depends on MLXSW_SPECTRUM && DCB
79	default y
80	help
81	  Say Y here if you want to use Data Center Bridging (DCB) in the
82	  driver.
83
84config MLXSW_MINIMAL
85	tristate "Mellanox Technologies minimal I2C support"
86	depends on MLXSW_CORE && MLXSW_I2C
87	default m
88	help
89	  This driver supports I2C access for Mellanox Technologies Switch
90	  ASICs.
91
92	  To compile this driver as a module, choose M here: the
93	  module will be called mlxsw_minimal.
94