thermal: imx: add necessary clk operation
authorAnson Huang <b20788@freescale.com>
Mon, 23 Dec 2013 20:49:22 +0000 (15:49 -0500)
committerZhang Rui <rui.zhang@intel.com>
Fri, 3 Jan 2014 14:49:16 +0000 (22:49 +0800)
commit329fe7b14d6cef4b8cf8c866ff41057a70224de2
tree21a45022a95bf88cf529d61c4cec1a2c5e7161c5
parentbeeb5a1e0ef774d0a3e18c5a0e78c39e3e1a5389
thermal: imx: add necessary clk operation

Thermal sensor needs pll3_usb_otg when measuring temperature,
otherwise the temperature read will be incorrect, so need to
enable this clk before sensor working, for alarm function,
as hardware will take measurement periodically, so we should
keep this clk always on once alarm function is enabled.

Signed-off-by: Anson Huang <b20788@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Documentation/devicetree/bindings/thermal/imx-thermal.txt
drivers/thermal/imx_thermal.c