Snap for 5626642 from e7a6c4edfa7b2cdd492804628b39f3db30b1d346 to qt-c2f2-release

Change-Id: I5d62d66eadeb7ea4a0720c9e472be26d60a1d23c
diff --git a/thermal_common.h b/thermal_common.h
index 76bcff6..0d00d5b 100644
--- a/thermal_common.h
+++ b/thermal_common.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -44,6 +44,7 @@
     THERM_MSM_8917,
     THERM_TRINKET,
     THERM_KONA,
+    THERM_LITO,
 };
 
 struct target_therm_cfg {
diff --git a/thermal_target.c b/thermal_target.c
index 7298f59..7d3efc2 100644
--- a/thermal_target.c
+++ b/thermal_target.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -78,6 +78,7 @@
     {THERM_MSM_8917, 309},
     {THERM_MSM_8917, 386}, // This SOC ID is for QM215
     {THERM_TRINKET,  394},
+    {THERM_LITO,  400},
 };
 
 static char *cpu_sensors_talos[] =
@@ -178,6 +179,43 @@
     }
 };
 
+static char *misc_sensors_lito[] =
+{
+    "gpuss-0-usr",
+    "battery",
+    "xo-therm-usr"
+};
+
+static struct target_therm_cfg sensor_cfg_lito[] = {
+    {
+        .type = DEVICE_TEMPERATURE_CPU,
+        .sensor_list = cpu_sensors_sdmmagpie,
+        .sens_cnt = ARRAY_SIZE(cpu_sensors_sdmmagpie),
+        .mult = 0.001,
+    },
+    {
+        .type = DEVICE_TEMPERATURE_GPU,
+        .sensor_list = &misc_sensors_lito[0],
+        .sens_cnt = 1,
+        .mult = 0.001,
+        .label = "GPU",
+    },
+    {
+        .type = DEVICE_TEMPERATURE_BATTERY,
+        .sensor_list = &misc_sensors_lito[1],
+        .sens_cnt = 1,
+        .mult = 0.001,
+        .label = "battery",
+    },
+    {
+        .type = DEVICE_TEMPERATURE_SKIN,
+        .sensor_list = &misc_sensors_lito[2],
+        .sens_cnt = 1,
+        .mult = 0.001,
+        .label = "skin",
+    }
+};
+
 static char *cpu_sensors_trinket[] =
 {
     "cpuss-0-usr",
@@ -705,6 +743,10 @@
                 cfg = sensor_cfg_trinket;
                 num_cfg = ARRAY_SIZE(sensor_cfg_trinket);
                 break;
+            case THERM_LITO:
+                cfg = sensor_cfg_lito;
+                num_cfg = ARRAY_SIZE(sensor_cfg_lito);
+                break;
             default:
                 cfg = NULL;
                 num_cfg = 0;