aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorKrzysztof Hałasa <khc@pm.waw.pl>2010-03-16 17:11:59 -0400
committerKrzysztof Hałasa <khc@pm.waw.pl>2010-05-27 07:49:55 -0400
commit42ea573f872365b0797ddbcee2e1f1f48913f507 (patch)
treea4e0d91ea9272d9973a33a458adac545358b03b8 /arch/arm/mach-ixp4xx
parent59c290176e0bf14085959124b8a9b55f6e831861 (diff)
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/arm/mach-ixp4xx')
-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 @@
16 moveq \rx, #0xc8000000 16 moveq \rx, #0xc8000000
17 movne \rx, #0xff000000 17 movne \rx, #0xff000000
18 orrne \rx, \rx, #0x00b00000 18 orrne \rx, \rx, #0x00b00000
19#ifdef __ARMEB__
19 add \rx,\rx,#3 @ Uart regs are at off set of 3 if 20 add \rx,\rx,#3 @ Uart regs are at off set of 3 if
20 @ byte writes used - Big Endian. 21 @ byte writes used - Big Endian.
22#endif
21 .endm 23 .endm
22 24
23#define UART_SHIFT 2 25#define UART_SHIFT 2