diff options
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/mvebu/clk-corediv.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/drivers/clk/mvebu/clk-corediv.c b/drivers/clk/mvebu/clk-corediv.c index 4da60760be10..d1e5863d3375 100644 --- a/drivers/clk/mvebu/clk-corediv.c +++ b/drivers/clk/mvebu/clk-corediv.c | |||
@@ -204,6 +204,22 @@ static const struct clk_corediv_soc_desc armada370_corediv_soc = { | |||
204 | .ratio_offset = 0x8, | 204 | .ratio_offset = 0x8, |
205 | }; | 205 | }; |
206 | 206 | ||
207 | static const struct clk_corediv_soc_desc armada380_corediv_soc = { | ||
208 | .descs = mvebu_corediv_desc, | ||
209 | .ndescs = ARRAY_SIZE(mvebu_corediv_desc), | ||
210 | .ops = { | ||
211 | .enable = clk_corediv_enable, | ||
212 | .disable = clk_corediv_disable, | ||
213 | .is_enabled = clk_corediv_is_enabled, | ||
214 | .recalc_rate = clk_corediv_recalc_rate, | ||
215 | .round_rate = clk_corediv_round_rate, | ||
216 | .set_rate = clk_corediv_set_rate, | ||
217 | }, | ||
218 | .ratio_reload = BIT(8), | ||
219 | .enable_bit_offset = 16, | ||
220 | .ratio_offset = 0x4, | ||
221 | }; | ||
222 | |||
207 | static const struct clk_corediv_soc_desc armada375_corediv_soc = { | 223 | static const struct clk_corediv_soc_desc armada375_corediv_soc = { |
208 | .descs = mvebu_corediv_desc, | 224 | .descs = mvebu_corediv_desc, |
209 | .ndescs = ARRAY_SIZE(mvebu_corediv_desc), | 225 | .ndescs = ARRAY_SIZE(mvebu_corediv_desc), |
@@ -213,7 +229,7 @@ static const struct clk_corediv_soc_desc armada375_corediv_soc = { | |||
213 | .set_rate = clk_corediv_set_rate, | 229 | .set_rate = clk_corediv_set_rate, |
214 | }, | 230 | }, |
215 | .ratio_reload = BIT(8), | 231 | .ratio_reload = BIT(8), |
216 | .ratio_offset = 0x8, | 232 | .ratio_offset = 0x4, |
217 | }; | 233 | }; |
218 | 234 | ||
219 | static void __init | 235 | static void __init |
@@ -290,3 +306,10 @@ static void __init armada375_corediv_clk_init(struct device_node *node) | |||
290 | } | 306 | } |
291 | CLK_OF_DECLARE(armada375_corediv_clk, "marvell,armada-375-corediv-clock", | 307 | CLK_OF_DECLARE(armada375_corediv_clk, "marvell,armada-375-corediv-clock", |
292 | armada375_corediv_clk_init); | 308 | armada375_corediv_clk_init); |
309 | |||
310 | static void __init armada380_corediv_clk_init(struct device_node *node) | ||
311 | { | ||
312 | return mvebu_corediv_clk_init(node, &armada380_corediv_soc); | ||
313 | } | ||
314 | CLK_OF_DECLARE(armada380_corediv_clk, "marvell,armada-380-corediv-clock", | ||
315 | armada380_corediv_clk_init); | ||