[COMMON] thermal: cpu_cooling: modify ids of static power table
authorEunseok Choi <es10.choi@samsung.com>
Mon, 22 May 2017 17:45:02 +0000 (02:45 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:48 +0000 (17:18 +0900)
Change-Id: I725217f8df11927fcede4be288fdf05af618aee3
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
drivers/thermal/cpu_cooling.c

index 5b780579acdbc0c01690c4d7f0556d86890dd7fb..59ac5c3f10ab5fc10b1e38147838fc4c576ce8e1 100644 (file)
@@ -45,6 +45,8 @@
 #include <dt-bindings/clock/exynos8895.h>
 #elif defined(CONFIG_SOC_EXYNOS7872)
 #include <dt-bindings/clock/exynos7872.h>
+#elif defined(CONFIG_SOC_EXYNOS9810)
+#include <dt-bindings/clock/exynos9810.h>
 #endif
 
 /*
@@ -247,8 +249,8 @@ static int update_freq_table(struct cpufreq_cooling_device *cpufreq_cdev,
 static int build_static_power_table(struct cpufreq_cooling_device *cpufreq_cdev)
 {
        int i, j;
-       int ratio = cal_asv_get_ids_info(ACPM_DVFS_CPUCL0);
-       int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL0);
+       int ratio = cal_asv_get_ids_info(ACPM_DVFS_CPUCL1);
+       int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL1);
        void *gen_block;
        struct ect_gen_param_table *volt_temp_param, *asv_param;
        int ratio_table[16] = { 0, 18, 22, 27, 33, 40, 49, 60, 73, 89, 108, 131, 159, 194, 232, 250};
@@ -265,8 +267,8 @@ static int build_static_power_table(struct cpufreq_cooling_device *cpufreq_cdev)
                return -EINVAL;
        }
 
-       volt_temp_param = ect_gen_param_get_table(gen_block, "DTM_MNGS_VOLT_TEMP");
-       asv_param = ect_gen_param_get_table(gen_block, "DTM_MNGS_ASV");
+       volt_temp_param = ect_gen_param_get_table(gen_block, "DTM_BIG_VOLT_TEMP");
+       asv_param = ect_gen_param_get_table(gen_block, "DTM_BIG_ASV");
 
        if (volt_temp_param && asv_param) {
                cpufreq_cdev->var_volt_size = volt_temp_param->num_of_row - 1;