thermal: tsens: Add Temperature sensor driver

Temperature sensor (TSENS) driver registers with
the of_thermal framework to provide sysfs interface
to thermal clients to set trips and read temperature
from supported TSENS temperature.

The driver has a general API for supported operations
needed as part of registering with of_thermal such as
reading temperature and setting thresholds. These
functions call into supported controller for the
platform to program the thresholds and enable
the controller for temperature monitoring.
Minor controller updates can be abstracted as a
platform data within the TSENS controller driver.

The driver also supports debug capabilities as a
separate interface such as tracing temperature
reads done by individual clients for sensors and
tracing the time when programmed threshold interrupts
are tripped.

Change-Id: I6678cbe9ee370fba05263199cb1b5ccc3a4f7700
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index d9489a7..e12c199 100644
--- a/drivers/thermal/Makefile
+++ b/drivers/thermal/Makefile
@@ -57,3 +57,4 @@
 obj-$(CONFIG_MTK_THERMAL)	+= mtk_thermal.o
 obj-$(CONFIG_GENERIC_ADC_THERMAL)	+= thermal-generic-adc.o
 obj-$(CONFIG_THERMAL_QPNP_ADC_TM)	+= qpnp-adc-tm.o
+obj-$(CONFIG_THERMAL_TSENS)	+= msm-tsens.o tsens2xxx.o tsens-dbg.o