static int build_static_power_table(struct cpufreq_cooling_device *cpufreq_cdev)
{
int i, j;
+#if defined(CONFIG_SOC_EXYNOS9810)
int ratio = cal_asv_get_ids_info(ACPM_DVFS_CPUCL1);
int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL1);
+#else
+ int ratio = cal_asv_get_ids_info(ACPM_DVFS_CPUCL0);
+ int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL0);
+#endif
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};
#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
/**
#define EXYNOS_TMU_TEM1456X_SENSE_VALUE (0x0A28)
#define EXYNOS_TMU_NUM_PROBE_SHIFT (16)
+#if defined(CONFIG_SOC_EXYNOS9810)
#define EXYNOS_TMU_NUM_PROBE_MASK (0xf)
+#else
+#define EXYNOS_TMU_NUM_PROBE_MASK (0x7)
+#endif
#define EXYNOS_TMU_LPI_MODE_SHIFT (10)
#define EXYNOS_TMU_LPI_MODE_MASK (1)
+#if defined(CONFIG_SOC_EXYNOS9810)
#define TOTAL_SENSORS 16
+#else
+#define TOTAL_SENSORS 8
+#endif
#define DEFAULT_BALANCE_OFFSET 20
#ifdef CONFIG_EXYNOS_ACPM_THERMAL