diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2016-01-27 17:59:36 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-02-02 13:31:19 +0800 |
commit | 26e30c6489f4774492c168c7b953e575a16765f7 (patch) | |
tree | 7d90e155b70e0c3eb1a3269a20d12acb0151071a /arch/arm/mach-imx/headsmp.S | |
parent | c553138fbd1ee193a19101a36fb0814607ab4e7b (diff) | |
download | op-kernel-dev-26e30c6489f4774492c168c7b953e575a16765f7.zip op-kernel-dev-26e30c6489f4774492c168c7b953e575a16765f7.tar.gz |
ARM: imx: enable big endian mode
Enable ARM big-endian mode on mach-imx. This requires adding some
byte swapping in the debug functions (which otherwise hang forever)
and of course the secondary core bringup.
Tested (on top of 4.4) on i.MX6 HummingBoard quad-core (IMX6Q).
The patch is pretty much as suggested by Arnd Bergmann, thanks!
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/headsmp.S')
-rw-r--r-- | arch/arm/mach-imx/headsmp.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/headsmp.S b/arch/arm/mach-imx/headsmp.S index b5e9768..6c28d28 100644 --- a/arch/arm/mach-imx/headsmp.S +++ b/arch/arm/mach-imx/headsmp.S @@ -12,6 +12,7 @@ #include <linux/linkage.h> #include <linux/init.h> +#include <asm/assembler.h> diag_reg_offset: .word g_diag_reg - . @@ -25,6 +26,7 @@ diag_reg_offset: .endm ENTRY(v7_secondary_startup) +ARM_BE8(setend be) @ go BE8 if entered LE set_diag_reg b secondary_startup ENDPROC(v7_secondary_startup) |