]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: loki: Batt temp and tdiode shutdown
authorAnkita Garg <ankitag@nvidia.com>
Wed, 15 Jan 2014 23:10:23 +0000 (15:10 -0800)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Fri, 7 Mar 2014 20:23:35 +0000 (12:23 -0800)
commite4f4af0d3722764bd8c5659fc308b698e6e28df9
treef4c27f9bf4e01fb256ca957a6008c93ad570a1f7
parente7b57f42e4fbf3eb8d2cff6e1ef7bc812885ca17
arm: tegra: loki: Batt temp and tdiode shutdown

This change enables reading the battery temperature and
Tdiode through PMIC ADC and shutdown based on that.
The adc value conversion to temperature
is performed using a look-up table that maps the adc values
to temp. The conversion table is based on values generated
for Loki P2530 board.

Bug 1408758
Bug 1398960

Change-Id: Ic27efe4f7b608ee355799c9498413a862dd4ea39
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/375907
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
arch/arm/mach-tegra/board-loki-power.c
arch/arm/mach-tegra/board-loki-sensors.c