]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thermal: ti-soc-thermal: OMAP5: Implement Workaround for Errata i813
authorKeerthy <j-keerthy@ti.com>
Wed, 22 Apr 2015 12:51:42 +0000 (18:21 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sat, 9 May 2015 01:02:29 +0000 (18:02 -0700)
commite9a90d046b9c9fe8f7c8efefe7b0e64c3c0daa8f
tree5892eedab25e84bf4c96d481a5a8165ecdeb2cec
parent79010636174c78209e20c4f44370b2b13312e08c
thermal: ti-soc-thermal: OMAP5: Implement Workaround for Errata i813

DESCRIPTION

Spurious Thermal Alert: Talert can happen randomly while the device remains
under the temperature limit defined for this event to trig. This spurious
event is caused by a incorrect re-synchronization between clock domains.
The comparison between configured threshold and current temperature value
can happen while the value is transitioning (metastable), thus causing
inappropriate event generation. No spurious event occurs as long as the
threshold value stays unchanged. Spurious event can be generated while a
thermal alert threshold is modified in
CONTROL_BANDGAP_THRESHOLD_MPU/GPU/CORE/DSPEVE/IVA_n.

WORKAROUND

Spurious event generation can be avoided by performing following sequence
when the threshold is modified:
1. Mask the hot/cold events at the thermal IP level.
2. Modify Threshold.
3. Unmask the hot/cold events at the thermal IP level.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/ti-soc-thermal/omap5-thermal-data.c
drivers/thermal/ti-soc-thermal/ti-bandgap.c
drivers/thermal/ti-soc-thermal/ti-bandgap.h