clk: pxa: pxa3xx: add missing os timer clock
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 14 Feb 2015 14:54:58 +0000 (15:54 +0100)
committerMichael Turquette <mturquette@linaro.org>
Fri, 10 Apr 2015 20:35:56 +0000 (13:35 -0700)
The pxa3xx scheduler relies on the pxa-timer, which requires a clock for
its rate. As the clock handling will be taken over by the clock
framework, add this missing clock.

The miss was discovered by attempting to run a zylonite platform in a
device-tree configuration, with the future patch to shift clocks
handling to clock framework applied.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/pxa/clk-pxa3xx.c

index 39f891bba09a99d2c70af1d882399d95ebc43fe8..4b93a1efb36d11fa7171735d29bac283e4bb6d97 100644 (file)
@@ -336,6 +336,9 @@ static void __init pxa3xx_base_clocks_init(void)
        clk_register_clk_pxa3xx_smemc();
        clk_register_gate(NULL, "CLK_POUT", "osc_13mhz", 0,
                          (void __iomem *)&OSCC, 11, 0, NULL);
+       clkdev_pxa_register(CLK_OSTIMER, "OSTIMER0", NULL,
+                           clk_register_fixed_factor(NULL, "os-timer0",
+                                                     "osc_13mhz", 0, 1, 4));
 }
 
 int __init pxa3xx_clocks_init(void)