summaryrefslogtreecommitdiff
path: root/arch/microblaze/include
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-08-12 11:47:11 +0200
committerMichal Simek <monstr@monstr.eu>2010-10-12 16:51:34 +1000
commitb98cba0911c7d0c0486d600c2aa646395adf32f4 (patch)
treef57fa9258c56e9ec3246b3e6236c36f079aea0f7 /arch/microblaze/include
parentd69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d (diff)
downloadu-boot-imx-b98cba0911c7d0c0486d600c2aa646395adf32f4.zip
u-boot-imx-b98cba0911c7d0c0486d600c2aa646395adf32f4.tar.gz
u-boot-imx-b98cba0911c7d0c0486d600c2aa646395adf32f4.tar.bz2
microblaze: Support little-endian microblaze target
Microblaze little-endian toolchain should export __MICROBLAZEEL__. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r--arch/microblaze/include/asm/byteorder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/byteorder.h b/arch/microblaze/include/asm/byteorder.h
index a4a75b7..b2757a4 100644
--- a/arch/microblaze/include/asm/byteorder.h
+++ b/arch/microblaze/include/asm/byteorder.h
@@ -50,6 +50,10 @@ static __inline__ __u16 ___arch__swab16 (__u16 half_word)
#endif /* __GNUC__ */
+#ifdef __MICROBLAZEEL__
+#include <linux/byteorder/little_endian.h>
+#else
#include <linux/byteorder/big_endian.h>
+#endif
#endif /* __MICROBLAZE_BYTEORDER_H__ */