ARM: vexpress: add big endian support
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 28 May 2013 20:34:50 +0000 (21:34 +0100)
committerVictor Kamensky <victor.kamensky@linaro.org>
Thu, 13 Mar 2014 21:48:32 +0000 (14:48 -0700)
Add support for the versatile express systems to boot big-endian.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
(cherry picked from commit 98dec91fa36a4a74f7c44dd2dfb000203656f4f4)

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
arch/arm/mach-vexpress/Kconfig
arch/arm/plat-versatile/headsmp.S

index dd3d5975a5c1b9cd1d1eeac01e636d387293d23e..39858ba03084d131fddb049ef00720c2c0b54286 100644 (file)
@@ -3,6 +3,7 @@ config ARCH_VEXPRESS
        select ARCH_HAS_CPUFREQ
        select ARCH_HAS_OPP
        select ARCH_REQUIRE_GPIOLIB
+       select ARCH_SUPPORTS_BIG_ENDIAN
        select ARM_AMBA
        select ARM_GIC
        select ARM_TIMER_SP804
index 2677bc3762d7ce418b4c116b709dadf0f8e53697..40f27e52de759aed3ab7d3f7e912bf4feab3a358 100644 (file)
@@ -10,6 +10,7 @@
  */
 #include <linux/linkage.h>
 #include <linux/init.h>
+#include <asm/assembler.h>
 
 /*
  * Realview/Versatile Express specific entry point for secondary CPUs.
@@ -17,6 +18,7 @@
  * until we're ready for them to initialise.
  */
 ENTRY(versatile_secondary_startup)
+ ARM_BE8(setend        be)
        mrc     p15, 0, r0, c0, c0, 5
        bic     r0, #0xff000000
        adr     r4, 1f