]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: soctherm: check HW max and min temp
authorDiwakar Tundlam <dtundlam@nvidia.com>
Tue, 18 Mar 2014 00:33:09 +0000 (17:33 -0700)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Fri, 21 Mar 2014 18:07:38 +0000 (11:07 -0700)
commit91a5bd4c79926ef89d1d8584bd29a64c00387d8c
treefe86078a38b13a713638c69398f7130e45278bc8
parent63af1b1c746abb140cf68bda66a295f6a1d31ec2
arm: tegra: soctherm: check HW max and min temp

Soctherm trip points are set in HW registers that take temperature in
the range -127C to +127C. This causes the bug# noted below.

Fix by checking temp before changing HW register. If threshold temp is
over the range HW can support, we set it to the max.

Also added a change to show the TSOSC STOP bit in debug output.

Bug 1480200

Change-Id: I3c69ca1978ad17ec19af3e896d7e537fb5986ea5
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/382727
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
arch/arm/mach-tegra/tegra11_soctherm.c