summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2019-07-24 23:36:13 +0530
committerManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2019-07-24 23:37:37 +0530
commitf9dc8afcdf4c17305157de464b5c51967268f2c5 (patch)
tree9a5a24287009540b95189d32d3ee5201a015421d
parent99c39c2d3df594849bc6a658c3c4453c7f3b9a84 (diff)
downloadthermal-f9dc8afcdf4c17305157de464b5c51967268f2c5.tar.gz
thermal-hal: Add sensor config for ATOLL
Add temperature sensor config for CPU, GPU, battery and skin for ATOLL. These sensors will be used by thermal HAL. Use lito sensors for ATOLL. Change-Id: I7f68dcdd024fe8855c0d8f65a16c0baec204ddfd
-rw-r--r--thermal_common.h1
-rw-r--r--thermal_target.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/thermal_common.h b/thermal_common.h
index 0d00d5b..8e55868 100644
--- a/thermal_common.h
+++ b/thermal_common.h
@@ -45,6 +45,7 @@ enum therm_msm_id {
THERM_TRINKET,
THERM_KONA,
THERM_LITO,
+ THERM_ATOLL,
};
struct target_therm_cfg {
diff --git a/thermal_target.c b/thermal_target.c
index 7886006..4332554 100644
--- a/thermal_target.c
+++ b/thermal_target.c
@@ -80,6 +80,7 @@ static struct therm_msm_soc_type msm_soc_table[] = {
{THERM_MSM_8917, 386}, // This SOC ID is for QM215
{THERM_TRINKET, 394},
{THERM_LITO, 400},
+ {THERM_ATOLL, 407},
};
static char *cpu_sensors_talos[] =
@@ -745,6 +746,7 @@ ssize_t get_temperatures(thermal_module_t *module, temperature_t *list, size_t s
num_cfg = ARRAY_SIZE(sensor_cfg_trinket);
break;
case THERM_LITO:
+ case THERM_ATOLL:
cfg = sensor_cfg_lito;
num_cfg = ARRAY_SIZE(sensor_cfg_lito);
break;