msm: board-samarium: Add TSENS init
TSENS provides an interface to read the temperature.
Add early initialization to allow kernel thermal
driver to read the temperature at initialization.
Change-Id: Ic9b2847d57cf459be325c2f1ef8f64c58f7e230c
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-samarium.c b/arch/arm/mach-msm/board-samarium.c
index 6133983..9f865a9 100644
--- a/arch/arm/mach-msm/board-samarium.c
+++ b/arch/arm/mach-msm/board-samarium.c
@@ -16,6 +16,7 @@
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/memory.h>
+#include <linux/msm_tsens.h>
#include <asm/hardware/gic.h>
#include <asm/mach/map.h>
#include <asm/mach/arch.h>
@@ -109,6 +110,7 @@
msm_init_modem_notifier_list();
msm_smd_init();
msm_clock_init(&msm_dummy_clock_init_data);
+ tsens_tm_init_driver();
}
static void __init msmsamarium_map_io(void)