Skip to content

Commit 67bdb28

Browse files
committed
ARM: sirf: move debug-macro.S to include/debug/sirf.S
The new style ll_debug implementation for multiplatform requires the platform glue to be in include/debug, so let's move it there to separate the debugging logic from the platform code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Barry Song <Baohua.Song@csr.com>
1 parent 630be7e commit 67bdb28

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ config DEBUG_LL_INCLUDE
592592
default "debug/mvebu.S" if DEBUG_MVEBU_UART
593593
default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
594594
default "debug/picoxcell.S" if DEBUG_PICOXCELL_UART
595+
default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
595596
default "debug/socfpga.S" if DEBUG_SOCFPGA_UART
596597
default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1
597598
default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \

arch/arm/mach-prima2/include/mach/debug-macro.S renamed to arch/arm/include/debug/sirf.S

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
* Licensed under GPLv2 or later.
77
*/
88

9-
#include <mach/hardware.h>
10-
#include <mach/uart.h>
9+
#if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1)
10+
#define SIRFSOC_UART1_PA_BASE 0xb0060000
11+
#elif defined(CONFIG_DEBUG_SIRFMARCO_UART1)
12+
#define SIRFSOC_UART1_PA_BASE 0xcc060000
13+
#else
14+
#define SIRFSOC_UART1_PA_BASE 0
15+
#endif
16+
17+
#define SIRFSOC_UART1_VA_BASE 0xFEC60000
18+
19+
#define SIRFSOC_UART_TXFIFO_STATUS 0x0114
20+
#define SIRFSOC_UART_TXFIFO_DATA 0x0118
21+
22+
#define SIRFSOC_UART1_TXFIFO_FULL (1 << 5)
23+
#define SIRFSOC_UART1_TXFIFO_EMPTY (1 << 6)
1124

1225
.macro addruart, rp, rv, tmp
1326
ldr \rp, =SIRFSOC_UART1_PA_BASE @ physical

‎arch/arm/mach-prima2/lluart.c‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010
#include <asm/page.h>
1111
#include <asm/mach/map.h>
1212
#include <mach/map.h>
13-
#include <mach/uart.h>
13+
14+
#if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1)
15+
#define SIRFSOC_UART1_PA_BASE 0xb0060000
16+
#elif defined(CONFIG_DEBUG_SIRFMARCO_UART1)
17+
#define SIRFSOC_UART1_PA_BASE 0xcc060000
18+
#else
19+
#define SIRFSOC_UART1_PA_BASE 0
20+
#endif
21+
22+
#define SIRFSOC_UART1_VA_BASE SIRFSOC_VA(0x060000)
23+
#define SIRFSOC_UART1_SIZE SZ_4K
1424

1525
void __init sirfsoc_map_lluart(void)
1626
{

0 commit comments

Comments
 (0)