thermal-hal: Add sensor config for talos

Add temperature sensor config for CPU, GPU, battery and
skin for talos. These sensors will be used by thermal HAL.

Change-Id: Ib781b266eafd8506b54a068c16ebd4043dc99966
diff --git a/thermal_common.h b/thermal_common.h
index d67661a..8ffbc5c 100644
--- a/thermal_common.h
+++ b/thermal_common.h
@@ -39,6 +39,7 @@
     THERM_SDM_632,
     THERM_SDM_439,
     THERM_MSMNILE,
+    THERM_TALOS,
 };
 
 struct target_therm_cfg {
diff --git a/thermal_target.c b/thermal_target.c
index b1675a0..bf3f0a5 100644
--- a/thermal_target.c
+++ b/thermal_target.c
@@ -69,8 +69,59 @@
     {THERM_MSMNILE, 339},
     {THERM_MSMNILE, 362},
     {THERM_MSMNILE, 367},
+    {THERM_TALOS,  355},
 };
 
+static char *cpu_sensors_talos[] =
+{
+    "cpuss-2-usr",
+    "cpuss-2-usr",
+    "cpuss-1-usr",
+    "cpuss-1-usr",
+    "cpuss-0-usr",
+    "cpuss-0-usr",
+    "cpu-1-0-usr",
+    "cpu-1-2-usr",
+};
+
+static char *misc_sensors_talos[] =
+{
+    "gpu-usr",
+    "battery",
+    "xo-therm"
+};
+
+static struct target_therm_cfg sensor_cfg_talos[] = {
+    {
+        .type = DEVICE_TEMPERATURE_CPU,
+        .sensor_list = cpu_sensors_talos,
+        .sens_cnt = ARRAY_SIZE(cpu_sensors_talos),
+        .mult = 0.001,
+    },
+    {
+        .type = DEVICE_TEMPERATURE_GPU,
+        .sensor_list = &misc_sensors_talos[0],
+        .sens_cnt = 1,
+        .mult = 0.001,
+        .label = "GPU",
+    },
+    {
+        .type = DEVICE_TEMPERATURE_BATTERY,
+        .sensor_list = &misc_sensors_talos[1],
+        .sens_cnt = 1,
+        .mult = 0.001,
+        .label = "battery",
+    },
+    {
+        .type = DEVICE_TEMPERATURE_SKIN,
+        .sensor_list = &misc_sensors_talos[2],
+        .sens_cnt = 1,
+        .mult = 0.001,
+        .label = "skin",
+    }
+};
+
+
 static char *cpu_sensors_msmnile[] =
 {
     "cpu-0-0-usr",
@@ -487,6 +538,10 @@
                 cfg = sensor_cfg_msmnile;
                 num_cfg = ARRAY_SIZE(sensor_cfg_msmnile);
                 break;
+            case THERM_TALOS:
+                cfg = sensor_cfg_talos;
+                num_cfg = ARRAY_SIZE(sensor_cfg_talos);
+                break;
             default:
                 cfg = NULL;
                 num_cfg = 0;