aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Redfearn <[email protected]>2017-01-23 14:08:13 +0000
committerRalf Baechle <[email protected]>2017-01-25 02:51:12 +0100
commita3078e593b74fe196e69f122f03ff0b32f652c53 (patch)
tree26a1dc7d612c296fc82ecf22c3a7a31b07f6b4ed
parente7093053f7a5ab91241e41df273f0e34552a3a22 (diff)
MIPS: Generic: Fix big endian CPUs on generic machine
Big endian CPUs require SWAP_IO_SPACE enabled to swap accesses to little endian peripherals. Without this patch, big endian kernels fail to communicate with little endian periperals, such as PCI devices, on QEMU and FPGA based platforms. Signed-off-by: Matt Redfearn <[email protected]> Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support") Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/15105/ Signed-off-by: Ralf Baechle <[email protected]>
-rw-r--r--arch/mips/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index ffd2f67b1aa2..b969522feb97 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -97,6 +97,7 @@ config MIPS_GENERIC
select PCI_DRIVERS_GENERIC
select PINCTRL
select SMP_UP if SMP
+ select SWAP_IO_SPACE
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_CPU_MIPS32_R2
select SYS_HAS_CPU_MIPS32_R6