summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/Kconfig
diff options
context:
space:
mode:
authorJiri Pirko2015-11-27 13:45:57 +0100
committerDavid S. Miller2015-11-30 21:05:40 +0100
commit89309da39f55922f6ca18ecd09a158c319c69d55 (patch)
tree4fb282164ff6065aed09bb4094b94cbd264f19bc /drivers/net/ethernet/mellanox/mlxsw/Kconfig
parentmlxsw: reg: Add definition of temperature management registers (diff)
downloadkernel-qcow2-linux-89309da39f55922f6ca18ecd09a158c319c69d55.tar.gz
kernel-qcow2-linux-89309da39f55922f6ca18ecd09a158c319c69d55.tar.xz
kernel-qcow2-linux-89309da39f55922f6ca18ecd09a158c319c69d55.zip
mlxsw: core: Implement temperature hwmon interface
ASIC provides access to temperature sensors. Implement their exposure to userspace using hwmon. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/Kconfig')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig
index e36e12219c9b..ec8caf8fedc6 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig
@@ -10,6 +10,14 @@ config MLXSW_CORE
To compile this driver as a module, choose M here: the
module will be called mlxsw_core.
+config MLXSW_CORE_HWMON
+ bool "HWMON support for Mellanox Technologies Switch ASICs"
+ depends on MLXSW_CORE && HWMON
+ depends on !(MLXSW_CORE=y && HWMON=m)
+ default y
+ ---help---
+ Say Y here if you want to expose HWMON interface on mlxsw devices.
+
config MLXSW_PCI
tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE