summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKrzysztof Hałasa <khc@pm.waw.pl>2010-03-16 22:11:59 +0100
committerKrzysztof Hałasa <khc@pm.waw.pl>2010-05-27 13:49:55 +0200
commit42ea573f872365b0797ddbcee2e1f1f48913f507 (patch)
treea4e0d91ea9272d9973a33a458adac545358b03b8 /arch
parent59c290176e0bf14085959124b8a9b55f6e831861 (diff)
downloadlinux-42ea573f872365b0797ddbcee2e1f1f48913f507.tar.gz
linux-42ea573f872365b0797ddbcee2e1f1f48913f507.tar.bz2
linux-42ea573f872365b0797ddbcee2e1f1f48913f507.zip
IXP4xx: Fix LL debugging on little-endian CPU.
IXP4xx only needs +3 offset for UART registers when running in big-endian mode. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ixp4xx/include/mach/debug-macro.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/debug-macro.S b/arch/arm/mach-ixp4xx/include/mach/debug-macro.S
index 893873eb2a0d..3fc66d6d00a0 100644
--- a/arch/arm/mach-ixp4xx/include/mach/debug-macro.S
+++ b/arch/arm/mach-ixp4xx/include/mach/debug-macro.S
@@ -16,8 +16,10 @@
moveq \rx, #0xc8000000
movne \rx, #0xff000000
orrne \rx, \rx, #0x00b00000
+#ifdef __ARMEB__
add \rx,\rx,#3 @ Uart regs are at off set of 3 if
@ byte writes used - Big Endian.
+#endif
.endm
#define UART_SHIFT 2