summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/io.h
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2014-06-23 15:36:44 -0700
committerYork Sun <yorksun@freescale.com>2014-07-22 16:25:54 -0700
commit8340e7ac86ad3c59956e8f0bd627b741e5209439 (patch)
tree0460d0395f63b1cee89ae8dfe5479ace02bb5c50 /arch/arm/include/asm/io.h
parent6666017f44e39ec0385e3c7736b8c9af46cf4f08 (diff)
downloadtalos-obmc-uboot-8340e7ac86ad3c59956e8f0bd627b741e5209439.tar.gz
talos-obmc-uboot-8340e7ac86ad3c59956e8f0bd627b741e5209439.zip
driver/ddr: Fix DDR4 driver for ARM
Previously the driver was only tested on Power SoCs. Different barrier instructions are needed for ARM SoCs. Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/arm/include/asm/io.h')
-rw-r--r--arch/arm/include/asm/io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
index 214f3ea51f..6d18eb330a 100644
--- a/arch/arm/include/asm/io.h
+++ b/arch/arm/include/asm/io.h
@@ -136,6 +136,7 @@ extern inline void __raw_readsl(unsigned long addr, void *data, int longlen)
* TODO: The kernel offers some more advanced versions of barriers, it might
* have some advantages to use them instead of the simple one here.
*/
+#define mb() asm volatile("dsb sy" : : : "memory")
#define dmb() __asm__ __volatile__ ("" : : : "memory")
#define __iormb() dmb()
#define __iowmb() dmb()
OpenPOWER on IntegriCloud