diff options
author | Tom Rini <trini@konsulko.com> | 2016-04-28 13:15:41 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-28 13:15:41 -0400 |
commit | 87ef76568c95b8d5e5f02b6f8628745a967dfc24 (patch) | |
tree | 7b877cb9ddf02c3bb8a6dbc1759e0e523b0e0fe9 /arch/arm | |
parent | 2489a7e9f3055da15a8a8a0e54babf29ff5f6f14 (diff) | |
parent | ad14166426ab8ca40424ede741d27fdcfb4fc2c6 (diff) |
Merge branch 'master' of http://git.denx.de/u-boot-sunxi
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-sunxi/dram_helpers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-sunxi/dram_helpers.c b/arch/arm/mach-sunxi/dram_helpers.c index 50318d2eb6..e0c823a4dd 100644 --- a/arch/arm/mach-sunxi/dram_helpers.c +++ b/arch/arm/mach-sunxi/dram_helpers.c @@ -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); |