thermal: tegra: add thermtrip function
authorWei Ni <wni@nvidia.com>
Tue, 29 Mar 2016 10:29:19 +0000 (18:29 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 May 2016 14:28:29 +0000 (07:28 -0700)
commit2a895871f27fdc82ac7b365d3f94e2c7b3467898
tree14bad42ae6ed4ff90cd5b3cbcbba3b8e4ea78adb
parent4d44cd4ae96ed3744d26d9615ea103df5afc3ed7
thermal: tegra: add thermtrip function

Add support for hardware critical thermal limits to the
SOC_THERM driver. It use the Linux thermal framework to
create critical trip temp, and set it to SOC_THERM hardware.
If these limits are breached, the chip will reset, and if
appropriately configured, will turn off the PMIC.

This support is critical for safe usage of the chip.

Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/tegra/soctherm.c
drivers/thermal/tegra/soctherm.h
drivers/thermal/tegra/tegra124-soctherm.c
drivers/thermal/tegra/tegra210-soctherm.c