summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler.c
diff options
context:
space:
mode:
authorShridhar Rasal <srasal@nvidia.com>2012-03-07 15:41:11 +0530
committerVarun Colbert <vcolbert@nvidia.com>2012-03-09 11:47:12 -0800
commit81f8de14cc494f665d380e4f7f74803b42cfc9e8 (patch)
tree2f179a79ea44b89a4d0c631df136a13b681bc3a0 /arch/arm/mach-tegra/board-whistler.c
parent103e9ab9ad42da8023f0199b2207b39c729ea9df (diff)
arm: tegra: whistler: select uart debug address
Added mechanism to select the uart debug channel base address through variable so that board file can directly change this. bug 907612 Reviewed-on: http://git-master/r/34494 Change-Id: I9f9dbeaf81d5b62708d01fddd6e27223dc2dd361 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/88279 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler.c')
-rw-r--r--arch/arm/mach-tegra/board-whistler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c
index f38bb2db8c82..47c3cd53cf36 100644
--- a/arch/arm/mach-tegra/board-whistler.c
+++ b/arch/arm/mach-tegra/board-whistler.c
@@ -136,6 +136,8 @@ static void __init uart_debug_init(void)
/* UARTB is the debug port. */
pr_info("Selecting UARTB as the debug console\n");
whistler_uart_devices[1] = &debug_uartb;
+ debug_uart_port_base = ((struct plat_serial8250_port *)(
+ debug_uartb_device.dev.platform_data))->mapbase;
debug_uart_clk = clk_get_sys("serial8250.0", "uartb");
/* Clock enable for the debug channel */
@@ -159,6 +161,8 @@ static void __init uart_debug_init(void)
/* UARTA is the debug port. */
pr_info("Selecting UARTA as the debug console\n");
whistler_uart_devices[0] = &debug_uarta;
+ debug_uart_port_base = ((struct plat_serial8250_port *)(
+ debug_uarta_device.dev.platform_data))->mapbase;
debug_uart_clk = clk_get_sys("serial8250.0", "uarta");
/* Clock enable for the debug channel */