summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2018-09-25 11:03:10 +0200
committerEduardo Valentin <edubezval@gmail.com>2018-10-23 02:50:41 +0200
commitce8c0700dcf905333733f83a06cd956496e0a661 (patch)
treeb09b74cf9ccc10ca2cce749ca229eeadf73066ee /drivers
parentthermal/drivers/hisi: Remove pointless irq field (diff)
downloadlinux-ce8c0700dcf905333733f83a06cd956496e0a661.tar.xz
linux-ce8c0700dcf905333733f83a06cd956496e0a661.zip
thermal/drivers/hisi: Add more sensors channel
Add the sensor channels id for the little, g3d and modem. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/hisi_thermal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c
index 87d8a135ad38..ba89cb9a6248 100644
--- a/drivers/thermal/hisi_thermal.c
+++ b/drivers/thermal/hisi_thermal.c
@@ -56,7 +56,12 @@
#define HI3660_TEMP_LAG (4000)
#define HI6220_CLUSTER0_SENSOR 2
+#define HI6220_CLUSTER1_SENSOR 1
+
+#define HI3660_LITTLE_SENSOR 0
#define HI3660_BIG_SENSOR 1
+#define HI3660_G3D_SENSOR 2
+#define HI3660_MODEM_SENSOR 3
struct hisi_thermal_data;