Thermal: imx: add clk disable/enable for suspend/resume
authorAnson Huang <b20788@freescale.com>
Tue, 6 Jan 2015 10:50:22 +0000 (18:50 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 6 Jan 2015 13:35:15 +0000 (09:35 -0400)
commitd26eef8b725da620980ee20f7812f4488a206483
treeaa77e88d276f8a3b2451ccbba1a232de46eb1f60
parent5a723e81923410f0d3ae4c38974607b13befdda9
Thermal: imx: add clk disable/enable for suspend/resume

Thermal sensor's clk is from pll3_usb_otg, per hardware
design requirement, need to make sure pll3_usb_otg is disabled
before STOP mode is entered, otherwise, all PFDs under it may
enter incorrect state, this patch disables pll3_usb_otg before
suspend and enables it after resume.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/imx_thermal.c