summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/debug/zynq.S
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-04-11 15:05:56 +0200
committerMichal Simek <michal.simek@xilinx.com>2014-05-20 16:17:13 +0200
commiteb28d0bb857f01ff972f8b359c962eef9ecf1b64 (patch)
tree89e5d5417a11dd5427283ac57e2bca3b7a10023b /arch/arm/include/debug/zynq.S
parent90a6695a2ac1b9db8e0f4bfec3156c22a722d9ba (diff)
downloadtalos-obmc-linux-eb28d0bb857f01ff972f8b359c962eef9ecf1b64.tar.gz
talos-obmc-linux-eb28d0bb857f01ff972f8b359c962eef9ecf1b64.zip
ARM: zynq: Enable big-endian
Enable ARCH_SUPPORTS_BIG_ENDIAN in Kconfig. zynq_secondary_trampoline is the first function that is called on secondary CPU. Reference: "ARM: mcpm: fix big endian issue in mcpm startup code" (sha1: 519ceb9fd10cd7e836d0aa97b2068cc9e97f463b) Fix early printk support. Based on: "ARM: pl01x debug code endian fix" (sha1: 76e3faf156fa95b6465e747d702b94faf67117fc) Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/include/debug/zynq.S')
-rw-r--r--arch/arm/include/debug/zynq.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/debug/zynq.S b/arch/arm/include/debug/zynq.S
index 3edfef7b34ae..bd13dedbdeff 100644
--- a/arch/arm/include/debug/zynq.S
+++ b/arch/arm/include/debug/zynq.S
@@ -43,12 +43,14 @@
.macro waituart,rd,rx
1001: ldr \rd, [\rx, #UART_SR_OFFSET]
+ARM_BE8( rev \rd, \rd )
tst \rd, #UART_SR_TXEMPTY
beq 1001b
.endm
.macro busyuart,rd,rx
1002: ldr \rd, [\rx, #UART_SR_OFFSET] @ get status register
+ARM_BE8( rev \rd, \rd )
tst \rd, #UART_SR_TXFULL @
bne 1002b @ wait if FIFO is full
.endm
OpenPOWER on IntegriCloud