]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita059bf15585f349101784995b40ed35beffa1680
tree4ef83b4f184d11efa60f0a5369128c2f8a6f93b9
parent52495d9d15ac37f517c709d5b06855ebda1dea2e
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