]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: Kirkwood: Ensure runit clock always ticks.
authorAndrew Lunn <andrew@lunn.ch>
Thu, 19 Jul 2012 06:58:08 +0000 (08:58 +0200)
committerAndrew Lunn <andrew@lunn.ch>
Wed, 25 Jul 2012 14:50:45 +0000 (16:50 +0200)
Marvell engineers tell us:

It seems that many units use the RUNIT clock.
SPI, UART, NAND, TWSI, ...
So it's not possible to clock gate it.

Currently the SPI, NAND and TWSI driver will clk_prepaure_enable()
this clk, but since we have no idea what ... is, and turning this clk
off results in a hard lock, unconditionally enable runit.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
arch/arm/mach-kirkwood/common.c

index f261cd2426434aac74e2856c6069c9052d6f035f..3de2d6df58e1bddae2b0a593ed8d4ae209b81b28 100644 (file)
@@ -241,6 +241,11 @@ void __init kirkwood_clk_init(void)
        orion_clkdev_add("0", "pcie", pex0);
        orion_clkdev_add("1", "pcie", pex1);
        orion_clkdev_add(NULL, "kirkwood-i2s", audio);
+
+       /* Marvell says runit is used by SPI, UART, NAND, TWSI, ...,
+        * so should never be gated.
+        */
+       clk_prepare_enable(runit);
 }
 
 /*****************************************************************************