Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172582
b: refs/heads/master
c: 4092855
h: refs/heads/master
v: v3
  • Loading branch information
Haojian Zhuang authored and Eric Miao committed Dec 1, 2009
1 parent fdc9110 commit 2360e1e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68bef3a7859ebee8bf79a8e6e36369cbbe5903ca
refs/heads/master: 4092855d9634fd0cce879b0f47a7e128f86d869e
15 changes: 15 additions & 0 deletions trunk/arch/arm/mach-mmp/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ struct clkops apbc_clk_ops = {
.disable = apbc_clk_disable,
};

static void apmu_clk_enable(struct clk *clk)
{
__raw_writel(clk->enable_val, clk->clk_rst);
}

static void apmu_clk_disable(struct clk *clk)
{
__raw_writel(0, clk->clk_rst);
}

struct clkops apmu_clk_ops = {
.enable = apmu_clk_enable,
.disable = apmu_clk_disable,
};

static DEFINE_SPINLOCK(clocks_lock);

int clk_enable(struct clk *clk)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mmp/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct clk {
};

extern struct clkops apbc_clk_ops;
extern struct clkops apmu_clk_ops;

#define APBC_CLK(_name, _reg, _fnclksel, _rate) \
struct clk clk_##_name = { \
Expand Down

0 comments on commit 2360e1e

Please sign in to comment.