diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2012-10-10 13:42:27 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@ti.com> | 2012-11-09 16:47:06 -0800 |
commit | a816d250e866b01bd18b0dd2bcbe5f1951310094 (patch) | |
tree | cbb6ebfcdea25ed695a6f78064e80136858c8e6b /drivers/clk/ux500/clk-prcmu.c | |
parent | b2302c873bb7959958ffad4625a0876fc9294640 (diff) | |
download | linux-stable-a816d250e866b01bd18b0dd2bcbe5f1951310094.tar.gz linux-stable-a816d250e866b01bd18b0dd2bcbe5f1951310094.tar.bz2 linux-stable-a816d250e866b01bd18b0dd2bcbe5f1951310094.zip |
clk: ux500: Support for prcmu_scalable_rate clock
The prcmu_scalable_rate clock can change rate but is not gateable.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/ux500/clk-prcmu.c')
-rw-r--r-- | drivers/clk/ux500/clk-prcmu.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/clk/ux500/clk-prcmu.c b/drivers/clk/ux500/clk-prcmu.c index 04577ca6a308..74faa7e3cf59 100644 --- a/drivers/clk/ux500/clk-prcmu.c +++ b/drivers/clk/ux500/clk-prcmu.c @@ -187,6 +187,13 @@ static struct clk_ops clk_prcmu_gate_ops = { .recalc_rate = clk_prcmu_recalc_rate, }; +static struct clk_ops clk_prcmu_scalable_rate_ops = { + .is_enabled = clk_prcmu_is_enabled, + .recalc_rate = clk_prcmu_recalc_rate, + .round_rate = clk_prcmu_round_rate, + .set_rate = clk_prcmu_set_rate, +}; + static struct clk_ops clk_prcmu_rate_ops = { .is_enabled = clk_prcmu_is_enabled, .recalc_rate = clk_prcmu_recalc_rate, @@ -278,6 +285,16 @@ struct clk *clk_reg_prcmu_gate(const char *name, &clk_prcmu_gate_ops); } +struct clk *clk_reg_prcmu_scalable_rate(const char *name, + const char *parent_name, + u8 cg_sel, + unsigned long rate, + unsigned long flags) +{ + return clk_reg_prcmu(name, parent_name, cg_sel, rate, flags, + &clk_prcmu_scalable_rate_ops); +} + struct clk *clk_reg_prcmu_rate(const char *name, const char *parent_name, u8 cg_sel, |