diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-09-02 14:41:34 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-09-14 09:22:02 -0500 |
commit | bfd5af9940c665ec0148f6d280aab54736ffdbe7 (patch) | |
tree | c707b8c921e1e4e7aba0c3a742b2dc8c6110c2d1 /arch/arm/include | |
parent | fa04e4dbd3a0e68b9daf07a096db369b5a92f1bf (diff) |
ARM: mvebu: move debug macros to include/debug
Move mvebu debug-macro.S over to common debug macro directory.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/debug/mvebu.S | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/include/debug/mvebu.S b/arch/arm/include/debug/mvebu.S new file mode 100644 index 00000000000..865c6d02b33 --- /dev/null +++ b/arch/arm/include/debug/mvebu.S @@ -0,0 +1,25 @@ +/* + * Early serial output macro for Marvell SoC + * + * Copyright (C) 2012 Marvell + * + * Lior Amsalem <alior@marvell.com> + * Gregory Clement <gregory.clement@free-electrons.com> + * + * 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. +*/ + +#define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 +#define ARMADA_370_XP_REGS_VIRT_BASE 0xfeb00000 + + .macro addruart, rp, rv, tmp + ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE + ldr \rv, =ARMADA_370_XP_REGS_VIRT_BASE + orr \rp, \rp, #0x00012000 + orr \rv, \rv, #0x00012000 + .endm + +#define UART_SHIFT 2 +#include <asm/hardware/debug-8250.S> |