]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commitdiff
clk: zynq: Force CPU_2X clock to be ungated
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 27 Jan 2015 19:05:27 +0000 (11:05 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 29 Jan 2015 06:04:56 +0000 (07:04 +0100)
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.

Cc: stable@vger.kernel.org # 3.11+
Fixes: 0ee52b157b8e 'clk: zynq: Add clock controller driver'
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/clk/zynq/clkc.c

index d3c965a789ef80f6734b54b94546ae49106fbee5..440cbe4fa9d2abbb9edf8f229c033b864486f1da 100644 (file)
@@ -346,6 +346,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);