summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/samsung/exynos_thermal_common.h
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2013-06-24 16:20:37 +0530
committerEduardo Valentin <eduardo.valentin@ti.com>2013-08-13 09:52:01 -0400
commit5c3cf5527e316973d7140a1258e156f3d4e4a8ac (patch)
treee2ce65ad11cd1d9c92890d672e2e1134070cd7d6 /drivers/thermal/samsung/exynos_thermal_common.h
parent23a3eb1062d18001f895bd73aae8554870875cb6 (diff)
thermal: exynos: Make the zone handling use trip information
This code simplifies the zone handling to use the trip information passed by the TMU driver and not the hardcoded macros. This also helps in adding more zone support. Acked-by: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Jonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'drivers/thermal/samsung/exynos_thermal_common.h')
-rw-r--r--drivers/thermal/samsung/exynos_thermal_common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/samsung/exynos_thermal_common.h b/drivers/thermal/samsung/exynos_thermal_common.h
index 6ca3096568e..bfcf69ecd12 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.h
+++ b/drivers/thermal/samsung/exynos_thermal_common.h
@@ -42,8 +42,6 @@
#define GET_ZONE(trip) (trip + 2)
#define GET_TRIP(zone) (zone - 2)
-#define EXYNOS_ZONE_COUNT 3
-
enum trigger_type {
THROTTLE_ACTIVE = 1,
THROTTLE_PASSIVE,
@@ -69,6 +67,7 @@ struct freq_clip_table {
struct thermal_trip_point_conf {
int trip_val[MAX_TRIP_COUNT];
+ int trip_type[MAX_TRIP_COUNT];
int trip_count;
unsigned char trigger_falling;
};