[COMMON] thermal: of_thermal: Add thermal zone name
authorSoomin Kim <sm8326.kim@samsung.com>
Sun, 8 Jan 2017 08:35:07 +0000 (17:35 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:31 +0000 (17:18 +0900)
Change-Id: Idda979e0d1302bdfe70c508c25d48d11f5279870
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/of-thermal.c
drivers/thermal/samsung/exynos_tmu.h

index b17dadba97e54c3a2f8f9b6427df9cc3ed033029..c6b12d0d099ebd5d3d998d10f73cf64736e7d6e9 100644 (file)
@@ -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 :
index 00f6f4c09e92ea51774105debacefcd4224af2a1..4f874d1cd58fcf458dbe4cc4bc64c7591efc8c95 100644 (file)
@@ -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 {