Commit 70b1fce2 authored by Ulf Hansson's avatar Ulf Hansson Committed by Mike Turquette

clk: ux500: Support for prmcu_rate clock

The prmcu_rate clock is not gateable and has a rate which
only can be fetched.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent a093bde2
...@@ -153,6 +153,11 @@ static struct clk_ops clk_prcmu_gate_ops = { ...@@ -153,6 +153,11 @@ static struct clk_ops clk_prcmu_gate_ops = {
.recalc_rate = clk_prcmu_recalc_rate, .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 = { static struct clk_ops clk_prcmu_opp_gate_ops = {
.prepare = clk_prcmu_opp_prepare, .prepare = clk_prcmu_opp_prepare,
.unprepare = clk_prcmu_opp_unprepare, .unprepare = clk_prcmu_opp_unprepare,
...@@ -228,6 +233,15 @@ struct clk *clk_reg_prcmu_gate(const char *name, ...@@ -228,6 +233,15 @@ struct clk *clk_reg_prcmu_gate(const char *name,
&clk_prcmu_gate_ops); &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, struct clk *clk_reg_prcmu_opp_gate(const char *name,
const char *parent_name, const char *parent_name,
u8 cg_sel, u8 cg_sel,
......
...@@ -35,6 +35,11 @@ struct clk *clk_reg_prcmu_gate(const char *name, ...@@ -35,6 +35,11 @@ struct clk *clk_reg_prcmu_gate(const char *name,
u8 cg_sel, u8 cg_sel,
unsigned long flags); 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, struct clk *clk_reg_prcmu_opp_gate(const char *name,
const char *parent_name, const char *parent_name,
u8 cg_sel, u8 cg_sel,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment