summaryrefslogtreecommitdiff
path: root/include/configs/qemu-mips.h
diff options
context:
space:
mode:
authorStanislav Galabov <sgalabov@gmail.com>2016-02-17 15:23:30 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-21 01:25:50 +0200
commit713a9e15bba4a5b6582d5e85fef2f282782cbed7 (patch)
tree9b9dc3376902de8e888b6feed106eb8af0782044 /include/configs/qemu-mips.h
parentd92ea983b9dfc99063373c167dae6b7705bc552b (diff)
downloadu-boot-imx-713a9e15bba4a5b6582d5e85fef2f282782cbed7.zip
u-boot-imx-713a9e15bba4a5b6582d5e85fef2f282782cbed7.tar.gz
u-boot-imx-713a9e15bba4a5b6582d5e85fef2f282782cbed7.tar.bz2
Use CONFIG_IDE_SWAP_IO when running on big-endian MIPS (32 or 64-bit) in QEMU so that IDE transfers work properly
Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
Diffstat (limited to 'include/configs/qemu-mips.h')
-rw-r--r--include/configs/qemu-mips.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/qemu-mips.h b/include/configs/qemu-mips.h
index a7cd003..702967c 100644
--- a/include/configs/qemu-mips.h
+++ b/include/configs/qemu-mips.h
@@ -58,6 +58,10 @@
#define CONFIG_CMD_IDE
#define CONFIG_DOS_PARTITION
+#ifdef CONFIG_SYS_BIG_ENDIAN
+#define CONFIG_IDE_SWAP_IO
+#endif
+
#define CONFIG_SYS_IDE_MAXBUS 2
#define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0
#define CONFIG_SYS_ATA_IDE1_OFFSET 0x170