diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2010-03-16 22:11:59 +0100 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2010-05-27 13:49:55 +0200 |
commit | 42ea573f872365b0797ddbcee2e1f1f48913f507 (patch) | |
tree | a4e0d91ea9272d9973a33a458adac545358b03b8 /arch/arm/mach-ixp4xx | |
parent | 59c290176e0bf14085959124b8a9b55f6e831861 (diff) | |
download | op-kernel-dev-42ea573f872365b0797ddbcee2e1f1f48913f507.zip op-kernel-dev-42ea573f872365b0797ddbcee2e1f1f48913f507.tar.gz |
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.S | 2 |
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 893873e..3fc66d6 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 |