[COMMON] thermal: cpu_cooling: Get parameter for PI control
authorSoomin Kim <sm8326.kim@samsung.com>
Tue, 26 Jul 2016 06:56:32 +0000 (15:56 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:11 +0000 (17:13 +0900)
Change-Id: I45db38764afbdfc39c0fee67b7ba5ba0185b456c
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/cpu_cooling.c

index 796ab1ca3ea5bdc0c24165e646d84e8391e8bccd..04eb62a83f6214ad19e9a54494b139545bae4f66 100644 (file)
 #include <soc/samsung/cal-if.h>
 #include <soc/samsung/ect_parser.h>
 
+#if defined(CONFIG_SOC_EXYNOS8895) && defined(CONFIG_SOC_EMULATOR8895)
+#include <dt-bindings/clock/emulator8895.h>
+#elif defined(CONFIG_SOC_EXYNOS8895) && !defined(CONFIG_SOC_EMULATOR8895)
+#include <dt-bindings/clock/exynos8895.h>
+#endif
+
 /*
  * Cooling state <-> CPUFreq frequency
  *
@@ -239,8 +245,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 ids = cal_asv_get_ids_info(0);
-       int asv_group = cal_asv_get_grp(0, 0);
+       int ids = cal_asv_get_ids_info(ACPM_DVFS_CPUCL0);
+       int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL0);
        void *gen_block;
        struct ect_gen_param_table *volt_temp_param, *asv_param;