summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorChao Fu <B44548@freescale.com>2013-12-13 13:39:07 +0800
committerTom Rini <trini@ti.com>2014-06-19 11:18:42 -0400
commitf1329c900374f9efd6a27658dbebb104648f1a06 (patch)
treebae16437d1964345d720fa91231dca269f04d304 /arch/m68k
parent5744e5343062e1e8a6dc05c635053c0c409b4cbf (diff)
downloadu-boot-imx-f1329c900374f9efd6a27658dbebb104648f1a06.zip
u-boot-imx-f1329c900374f9efd6a27658dbebb104648f1a06.tar.gz
u-boot-imx-f1329c900374f9efd6a27658dbebb104648f1a06.tar.bz2
m68k:correct io macros about endian
M68k is big endian cpu ,so use be_out and be_in in big endian. Signed-off-by: Chao Fu <b44548@freescale.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/m68k/include/asm/io.h b/arch/m68k/include/asm/io.h
index 5a87a9b..2d2a519 100644
--- a/arch/m68k/include/asm/io.h
+++ b/arch/m68k/include/asm/io.h
@@ -32,10 +32,10 @@
#define writew(b,addr) ((*(volatile u16 *) (addr)) = (b))
#define writel(b,addr) ((*(volatile u32 *) (addr)) = (b))
#else
-#define readw(addr) in_le16((volatile u16 *)(addr))
-#define readl(addr) in_le32((volatile u32 *)(addr))
-#define writew(b,addr) out_le16((volatile u16 *)(addr),(b))
-#define writel(b,addr) out_le32((volatile u32 *)(addr),(b))
+#define readw(addr) in_be16((volatile u16 *)(addr))
+#define readl(addr) in_be32((volatile u32 *)(addr))
+#define writew(b,addr) out_be16((volatile u16 *)(addr),(b))
+#define writel(b,addr) out_be32((volatile u32 *)(addr),(b))
#endif
/*