diff options
author | Chao Xie <xiechao.mail@gmail.com> | 2012-07-31 14:13:08 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-08-16 16:15:44 +0800 |
commit | cd0a4a9503345c7076978ecc81c38a1c61730bfe (patch) | |
tree | cdf719de292cef2d876e78b7a9e49025b64427cb /arch/arm/mach-pxa/clock-pxa3xx.c | |
parent | aff18a67078e61088ea05efa6d077ffb838786e9 (diff) | |
download | op-kernel-dev-cd0a4a9503345c7076978ecc81c38a1c61730bfe.zip op-kernel-dev-cd0a4a9503345c7076978ecc81c38a1c61730bfe.tar.gz |
ARM: pxa: support CKENC in clk_enable
Since more device clock is supported in PXA95x, add CKENC support.
Signed-off-by: Chao Xie <xiechao.mail@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/clock-pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/clock-pxa3xx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/clock-pxa3xx.c b/arch/arm/mach-pxa/clock-pxa3xx.c index 2a37a9a..d4e9499 100644 --- a/arch/arm/mach-pxa/clock-pxa3xx.c +++ b/arch/arm/mach-pxa/clock-pxa3xx.c @@ -127,8 +127,10 @@ void clk_pxa3xx_cken_enable(struct clk *clk) if (clk->cken < 32) CKENA |= mask; - else + else if (clk->cken < 64) CKENB |= mask; + else + CKENC |= mask; } void clk_pxa3xx_cken_disable(struct clk *clk) @@ -137,8 +139,10 @@ void clk_pxa3xx_cken_disable(struct clk *clk) if (clk->cken < 32) CKENA &= ~mask; - else + else if (clk->cken < 64) CKENB &= ~mask; + else + CKENC &= ~mask; } const struct clkops clk_pxa3xx_cken_ops = { |