From: Krzysztof Hałasa Date: Tue, 16 Mar 2010 21:11:59 +0000 (+0100) Subject: IXP4xx: Fix LL debugging on little-endian CPU. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42ea573f872365b0797ddbcee2e1f1f48913f507;p=linux-beck.git 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 --- 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