diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2018-07-25 09:27:25 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2018-07-25 10:16:28 +0200 |
commit | d97ab0c87fd674ec697b8c349198e3d16e3e338d (patch) | |
tree | d130b24e4b535654a5cf21f2e2020b8ad0db7ed1 | |
parent | e694652a4960b60a5f90694a52795f25b9711e0a (diff) |
Fix sensor number for little cluster
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 6 | ||||
-rw-r--r-- | drivers/thermal/hisi_thermal.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 516ae209d6a0..a63bb8783c51 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -1195,17 +1195,17 @@ sustainable-power = <4500>; /* sensor ID */ - thermal-sensors = <&tsensor 2>; + thermal-sensors = <&tsensor 0>; trips { little_threshold: trip-point@0 { - temperature = <65000>; + temperature = <50000>; hysteresis = <1000>; type = "passive"; }; little_target: trip-point@1 { - temperature = <75000>; + temperature = <65000>; hysteresis = <1000>; type = "passive"; }; diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 4f8b1208fe2e..78bac1c80f21 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -58,7 +58,7 @@ #define HI6220_CLUSTER0_SENSOR 2 #define HI6220_CLUSTER1_SENSOR 1 -#define HI3660_LITTLE_SENSOR 2 +#define HI3660_LITTLE_SENSOR 0 #define HI3660_BIG_SENSOR 1 struct hisi_thermal_data; |