Kconfig 2.7 KB

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