CHROMIUMOS: thermal:exynos: enable HW overtemp poweroff on exynos5
authorGrant Grundler <grundler@chromium.org>
Tue, 19 Jun 2012 21:52:49 +0000 (21:52 +0000)
committerOlof Johansson <olofj@chromium.org>
Thu, 28 Jun 2012 22:09:53 +0000 (15:09 -0700)
commit5eccbeb51fb41a445fd320803f8d1e6ed45c9e2e
tree81221193e3052e11876337992bcf730b3f8fbcaa
parent4a3bf69ce8624859c8958b885ee12e7285f09bbb
CHROMIUMOS: thermal:exynos: enable HW overtemp poweroff on exynos5

Based on Doug Anderson's proposal for u-boot/exynos5 support:
    https://gerrit.chromium.org/gerrit/#change,25164

The new code checks if FW enables the HW overtemp poweroff.
If so, new code verifies the kernel shutdown threshold is a
lower temp than HW thermal poweroff temp and may set the kernel
shutdown to a lower temp.

If FW did not set the HW overtemp, we now set the poweroff threshhold
to 110C (previously was the kernel shutdown threshold).

Just to be painfully clear: "Shutdown" means kernel issues "shutdown"
request which may take several seconds to poweroff gracefully.
"Poweroff" means HW will "abruptly" kill power to the system.

BUG=chrome-os-partner:9945
TEST=manual testing with heat gun and running:
while true; do md5sum /boot/* ; done

Change-Id: I93e0a3e6e301cccd9ddd939d20d632b0e01e393f
Signed-off-by: Grant Grundler <grundler@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/20668
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Grant Grundler <grundler@google.com>
Tested-by: Grant Grundler <grundler@google.com>
Commit-Ready: Grant Grundler <grundler@google.com>
drivers/thermal/exynos_thermal.c