diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2017-01-27 16:25:42 +1300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-01-27 10:48:03 -0800 |
commit | e120c17a70e5bad1ed601502844f708837b132a8 (patch) | |
tree | 00cee0e5aa588049c16e73ce83c56bf0e75af98b /drivers/clk/mvebu/clk-cpu.c | |
parent | 2e6f38cef8838a5edd6051c3110ecf06f37ec544 (diff) |
clk: mvebu: support for 98DX3236 SoC
The 98DX3236, 98DX3336, 98DX4521 and variants have a different TCLK from
the Armada XP (200MHz vs 250MHz). The CPU core clock is fixed at 800MHz.
The clock gating options are a subset of those on the Armada XP.
The core clock divider is different to the Armada XP also.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mvebu/clk-cpu.c')
-rw-r--r-- | drivers/clk/mvebu/clk-cpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c index 5837eb8a212f..044892b6534d 100644 --- a/drivers/clk/mvebu/clk-cpu.c +++ b/drivers/clk/mvebu/clk-cpu.c @@ -245,3 +245,11 @@ cpuclk_out: CLK_OF_DECLARE(armada_xp_cpu_clock, "marvell,armada-xp-cpu-clock", of_cpu_clk_setup); + +static void __init of_mv98dx3236_cpu_clk_setup(struct device_node *node) +{ + of_clk_add_provider(node, of_clk_src_simple_get, NULL); +} + +CLK_OF_DECLARE(mv98dx3236_cpu_clock, "marvell,mv98dx3236-cpu-clock", + of_mv98dx3236_cpu_clk_setup); |