diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2012-10-24 08:13:41 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-16 08:44:02 -0500 |
commit | 16defa668d009a762e23d55ce6ecf5ae483dfe10 (patch) | |
tree | 246643490b7b202caa9e930fdad41a495e10590f /drivers/clocksource | |
parent | db5eb2daf717d5023ade51fd2a2f7bc0bfcffbde (diff) |
clocksource/mtu-nomadik: use apb_pclk
After improving the clock tree we need to make sure the the
MTU timer explicitly grabs and enables it silicon clock
(pclk).
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Mike Turquette <mturquette@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/nomadik-mtu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/clocksource/nomadik-mtu.c b/drivers/clocksource/nomadik-mtu.c index 23c780ba0d35..8914c3c1c88b 100644 --- a/drivers/clocksource/nomadik-mtu.c +++ b/drivers/clocksource/nomadik-mtu.c | |||
@@ -177,9 +177,15 @@ void nmdk_clksrc_reset(void) | |||
177 | void __init nmdk_timer_init(void __iomem *base, int irq) | 177 | void __init nmdk_timer_init(void __iomem *base, int irq) |
178 | { | 178 | { |
179 | unsigned long rate; | 179 | unsigned long rate; |
180 | struct clk *clk0; | 180 | struct clk *clk0, *pclk0; |
181 | 181 | ||
182 | mtu_base = base; | 182 | mtu_base = base; |
183 | |||
184 | pclk0 = clk_get_sys("mtu0", "apb_pclk"); | ||
185 | BUG_ON(IS_ERR(pclk0)); | ||
186 | BUG_ON(clk_prepare(pclk0) < 0); | ||
187 | BUG_ON(clk_enable(pclk0) < 0); | ||
188 | |||
183 | clk0 = clk_get_sys("mtu0", NULL); | 189 | clk0 = clk_get_sys("mtu0", NULL); |
184 | BUG_ON(IS_ERR(clk0)); | 190 | BUG_ON(IS_ERR(clk0)); |
185 | BUG_ON(clk_prepare(clk0) < 0); | 191 | BUG_ON(clk_prepare(clk0) < 0); |