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
committerDan Willemsen <dwillemsen@nvidia.com>2012-03-24 02:15:05 -0700
commitd67bbe3d052e274bb87e0f29cb4f7a035d3f12d7 (patch)
tree347a83980bb33f747cdeec9b2dec829fff967834 /arch/arm/mach-tegra/board-whistler.c
parentdb10c664d0f7ed2cc9c77de61222508b348f7f9b (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> Rebase-Id: R2d5be6b2baf33a39469f07058696affe4e7f6c13
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 */