From e56c9bf5ec9a59a3f39dc0380222de590fa8d007 Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Sun, 8 Jan 2017 17:35:07 +0900 Subject: [PATCH] [COMMON] thermal: of_thermal: Add thermal zone name Change-Id: Idda979e0d1302bdfe70c508c25d48d11f5279870 Signed-off-by: Soomin Kim --- drivers/thermal/of-thermal.c | 2 ++ drivers/thermal/samsung/exynos_tmu.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index b17dadba97e5..c6b12d0d099e 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -590,9 +590,11 @@ thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, switch (zone) { case MNGS_QUAD : case MNGS_DUAL : + case BIG : level = cpufreq_cooling_get_level(4, freq); break; case APOLLO : + case LITTLE : level = cpufreq_cooling_get_level(0, freq); break; case GPU : diff --git a/drivers/thermal/samsung/exynos_tmu.h b/drivers/thermal/samsung/exynos_tmu.h index 00f6f4c09e92..4f874d1cd58f 100644 --- a/drivers/thermal/samsung/exynos_tmu.h +++ b/drivers/thermal/samsung/exynos_tmu.h @@ -88,6 +88,8 @@ enum thermal_zone_name { GPU, ISP, MNGS_DUAL, + BIG, + LITTLE, END_ZONE_NAME, }; @@ -100,6 +102,8 @@ static const char * const tz_zone_names[] = { [GPU] = "GPU", [ISP] = "ISP", [MNGS_DUAL]= "MNGS_DUAL", + [BIG]="BIG", + [LITTLE]="LITTLE", }; struct sensor_info { -- 2.20.1