MLK-16415 thermal: imx_sc: add device cooling for all thermal zones
authorAnson Huang <Anson.Huang@nxp.com>
Fri, 8 Sep 2017 08:04:25 +0000 (16:04 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:31 +0000 (15:38 -0500)
commit49747ac15b356ca5cb04dc5b20f580bc01615a45
treeb179b57326c7893813b6b9a17eb6ee4dcc507773
parent84d8214c7a375eb67a11913c70581b75e8b281bf
MLK-16415 thermal: imx_sc: add device cooling for all thermal zones

For system controller thermal devices, add device
cooling for all thermal zones, when temperature
exceeds passive trip point, thermal driver will
send out notification, all devices that register
device cooling notification can take actions to
cooling down the chip, such as for GPU, below message
will be printed out:

[  581.284453] System is too hot. GPU3D will work at 1/64 clock.

And when temperature drops to below passive trip
point, GPU cooling action will be cancelled:

[  578.300532] Hot alarm is canceled. GPU3D clock will return to 64/64

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
drivers/thermal/imx_sc_thermal.c