diff options
author | Ivan Vecera <cera@cera.cz> | 2016-11-22 11:24:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-22 10:04:19 -0500 |
commit | a50c1e35650b929500bd89be61c89d95a267ce56 (patch) | |
tree | 31ed2e98fb076db71e812bd915a731fa7643a39f /drivers/net/ethernet/mellanox/mlxsw/Makefile | |
parent | 55c63aaa6952c819e772e9c2d4a7602c062f012c (diff) | |
download | linux-stable-a50c1e35650b929500bd89be61c89d95a267ce56.tar.gz linux-stable-a50c1e35650b929500bd89be61c89d95a267ce56.tar.bz2 linux-stable-a50c1e35650b929500bd89be61c89d95a267ce56.zip |
mlxsw: core: Implement thermal zone
Implement thermal zone for mlxsw based HW. It uses temperature sensor
provided by ASIC (the same as mlxsw hwmon interface) to report current
temp to thermal core. The ASIC's PWM is then used to control speed
of system fans registered as cooling devices.
Signed-off-by: Ivan Vecera <cera@cera.cz>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
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/Makefile')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/Makefile b/drivers/net/ethernet/mellanox/mlxsw/Makefile index 272294244ab1..fe8dadba15ab 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/Makefile +++ b/drivers/net/ethernet/mellanox/mlxsw/Makefile @@ -1,6 +1,7 @@ obj-$(CONFIG_MLXSW_CORE) += mlxsw_core.o mlxsw_core-objs := core.o mlxsw_core-$(CONFIG_MLXSW_CORE_HWMON) += core_hwmon.o +mlxsw_core-$(CONFIG_MLXSW_CORE_THERMAL) += core_thermal.o obj-$(CONFIG_MLXSW_PCI) += mlxsw_pci.o mlxsw_pci-objs := pci.o obj-$(CONFIG_MLXSW_I2C) += mlxsw_i2c.o |