diff options
author | Rohit Vaswani <rvaswani@codeaurora.org> | 2013-10-17 17:15:35 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-29 07:06:21 -0400 |
commit | 3c8828f6a0cb3bf1bae04a98135da3c53e20c217 (patch) | |
tree | e2262f71c1827d92899d069389d1158fee4a5d38 | |
parent | c527c3b939cdb2e75777fe690e067b6e199c44fc (diff) |
ARM: 7860/1: debug: msm: Add DEBUG_LL support for ARCH_MSM8974
Add debug uart support for MSM8974. This patch adds a Kconfig
entry and the base address for the debug uart.
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/arm/include/debug/msm.S | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 8e9665d5fed3..a8f305b07f29 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -357,6 +357,15 @@ choice | |||
357 | Say Y here if you want the debug print routines to direct | 357 | Say Y here if you want the debug print routines to direct |
358 | their output to the serial port on MSM 8960 devices. | 358 | their output to the serial port on MSM 8960 devices. |
359 | 359 | ||
360 | config DEBUG_MSM8974_UART | ||
361 | bool "Kernel low-level debugging messages via MSM 8974 UART" | ||
362 | depends on ARCH_MSM8974 | ||
363 | select MSM_HAS_DEBUG_UART_HS | ||
364 | select DEBUG_MSM_UART | ||
365 | help | ||
366 | Say Y here if you want the debug print routines to direct | ||
367 | their output to the serial port on MSM 8974 devices. | ||
368 | |||
360 | config DEBUG_MVEBU_UART | 369 | config DEBUG_MVEBU_UART |
361 | bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)" | 370 | bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)" |
362 | depends on ARCH_MVEBU | 371 | depends on ARCH_MVEBU |
diff --git a/arch/arm/include/debug/msm.S b/arch/arm/include/debug/msm.S index 9166e1bc470e..9d653d475903 100644 --- a/arch/arm/include/debug/msm.S +++ b/arch/arm/include/debug/msm.S | |||
@@ -46,6 +46,11 @@ | |||
46 | #define MSM_DEBUG_UART_PHYS 0x16440000 | 46 | #define MSM_DEBUG_UART_PHYS 0x16440000 |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #ifdef CONFIG_DEBUG_MSM8974_UART | ||
50 | #define MSM_DEBUG_UART_BASE 0xFA71E000 | ||
51 | #define MSM_DEBUG_UART_PHYS 0xF991E000 | ||
52 | #endif | ||
53 | |||
49 | .macro addruart, rp, rv, tmp | 54 | .macro addruart, rp, rv, tmp |
50 | #ifdef MSM_DEBUG_UART_PHYS | 55 | #ifdef MSM_DEBUG_UART_PHYS |
51 | ldr \rp, =MSM_DEBUG_UART_PHYS | 56 | ldr \rp, =MSM_DEBUG_UART_PHYS |