omap2: convert existing SDRC register users to use sdrc.h
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 May 2007 22:28:43 +0000 (16:28 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 25 May 2007 18:24:41 +0000 (11:24 -0700)
Convert files that use SDRC registers in mach-omap2/ to use sdrc.h
symbolic constants and sdrc_{read,write}_reg().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/memory.c
arch/arm/mach-omap2/pm.c

index e05534d..09b5293 100644 (file)
@@ -32,6 +32,7 @@
 #include "prcm-regs.h"
 #include "memory.h"
 #include "clock.h"
+#include "sdrc.h"
 
 #undef DEBUG
 
@@ -447,7 +448,8 @@ static long omap2_clk_round_rate(struct clk *clk, unsigned long rate)
  */
 static u32 omap2_dll_force_needed(void)
 {
-       u32 dll_state = SDRC_DLLA_CTRL;         /* dlla and dllb are a set */
+       /* dlla and dllb are a set */
+       u32 dll_state = sdrc_read_reg(SDRC_DLLA_CTRL);
 
        if ((dll_state & (1 << 2)) == (1 << 2))
                return 1;
Simple merge
Simple merge