|
@@ -7,6 +7,7 @@
|
|
|
*/
|
|
|
|
|
|
#include <common.h>
|
|
|
+#include <asm/armv7.h>
|
|
|
#include <asm/io.h>
|
|
|
#include <asm/arch/dram.h>
|
|
|
|
|
@@ -31,6 +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;
|
|
|
/* Check if the same value is actually observed when reading back */
|
|
|
return readl(CONFIG_SYS_SDRAM_BASE) ==
|
|
|
readl((ulong)CONFIG_SYS_SDRAM_BASE + offset);
|