diff options
author | Tony Prisk <linux@prisktech.co.nz> | 2012-12-27 18:09:18 -0500 |
---|---|---|
committer | Tony Prisk <linux@prisktech.co.nz> | 2013-01-11 21:47:38 -0500 |
commit | b61a27227562d0892aab44b40d0f3b381f91038f (patch) | |
tree | 138b868dec45c9c85835faeb2ed001017ad6e867 | |
parent | 859601e045d165a1f846088776a86006e1c360ad (diff) |
arm: vt8500: Convert debug-macro.S to be multiplatform friendly
This patch moves debug-macro.S from arm/mach-vt8500/include/mach to
arm/include/debug/vt8500.S to provide multiplatform support.
Minor style changes in code for readability.
Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
-rw-r--r-- | arch/arm/Kconfig.debug | 8 | ||||
-rw-r--r-- | arch/arm/include/debug/vt8500.S (renamed from arch/arm/mach-vt8500/include/mach/debug-macro.S) | 24 |
2 files changed, 23 insertions, 9 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 661030d6bc6c..bbb0a670cd1a 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -412,6 +412,13 @@ choice | |||
412 | of the tiles using the RS1 memory map, including all new A-class | 412 | of the tiles using the RS1 memory map, including all new A-class |
413 | core tiles, FPGA-based SMMs and software models. | 413 | core tiles, FPGA-based SMMs and software models. |
414 | 414 | ||
415 | config DEBUG_VT8500_UART0 | ||
416 | bool "Use UART0 on VIA/Wondermedia SoCs" | ||
417 | depends on ARCH_VT8500 | ||
418 | help | ||
419 | This option selects UART0 on VIA/Wondermedia System-on-a-chip | ||
420 | devices, including VT8500, WM8505, WM8650 and WM8850. | ||
421 | |||
415 | config DEBUG_LL_UART_NONE | 422 | config DEBUG_LL_UART_NONE |
416 | bool "No low-level debugging UART" | 423 | bool "No low-level debugging UART" |
417 | depends on !ARCH_MULTIPLATFORM | 424 | depends on !ARCH_MULTIPLATFORM |
@@ -506,6 +513,7 @@ config DEBUG_LL_INCLUDE | |||
506 | default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1 | 513 | default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1 |
507 | default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ | 514 | default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ |
508 | DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 | 515 | DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 |
516 | default "debug/vt8500.S" if DEBUG_VT8500_UART0 | ||
509 | default "debug/tegra.S" if DEBUG_TEGRA_UART | 517 | default "debug/tegra.S" if DEBUG_TEGRA_UART |
510 | default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 | 518 | default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1 |
511 | default "mach/debug-macro.S" | 519 | default "mach/debug-macro.S" |
diff --git a/arch/arm/mach-vt8500/include/mach/debug-macro.S b/arch/arm/include/debug/vt8500.S index ca292f29d4a3..0e0ca0869da7 100644 --- a/arch/arm/mach-vt8500/include/mach/debug-macro.S +++ b/arch/arm/include/debug/vt8500.S | |||
@@ -1,20 +1,24 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-vt8500/include/mach/debug-macro.S | 2 | * Debugging macro include header |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> | 4 | * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> |
5 | * | 5 | * Moved from arch/arm/mach-vt8500/include/mach/debug-macro.S |
6 | * Debugging macro include header | 6 | * Minor changes for readability. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | 11 | */ |
12 | */ | 12 | |
13 | #define DEBUG_LL_PHYS_BASE 0xD8000000 | ||
14 | #define DEBUG_LL_VIRT_BASE 0xF8000000 | ||
15 | #define DEBUG_LL_UART_OFFSET 0x00200000 | ||
13 | 16 | ||
17 | #if defined(CONFIG_DEBUG_VT8500_UART0) | ||
14 | .macro addruart, rp, rv, tmp | 18 | .macro addruart, rp, rv, tmp |
15 | mov \rp, #0x00200000 | 19 | mov \rp, #DEBUG_LL_UART_OFFSET |
16 | orr \rv, \rp, #0xf8000000 | 20 | orr \rv, \rp, #DEBUG_LL_VIRT_BASE |
17 | orr \rp, \rp, #0xd8000000 | 21 | orr \rp, \rp, #DEBUG_LL_PHYS_BASE |
18 | .endm | 22 | .endm |
19 | 23 | ||
20 | .macro senduart,rd,rx | 24 | .macro senduart,rd,rx |
@@ -29,3 +33,5 @@ | |||
29 | 33 | ||
30 | .macro waituart,rd,rx | 34 | .macro waituart,rd,rx |
31 | .endm | 35 | .endm |
36 | |||
37 | #endif | ||