Skip to content

Commit

Permalink
IXP4xx: Fix LL debugging on little-endian CPU.
Browse files Browse the repository at this point in the history
IXP4xx only needs +3 offset for UART registers when running in big-endian mode.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
  • Loading branch information
Krzysztof Hałasa committed May 27, 2010
1 parent 59c2901 commit 42ea573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-ixp4xx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42ea573

Please sign in to comment.