diff options
author | Anson Huang <b20788@freescale.com> | 2013-12-24 23:21:27 +0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-12-31 05:36:46 +0400 |
commit | b4e844f019aa6b46601ef3d04af645b36dffaa0d (patch) | |
tree | 7361c69dbfb1f8cd1d87cb6b168013c1eb9edb10 /arch/arm | |
parent | adf15fa59695f383067e70d151b131fdeafcb489 (diff) | |
download | linux-b4e844f019aa6b46601ef3d04af645b36dffaa0d.tar.xz |
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/clk-gate2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-gate2.c b/arch/arm/mach-imx/clk-gate2.c index a63e415609a8..a2ecc006b322 100644 --- a/arch/arm/mach-imx/clk-gate2.c +++ b/arch/arm/mach-imx/clk-gate2.c @@ -72,7 +72,7 @@ static int clk_gate2_is_enabled(struct clk_hw *hw) reg = readl(gate->reg); - if (((reg >> gate->bit_idx) & 3) == 3) + if (((reg >> gate->bit_idx) & 1) == 1) return 1; return 0; |