Thermal: imx: add i.mx6sx thermal support
authorAnson Huang <b20788@freescale.com>
Wed, 6 Aug 2014 07:12:09 +0000 (15:12 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Sat, 9 Aug 2014 14:29:30 +0000 (10:29 -0400)
commit3c94f17e72a7bcf689756da100b6051e535c45f4
tree2cf71a742c68ab6e66b1858c9d1496ec7b258cb5
parenta020279ee611c31ac163c00b21b975e7ecbb2e9c
Thermal: imx: add i.mx6sx thermal support

i.MX6SX has some new features of thermal interrupt function,
there are LOW, HIGH and PANIC irq for thermal sensor, so add
platform data to separate different thermal version;

The reset value of LOW ALARM is 0 which means the highest
temp, so the LOW ALARM will be triggered once irq is enabled,
so we need to correct it before enabling thermal irq;

Enable PANIC ALARM as critical trip point, it will trigger
system reset via SRC module once PANIC IRQ is triggered, it
is pure hardware function, so use it instead of software
reset by cooling device.

Signed-off-by: Anson Huang <b20788@freescale.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Documentation/devicetree/bindings/thermal/imx-thermal.txt
drivers/thermal/imx_thermal.c