diff options
author | Pradeep Goudagunta <pgoudagunta@nvidia.com> | 2011-03-23 23:16:12 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-03-24 17:53:12 -0700 |
commit | 954c40c24a53122b8db8bf0dff3af764a9374076 (patch) | |
tree | 4ee276d8a308ae06a21138f5fe137635f72fa480 /arch/arm/mach-tegra/board-whistler.c | |
parent | df3bc87db3c16ffe79b67146a6940e42fa719912 (diff) |
arm: tegra: use debug_uartport kernel parameter
Use debug_uartport kernel option to configure debug uart port as
high speed(ttyHS1) or low speed(ttyS0) according to odmdata(19:18).
Bug 803465
Change-Id: Ide9a74c358a42f25ddb3ca03f4d949dc053f59f4
Reviewed-on: http://git-master/r/24019
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler.c')
-rw-r--r-- | arch/arm/mach-tegra/board-whistler.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c index 748d6e50788e..de0ef59445fe 100644 --- a/arch/arm/mach-tegra/board-whistler.c +++ b/arch/arm/mach-tegra/board-whistler.c @@ -385,7 +385,6 @@ static struct platform_device tegra_camera = { static struct platform_device *whistler_devices[] __initdata = { &androidusb_device, - &debug_uart, &tegra_uartb_device, &tegra_uartc_device, &pmu_device, @@ -557,6 +556,10 @@ static void __init tegra_whistler_init(void) tegra_i2s_device1.dev.platform_data = &tegra_audio_pdata[0]; tegra_i2s_device2.dev.platform_data = &tegra_audio_pdata[1]; tegra_spdif_device.dev.platform_data = &tegra_spdif_pdata; + if (is_tegra_debug_uartport_hs() == true) + platform_device_register(&tegra_uarta_device); + else + platform_device_register(&debug_uart); platform_add_devices(whistler_devices, ARRAY_SIZE(whistler_devices)); tegra_das_device.dev.platform_data = &tegra_das_pdata; |