Skip to content

Commit

Permalink
ARM: pxa: support CKENC in clk_enable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chao Xie authored and Haojian Zhuang committed Aug 16, 2012
1 parent aff18a6 commit cd0a4a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/arm/mach-pxa/clock-pxa3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = {
Expand Down

0 comments on commit cd0a4a9

Please sign in to comment.