summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2011-04-18 17:54:04 +0800
committerjason <jason@jason-ThinkPad-T61.(none)>2011-09-04 22:46:55 +0800
commit6752da6b2612c56e37bd8e9e176a7fedf4607bcc (patch)
tree26b35dfe08d53b54818e588e760f54d3a36d8f40 /arch/m68k
parentf73e7d67ed5accc945f4e4f24a7312826f87cab5 (diff)
ColdFire:Add mb for 5253 dram initialization
The dram initialization sequence should be in order. This patch add mb for the dram intialization code to make sure the compiler do not disorder the code. Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/io.h b/arch/m68k/include/asm/io.h
index 531f420336c..d86eaf95eac 100644
--- a/arch/m68k/include/asm/io.h
+++ b/arch/m68k/include/asm/io.h
@@ -81,6 +81,8 @@
#define outl(val, port) out_le32((u32 *)((port)+_IO_BASE), (val))
#endif
+#define mb() __asm__ __volatile__ ("" : : : "memory")
+
extern inline void _insb(volatile u8 * port, void *buf, int ns)
{
u8 *data = (u8 *) buf;