]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/mach-sunxi/dram_helpers.c
ARM: Rework and correct barrier definitions
[karo-tx-uboot.git] / arch / arm / mach-sunxi / dram_helpers.c
index e0c823a4dd632b3c815cdb10589577e071434235..95143d19ab50fa4f86c41888fad6ee0c9ae492dd 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include <common.h>
-#include <asm/armv7.h>
+#include <asm/barriers.h>
 #include <asm/io.h>
 #include <asm/arch/dram.h>
 
@@ -32,7 +32,7 @@ bool mctl_mem_matches(u32 offset)
        /* Try to write different values to RAM at two addresses */
        writel(0, CONFIG_SYS_SDRAM_BASE);
        writel(0xaa55aa55, (ulong)CONFIG_SYS_SDRAM_BASE + offset);
-       DSB;
+       dsb();
        /* Check if the same value is actually observed when reading back */
        return readl(CONFIG_SYS_SDRAM_BASE) ==
               readl((ulong)CONFIG_SYS_SDRAM_BASE + offset);