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