diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-01 18:22:54 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-01 18:22:54 +0000 |
commit | d7931d9f7ab9de9158c6905caae979999134ad4d (patch) | |
tree | 3903d96bfea61a4c66b11f95535928b4cb991327 /arch/arm/mach-dove/include/mach/debug-macro.S | |
parent | fb3704663058ebb8ec05236f9c984b702550bac5 (diff) | |
parent | da43243e765908d2ce6d22b2be995edf3218457d (diff) |
Merge branch 'for-rmk' of git://git.marvell.com/orion into devel-stable
Diffstat (limited to 'arch/arm/mach-dove/include/mach/debug-macro.S')
-rw-r--r-- | arch/arm/mach-dove/include/mach/debug-macro.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-dove/include/mach/debug-macro.S b/arch/arm/mach-dove/include/mach/debug-macro.S new file mode 100644 index 00000000000..9b89ec7d304 --- /dev/null +++ b/arch/arm/mach-dove/include/mach/debug-macro.S @@ -0,0 +1,20 @@ +/* + * arch/arm/mach-dove/include/mach/debug-macro.S + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include <mach/bridge-regs.h> + + .macro addruart,rx + mrc p15, 0, \rx, c1, c0 + tst \rx, #1 @ MMU enabled? + ldreq \rx, =DOVE_SB_REGS_PHYS_BASE + ldrne \rx, =DOVE_SB_REGS_VIRT_BASE + orr \rx, \rx, #0x00012000 + .endm + +#define UART_SHIFT 2 +#include <asm/hardware/debug-8250.S> |