msm: zinc: Add low-level debugging UART support

Add the I/O map definitions and Kconfig options needed to
enable low-level debugging support (through earlyprintk)
on the MSMZINC platform.

Change-Id: Iacacc96f1a0d49314085a87ee3cc0905c09ebe9b
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
This commit is contained in:
Stepan Moskovchenko 2013-03-05 16:58:39 -08:00 committed by Stephen Boyd
parent f19e5d8547
commit 7fbcce47eb
3 changed files with 16 additions and 0 deletions

View File

@ -1216,6 +1216,14 @@ choice
help
Say Y here if you want the debug print routines to direct
their output to the serial port on MPQ8092 devices.
config DEBUG_MSMZINC_UART
bool "Kernel low-level debugging messages via MSMZINC UART"
depends on ARCH_MSMZINC
select MSM_HAS_DEBUG_UART_HS_V14
help
Say Y here if you want the debug print routines to direct
their output to the serial port on MSMZINC devices.
endchoice
choice

View File

@ -37,4 +37,9 @@
#define MSMZINC_IMEM_PHYS 0xFC42B000
#define MSMZINC_IMEM_SIZE SZ_4K
#ifdef CONFIG_DEBUG_MSMZINC_UART
#define MSM_DEBUG_UART_BASE IOMEM(0xFA71E000)
#define MSM_DEBUG_UART_PHYS 0xF991E000
#endif
#endif

View File

@ -340,6 +340,9 @@ static struct map_desc msm_zinc_io_desc[] __initdata = {
.length = MSM_SHARED_RAM_SIZE,
.type = MT_DEVICE,
},
#ifdef CONFIG_DEBUG_MSMZINC_UART
MSM_DEVICE(DEBUG_UART),
#endif
};
void __init msm_map_zinc_io(void)