diff options
author | Soren Brinkmann <soren.brinkmann@xilinx.com> | 2015-01-27 11:05:27 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-18 13:31:32 +0100 |
commit | dc2301c7edf384c30def8af4689f9125617c9867 (patch) | |
tree | 69fef9af60051d8019968c066285fd7a91aa3f73 | |
parent | 0457b9853d65c6b552e8bec1ee6ac28f63aa5247 (diff) | |
download | lwn-dc2301c7edf384c30def8af4689f9125617c9867.tar.gz lwn-dc2301c7edf384c30def8af4689f9125617c9867.zip |
clk: zynq: Force CPU_2X clock to be ungated
commit 3dccfecdb867fe35b305a4e493ef5652b7d9d4cb upstream.
The CPU_2X clock does not have a classical in-kernel user, but is,
amongst other things, required for OCM and debug access. Make sure this
clock is not mistakenly disabled during boot up by enabling it in the
platform's clock driver.
Fixes: 0ee52b157b8e 'clk: zynq: Add clock controller driver'
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/clk/zynq/clkc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/zynq/clkc.c b/drivers/clk/zynq/clkc.c index 09dd0173ea0a..5f52f3f62644 100644 --- a/drivers/clk/zynq/clkc.c +++ b/drivers/clk/zynq/clkc.c @@ -300,6 +300,7 @@ static void __init zynq_clk_setup(struct device_node *np) clks[cpu_2x] = clk_register_gate(NULL, clk_output_name[cpu_2x], "cpu_2x_div", CLK_IGNORE_UNUSED, SLCR_ARM_CLK_CTRL, 26, 0, &armclk_lock); + clk_prepare_enable(clks[cpu_2x]); clk = clk_register_fixed_factor(NULL, "cpu_1x_div", "cpu_div", 0, 1, 4 + 2 * tmp); |