MIPS: lantiq: falcon clocks were not enabled properly
authorJohn Crispin <blogic@openwrt.org>
Thu, 16 Aug 2012 08:25:41 +0000 (08:25 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 22 Aug 2012 22:08:18 +0000 (00:08 +0200)
As a result of a non populated ->bits field inside the clock struct, the clock
domains were never powered on the Falcon. Until now we only used domains that
were also used and powered by the bootloader.

Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4234/

arch/mips/lantiq/falcon/sysctrl.c

index ba0123d13d404e2b5224628cd9803a15fe4f2183..2d4ced332b37300a4f34d951ebc383d123c1d297 100644 (file)
@@ -171,6 +171,7 @@ static inline void clkdev_add_sys(const char *dev, unsigned int module,
        clk->cl.con_id = NULL;
        clk->cl.clk = clk;
        clk->module = module;
+       clk->bits = bits;
        clk->activate = sysctl_activate;
        clk->deactivate = sysctl_deactivate;
        clk->enable = sysctl_clken;