[COMMON] thermal: gpu_cooling: Get parameter for PI control
authorSoomin Kim <sm8326.kim@samsung.com>
Thu, 28 Jul 2016 07:41:16 +0000 (16:41 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:14 +0000 (17:13 +0900)
Change-Id: If591611e788369ee944e3be105e62fe1660c113f
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/gpu_cooling.c

index 671aef464aa8035a5e88bad414f088d2c6d644db..be042fb1b14cdbf2f66f7684dcd0ba3633cd6d56 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
+
 /**
  * struct power_table - frequency to power conversion
  * @frequency: frequency in KHz
@@ -306,8 +312,8 @@ static int build_dyn_power_table(struct gpufreq_cooling_device *gpufreq_cdev,
 static int build_static_power_table(struct gpufreq_cooling_device *gpufreq_cdev)
 {
        int i, j;
-       int ids = cal_asv_get_ids_info(1);
-       int asv_group = cal_asv_get_grp(2, 0);
+       int ids = cal_asv_get_ids_info(ACPM_DVFS_G3D);
+       int asv_group = cal_asv_get_grp(ACPM_DVFS_G3D);
        void *gen_block;
        struct ect_gen_param_table *volt_temp_param, *asv_param;