OSDN Git Service

thermal: tegra: support hw and sw shutdown
authorWei Ni <wni@nvidia.com>
Thu, 21 Feb 2019 10:18:37 +0000 (18:18 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 03:35:32 +0000 (20:35 -0700)
commit2510aa56ab8795e541386c4f662d40c6c4e98ba9
tree4ef83b4f184d11efa60f0a5369128c2f8a6f93b9
parent9967a1bc8122e50cb2bb330b41bd982392314375
thermal: tegra: support hw and sw shutdown

Currently the critical trip points in thermal framework are the only
way to specify a temperature at which HW should shutdown. This is
insufficient for certain platforms which would want an orderly
software shutdown in addition to HW shutdown.

This change support to parse "nvidia, thermtrips" property,
it allows soctherm DT to specify thermtrip temperatures so that
critical trip points framework can be used for doing software
shutdown.

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/tegra210-soctherm.c