summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2015-01-27 11:05:27 -0800
committerLuis Henriques <luis.henriques@canonical.com>2015-02-24 10:01:10 +0000
commit533e84ba18522e63b149da427a9a59e6fb0bf457 (patch)
tree323e35287fc11c75e9fe2539829b33af0ad3e6ee /drivers/clk
parent92c3e24e3f901b858b84a40e414b912b28aca23d (diff)
downloadlinux-stable-533e84ba18522e63b149da427a9a59e6fb0bf457.tar.gz
linux-stable-533e84ba18522e63b149da427a9a59e6fb0bf457.tar.bz2
linux-stable-533e84ba18522e63b149da427a9a59e6fb0bf457.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: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/zynq/clkc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/zynq/clkc.c b/drivers/clk/zynq/clkc.c
index 246cf1226eaa..5b66a8e0cc82 100644
--- a/drivers/clk/zynq/clkc.c
+++ b/drivers/clk/zynq/clkc.c
@@ -304,6 +304,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);