diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-04-20 09:06:28 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-05-07 14:32:39 -0400 |
commit | a6ae41b54cb077270456acdf090c9db1663c75b5 (patch) | |
tree | f83226abd5772d2eb0a20687849f8ec054ac44e8 | |
parent | 70e9f4dde00182600989ca57f08d51be12f1523f (diff) |
clk: ux500: ape[ate|trace]clk are scaleable
The APEATCLK and APETRACECLK are actually scaleable so register
them as scaleable clocks.
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/ux500/u8500_clk.c | 7 | ||||
-rw-r--r-- | drivers/clk/ux500/u8500_of_clk.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c index 80069c370a47..4626b97b7d83 100644 --- a/drivers/clk/ux500/u8500_clk.c +++ b/drivers/clk/ux500/u8500_clk.c | |||
@@ -116,11 +116,12 @@ void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, | |||
116 | clk_register_clkdev(clk, NULL, "hdmi"); | 116 | clk_register_clkdev(clk, NULL, "hdmi"); |
117 | clk_register_clkdev(clk, "hdmi", "mcde"); | 117 | clk_register_clkdev(clk, "hdmi", "mcde"); |
118 | 118 | ||
119 | clk = clk_reg_prcmu_gate("apeatclk", NULL, PRCMU_APEATCLK, CLK_IS_ROOT); | 119 | clk = clk_reg_prcmu_scalable("apeatclk", NULL, PRCMU_APEATCLK, 0, |
120 | CLK_IS_ROOT|CLK_SET_RATE_GATE); | ||
120 | clk_register_clkdev(clk, NULL, "apeat"); | 121 | clk_register_clkdev(clk, NULL, "apeat"); |
121 | 122 | ||
122 | clk = clk_reg_prcmu_gate("apetraceclk", NULL, PRCMU_APETRACECLK, | 123 | clk = clk_reg_prcmu_scalable("apetraceclk", NULL, PRCMU_APETRACECLK, 0, |
123 | CLK_IS_ROOT); | 124 | CLK_IS_ROOT|CLK_SET_RATE_GATE); |
124 | clk_register_clkdev(clk, NULL, "apetrace"); | 125 | clk_register_clkdev(clk, NULL, "apetrace"); |
125 | 126 | ||
126 | clk = clk_reg_prcmu_gate("mcdeclk", NULL, PRCMU_MCDECLK, CLK_IS_ROOT); | 127 | clk = clk_reg_prcmu_gate("mcdeclk", NULL, PRCMU_MCDECLK, CLK_IS_ROOT); |
diff --git a/drivers/clk/ux500/u8500_of_clk.c b/drivers/clk/ux500/u8500_of_clk.c index 7b55ef89baa5..e319ef912dc6 100644 --- a/drivers/clk/ux500/u8500_of_clk.c +++ b/drivers/clk/ux500/u8500_of_clk.c | |||
@@ -166,8 +166,8 @@ void u8500_of_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base, | |||
166 | clk = clk_reg_prcmu_gate("apeatclk", NULL, PRCMU_APEATCLK, CLK_IS_ROOT); | 166 | clk = clk_reg_prcmu_gate("apeatclk", NULL, PRCMU_APEATCLK, CLK_IS_ROOT); |
167 | prcmu_clk[PRCMU_APEATCLK] = clk; | 167 | prcmu_clk[PRCMU_APEATCLK] = clk; |
168 | 168 | ||
169 | clk = clk_reg_prcmu_gate("apetraceclk", NULL, PRCMU_APETRACECLK, | 169 | clk = clk_reg_prcmu_scalable("apetraceclk", NULL, PRCMU_APETRACECLK, 0, |
170 | CLK_IS_ROOT); | 170 | CLK_IS_ROOT|CLK_SET_RATE_GATE); |
171 | prcmu_clk[PRCMU_APETRACECLK] = clk; | 171 | prcmu_clk[PRCMU_APETRACECLK] = clk; |
172 | 172 | ||
173 | clk = clk_reg_prcmu_gate("mcdeclk", NULL, PRCMU_MCDECLK, CLK_IS_ROOT); | 173 | clk = clk_reg_prcmu_gate("mcdeclk", NULL, PRCMU_MCDECLK, CLK_IS_ROOT); |