clocksource/mtu-nomadik: use apb_pclk
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 24 Oct 2012 12:13:41 +0000 (14:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Nov 2012 13:44:02 +0000 (14:44 +0100)
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>
drivers/clocksource/nomadik-mtu.c

index 23c780ba0d35ceb7faef3be0664cc1ce77089f83..8914c3c1c88b08d8c183a23b17f1e2bd1ffb1e06 100644 (file)
@@ -177,9 +177,15 @@ void nmdk_clksrc_reset(void)
 void __init nmdk_timer_init(void __iomem *base, int irq)
 {
        unsigned long rate;
-       struct clk *clk0;
+       struct clk *clk0, *pclk0;
 
        mtu_base = base;
+
+       pclk0 = clk_get_sys("mtu0", "apb_pclk");
+       BUG_ON(IS_ERR(pclk0));
+       BUG_ON(clk_prepare(pclk0) < 0);
+       BUG_ON(clk_enable(pclk0) < 0);
+
        clk0 = clk_get_sys("mtu0", NULL);
        BUG_ON(IS_ERR(clk0));
        BUG_ON(clk_prepare(clk0) < 0);
This page took 0.02848 seconds and 5 git commands to generate.