Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324297
b: refs/heads/master
c: 70b1fce
h: refs/heads/master
i:
  324295: 12bd646
v: v3
  • Loading branch information
Ulf Hansson authored and Mike Turquette committed Sep 7, 2012
1 parent d91e7cd commit b07ed19
Show file tree
Hide file tree
Showing 3 changed files with 20 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: a093bde2b45a0a745f12c018e2d13c027d58641f
refs/heads/master: 70b1fce2ec3a89e68a35d99e5e9c6c90338b3dd1
14 changes: 14 additions & 0 deletions trunk/drivers/clk/ux500/clk-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ static struct clk_ops clk_prcmu_gate_ops = {
.recalc_rate = clk_prcmu_recalc_rate,
};

static struct clk_ops clk_prcmu_rate_ops = {
.is_enabled = clk_prcmu_is_enabled,
.recalc_rate = clk_prcmu_recalc_rate,
};

static struct clk_ops clk_prcmu_opp_gate_ops = {
.prepare = clk_prcmu_opp_prepare,
.unprepare = clk_prcmu_opp_unprepare,
Expand Down Expand Up @@ -228,6 +233,15 @@ struct clk *clk_reg_prcmu_gate(const char *name,
&clk_prcmu_gate_ops);
}

struct clk *clk_reg_prcmu_rate(const char *name,
const char *parent_name,
u8 cg_sel,
unsigned long flags)
{
return clk_reg_prcmu(name, parent_name, cg_sel, 0, flags,
&clk_prcmu_rate_ops);
}

struct clk *clk_reg_prcmu_opp_gate(const char *name,
const char *parent_name,
u8 cg_sel,
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/clk/ux500/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ struct clk *clk_reg_prcmu_gate(const char *name,
u8 cg_sel,
unsigned long flags);

struct clk *clk_reg_prcmu_rate(const char *name,
const char *parent_name,
u8 cg_sel,
unsigned long flags);

struct clk *clk_reg_prcmu_opp_gate(const char *name,
const char *parent_name,
u8 cg_sel,
Expand Down

0 comments on commit b07ed19

Please sign in to comment.