]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: improve status check of clock gate
authorAnson Huang <b20788@freescale.com>
Tue, 24 Dec 2013 19:21:27 +0000 (14:21 -0500)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 31 Dec 2013 01:36:46 +0000 (09:36 +0800)
commit16327fe9ee22f4127d8e23b379230792fecdcb9f
tree7361c69dbfb1f8cd1d87cb6b168013c1eb9edb10
parent733c2f2f905e35809334bb1e8f6248a2f7360215
ARM: imx: improve status check of clock gate

For ccm clock gate, both 2b'11 and 2b'01 should be treated
as clock enabled, see below description in CCM, whenver CPU
trys to check clock gate's status, system will be in run mode.

2b'00: clock is off during all modes;
2b'01: clock is on in run mode, but off in wait and stop mode;
2b'10: Not applicable;
2b'11: clock is on during all modes, except stop mode.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/clk-gate2.c