]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: sun6i: Protect SDRAM gating bit
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 10 May 2014 03:33:41 +0000 (22:33 -0500)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 11 Jun 2014 08:25:02 +0000 (10:25 +0200)
Prevent the SDRAM controller from being gated by force-enabling it in the
machine code.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Emilio López <emilio@elopez.com.ar>
drivers/clk/sunxi/clk-sunxi.c

index f76f2327e0e4a0610e5c25fc0854e5ce38d88c48..fb2ce8440f0ed6cefbc30d361193383f5282a6cd 100644 (file)
@@ -1227,6 +1227,7 @@ CLK_OF_DECLARE(sun7i_a20_clk_init, "allwinner,sun7i-a20", sun5i_init_clocks);
 
 static const char *sun6i_critical_clocks[] __initdata = {
        "cpu",
+       "ahb1_sdram",
 };
 
 static void __init sun6i_init_clocks(struct device_node *node)