summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana.c
diff options
context:
space:
mode:
authorPradeep Goudagunta <pgoudagunta@nvidia.com>2011-03-28 23:28:20 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:46:15 -0800
commita1e173835b8a2885a3da0814beb9764afbe2f0eb (patch)
tree19fa9cd68eb140fc57a2409011ee34c94ebe6d0d /arch/arm/mach-tegra/board-ventana.c
parentc55e9e5f573cbaa84248e85f4f68c7bb6e306213 (diff)
ARM: tegra: ventana: enable debug_uart port hs/ls
enable debug_uart port as highspeed(ttyHS*) or lowspeed(ttyS*) according to kernel parameter debug_uartport. Bug 778978 Original-Change-Id: Icb56357f62ad8375933fb0fe5032b42a59346d79 Reviewed-on: http://git-master/r/24519 Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rfc20ac1e2328ef462ca145a630939376a710930f
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c
index 639ca7725b51..b2807081b0dc 100644
--- a/arch/arm/mach-tegra/board-ventana.c
+++ b/arch/arm/mach-tegra/board-ventana.c
@@ -269,7 +269,6 @@ static struct platform_device tegra_camera = {
};
static struct platform_device *ventana_devices[] __initdata = {
- &debug_uart,
&tegra_uartb_device,
&tegra_uartc_device,
&pmu_device,
@@ -440,6 +439,10 @@ static void __init tegra_ventana_init(void)
tegra_clk_init_from_table(ventana_clk_init_table);
ventana_pinmux_init();
ventana_i2c_init();
+ if (is_tegra_debug_uartport_hs() == true)
+ platform_device_register(&tegra_uartd_device);
+ else
+ platform_device_register(&debug_uart);
tegra_ehci2_device.dev.platform_data
= &ventana_ehci2_ulpi_platform_data;
platform_add_devices(ventana_devices, ARRAY_SIZE(ventana_devices));