soc: tegra: Add thermal reset (thermtrip) support to PMC
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 6 Jan 2015 10:52:58 +0000 (12:52 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 23 Jan 2015 15:20:49 +0000 (16:20 +0100)
commit3568df3d31d62b4368830cc6aac868cecdefd187
treedbc08541aa9608ba4da691c7d00d174107abfc13
parent9c963301538f857495d8a168de510d511a28d759
soc: tegra: Add thermal reset (thermtrip) support to PMC

This adds a device tree controlled option to enable PMC-based
thermal reset in overheating situations. Thermtrip is supported on
Tegra30, Tegra114 and Tegra124. The thermal reset only works when
the thermal sensors are calibrated, so a soctherm driver is also
required.

The thermtrip event is triggered by the soctherm block, and all
soctherm sensors default to showing a temperature of zero Celsius
before they are initialized. Because of this, it is safe to initialize
thermtrip and soctherm in any order.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c