0001 # SPDX-License-Identifier: GPL-2.0-only
0002 #
0003 # Mellanox switch drivers configuration
0004 #
0005
0006 config MLXSW_CORE
0007 tristate "Mellanox Technologies Switch ASICs support"
0008 select NET_DEVLINK
0009 select MLXFW
0010 select AUXILIARY_BUS
0011 help
0012 This driver supports Mellanox Technologies Switch ASICs family.
0013
0014 To compile this driver as a module, choose M here: the
0015 module will be called mlxsw_core.
0016
0017 config MLXSW_CORE_HWMON
0018 bool "HWMON support for Mellanox Technologies Switch ASICs"
0019 depends on MLXSW_CORE && HWMON
0020 depends on !(MLXSW_CORE=y && HWMON=m)
0021 default y
0022 help
0023 Say Y here if you want to expose HWMON interface on mlxsw devices.
0024
0025 config MLXSW_CORE_THERMAL
0026 bool "Thermal zone support for Mellanox Technologies Switch ASICs"
0027 depends on MLXSW_CORE && THERMAL
0028 default y
0029 help
0030 Say Y here if you want to automatically control fans speed according
0031 ambient temperature reported by ASIC.
0032
0033 config MLXSW_PCI
0034 tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
0035 depends on PCI && HAS_IOMEM && MLXSW_CORE
0036 default m
0037 help
0038 This is PCI bus implementation for Mellanox Technologies Switch ASICs.
0039
0040 To compile this driver as a module, choose M here: the
0041 module will be called mlxsw_pci.
0042
0043 config MLXSW_I2C
0044 tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
0045 depends on I2C && MLXSW_CORE
0046 default m
0047 help
0048 This is I2C bus implementation for Mellanox Technologies Switch ASICs.
0049
0050 To compile this driver as a module, choose M here: the
0051 module will be called mlxsw_i2c.
0052
0053 config MLXSW_SPECTRUM
0054 tristate "Mellanox Technologies Spectrum family support"
0055 depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
0056 depends on PSAMPLE || PSAMPLE=n
0057 depends on BRIDGE || BRIDGE=n
0058 depends on IPV6 || IPV6=n
0059 depends on NET_IPGRE || NET_IPGRE=n
0060 depends on IPV6_GRE || IPV6_GRE=n
0061 depends on VXLAN || VXLAN=n
0062 depends on PTP_1588_CLOCK_OPTIONAL
0063 select GENERIC_ALLOCATOR
0064 select PARMAN
0065 select OBJAGG
0066 select NET_PTP_CLASSIFY if PTP_1588_CLOCK
0067 default m
0068 help
0069 This driver supports Mellanox Technologies
0070 Spectrum/Spectrum-2/Spectrum-3/Spectrum-4 Ethernet Switch ASICs.
0071
0072 To compile this driver as a module, choose M here: the
0073 module will be called mlxsw_spectrum.
0074
0075 config MLXSW_SPECTRUM_DCB
0076 bool "Data Center Bridging (DCB) support"
0077 depends on MLXSW_SPECTRUM && DCB
0078 default y
0079 help
0080 Say Y here if you want to use Data Center Bridging (DCB) in the
0081 driver.
0082
0083 config MLXSW_MINIMAL
0084 tristate "Mellanox Technologies minimal I2C support"
0085 depends on MLXSW_CORE && MLXSW_I2C
0086 default m
0087 help
0088 This driver supports I2C access for Mellanox Technologies Switch
0089 ASICs.
0090
0091 To compile this driver as a module, choose M here: the
0092 module will be called mlxsw_minimal.