diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-02-14 09:54:58 -0500 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2015-04-10 16:35:56 -0400 |
commit | c7739aebec22d43fa78389f286bd5520fc53562b (patch) | |
tree | 7f647c706e4d4a058c5b709c9a030cc702794e6f | |
parent | e52786ac3ca721636a6fb0ae88521f5b9ece88a3 (diff) |
clk: pxa: pxa3xx: add missing os timer clock
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>
-rw-r--r-- | drivers/clk/pxa/clk-pxa3xx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/pxa/clk-pxa3xx.c b/drivers/clk/pxa/clk-pxa3xx.c index 39f891bba09a..4b93a1efb36d 100644 --- a/drivers/clk/pxa/clk-pxa3xx.c +++ b/drivers/clk/pxa/clk-pxa3xx.c | |||
@@ -336,6 +336,9 @@ static void __init pxa3xx_base_clocks_init(void) | |||
336 | clk_register_clk_pxa3xx_smemc(); | 336 | clk_register_clk_pxa3xx_smemc(); |
337 | clk_register_gate(NULL, "CLK_POUT", "osc_13mhz", 0, | 337 | clk_register_gate(NULL, "CLK_POUT", "osc_13mhz", 0, |
338 | (void __iomem *)&OSCC, 11, 0, NULL); | 338 | (void __iomem *)&OSCC, 11, 0, NULL); |
339 | clkdev_pxa_register(CLK_OSTIMER, "OSTIMER0", NULL, | ||
340 | clk_register_fixed_factor(NULL, "os-timer0", | ||
341 | "osc_13mhz", 0, 1, 4)); | ||
339 | } | 342 | } |
340 | 343 | ||
341 | int __init pxa3xx_clocks_init(void) | 344 | int __init pxa3xx_clocks_init(void) |