summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinyoung Park <jinyoungp@nvidia.com>2013-11-29 16:15:54 +0900
committerHarry Hong <hhong@nvidia.com>2013-12-01 22:14:03 -0800
commitc65b17860833c08d65b9d915b3b88fca43b9e1c8 (patch)
treefecdd0e7c22162d755caaab984290fb920a921c4
parent46b604aaf799f1e9832246d3f288e276eacfc3cd (diff)
ARM: tegra: tegratab: Enable Tboard temp shutdown
Enable Tboard temp shutdown. System will be shutdown if Tboard temp is above 95C. Bug 1366274 Change-Id: Id9a34741cb3d0051f124c013f7609fd23f145a99 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/336850 Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-tegratab-power.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-tegratab-power.c b/arch/arm/mach-tegra/board-tegratab-power.c
index 7196c1f578fa..46b38858a0aa 100644
--- a/arch/arm/mach-tegra/board-tegratab-power.c
+++ b/arch/arm/mach-tegra/board-tegratab-power.c
@@ -419,6 +419,13 @@ static struct iio_map palmas_adc_iio_maps[] = {
PALMAS_GPADC_IIO_MAP(NULL, NULL, NULL),
};
+struct palmas_adc_auto_conv_property palmas_adc_auto_conv1_data = {
+ .adc_channel_number = PALMAS_ADC_CH_IN1, /* NTC thermistor(Tboard) */
+ /* Shutdown if ADC auto conversion is below 168(>95C). */
+ .adc_low_threshold = 168, /* 95C */
+ .adc_shutdown = true,
+};
+
static struct palmas_gpadc_platform_data palmas_adc_pdata = {
.ch0_current_uA = 5,
/* If ch3_dual_current is true, it will measure ch3 input signal with
@@ -428,6 +435,9 @@ static struct palmas_gpadc_platform_data palmas_adc_pdata = {
.ch3_dual_current = true,
.extended_delay = true,
.iio_maps = palmas_adc_iio_maps,
+
+ .auto_conversion_period_ms = 1000,
+ .adc_auto_conv1_data = &palmas_adc_auto_conv1_data,
};
static struct palmas_pinctrl_config palmas_pincfg[] = {