]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP3: update clk_wait_ready() for OMAP3 DSS clocks
authorKevin Hilman <khilman@mvista.com>
Tue, 11 Dec 2007 17:02:54 +0000 (09:02 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 17 Dec 2007 18:32:35 +0000 (10:32 -0800)
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c

index 668560dba557b81057fd7f192ee3db4dc5be5acb..f863ab5b4549e624e43325d2f16b6802029c6d9e 100644 (file)
@@ -43,6 +43,7 @@
 #include "prm_regbits_24xx.h"
 #include "cm.h"
 #include "cm_regbits_24xx.h"
+#include "cm_regbits_34xx.h"
 
 #define MAX_CLOCK_ENABLE_WAIT          100000
 
@@ -220,6 +221,12 @@ static void omap2_clk_wait_ready(struct clk *clk)
                        return;
        }
 
+       /* REVISIT: What are the appropriate exclusions for 34XX? */
+       /* OMAP3: ignore DSS-mod clocks */
+       if (cpu_is_omap34xx() &&
+           (((u32)reg & ~0xff) == (u32)OMAP_CM_REGADDR(OMAP3430_DSS_MOD, 0)))
+               return;
+
        /* Check if both functional and interface clocks
         * are running. */
        bit = 1 << clk->enable_bit;