X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Farm%2Fmach-sunxi%2Fdram_helpers.c;h=95143d19ab50fa4f86c41888fad6ee0c9ae492dd;hb=4125bbcef6a998ce8580a1f5c53c8c93a56a125b;hp=e0c823a4dd632b3c815cdb10589577e071434235;hpb=bfb33f0bc45b9ee92ed2f85107cf20b9bfdf9f8a;p=u-boot diff --git a/arch/arm/mach-sunxi/dram_helpers.c b/arch/arm/mach-sunxi/dram_helpers.c index e0c823a4dd..95143d19ab 100644 --- a/arch/arm/mach-sunxi/dram_helpers.c +++ b/arch/arm/mach-sunxi/dram_helpers.c @@ -7,7 +7,7 @@ */ #include -#include +#include #include #include @@ -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);