summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/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/powerpc/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/powerpc/include/asm/io.h')
-rw-r--r--arch/powerpc/include/asm/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h
index d8b7b974d4..a5257e9b62 100644
--- a/arch/powerpc/include/asm/io.h
+++ b/arch/powerpc/include/asm/io.h
@@ -123,6 +123,9 @@ static inline void isync(void)
#define iobarrier_r() eieio()
#define iobarrier_w() eieio()
+#define mb() sync()
+#define isb() isync()
+
/*
* Non ordered and non-swapping "raw" accessors
*/
OpenPOWER on IntegriCloud