diff options
Diffstat (limited to 'arch/arm/include/debug/mvebu.S')
-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 000000000000..865c6d02b332 --- /dev/null +++ b/arch/arm/include/debug/mvebu.S | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * Early serial output macro for Marvell SoC | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Lior Amsalem <alior@marvell.com> | ||
7 | * Gregory Clement <gregory.clement@free-electrons.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 | ||
15 | #define ARMADA_370_XP_REGS_VIRT_BASE 0xfeb00000 | ||
16 | |||
17 | .macro addruart, rp, rv, tmp | ||
18 | ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE | ||
19 | ldr \rv, =ARMADA_370_XP_REGS_VIRT_BASE | ||
20 | orr \rp, \rp, #0x00012000 | ||
21 | orr \rv, \rv, #0x00012000 | ||
22 | .endm | ||
23 | |||
24 | #define UART_SHIFT 2 | ||
25 | #include <asm/hardware/debug-8250.S> | ||