diff options
author | Raj Jayaraman <rjayaraman@nvidia.com> | 2011-02-11 01:13:54 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:07 -0800 |
commit | 2f9fd9756674eb7aa05e8fe6c6b8f102829fc483 (patch) | |
tree | 10e8a15bbc570afb6888864bd4eae9d0efa51478 /arch/arm/mach-tegra/board-ventana.c | |
parent | 947e58a14236a32c996bfb93cf0003e008310dc3 (diff) |
[ARM] tegra: ventana: Add gps support.
Bug 696035
Original-Change-Id: Iafb02b1d4e6a8784e85cf7a48b1c674b71b4eb15
Reviewed-on: http://git-master/r/12640
Tested-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: Refb27a8e730c8bb8837dde8233a798d36cd494cd
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index 45d06d5a3652..33eacbd1ba63 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -250,7 +250,8 @@ static struct platform_device tegra_camera = { static struct platform_device *ventana_devices[] __initdata = { &tegra_otg_device, &debug_uart, - &tegra_uart2_device, + &tegra_uartb_device, + &tegra_uartc_device, &pmu_device, &tegra_udc_device, &tegra_ehci2_device, @@ -362,6 +363,18 @@ void tegra_usb_otg_host_unregister(struct platform_device *pdev) platform_device_unregister(pdev); } +static int __init ventana_gps_init(void) +{ + struct clk *clk32 = clk_get_sys(NULL, "blink"); + if (!IS_ERR(clk32)) { + clk_set_rate(clk32,clk32->parent->rate); + clk_enable(clk32); + } + + tegra_gpio_enable(TEGRA_GPIO_PZ3); + return 0; +} + static void __init tegra_ventana_init(void) { tegra_common_init(); @@ -379,6 +392,7 @@ static void __init tegra_ventana_init(void) ventana_touch_init(); ventana_keys_init(); ventana_usb_init(); + ventana_gps_init(); ventana_panel_init(); ventana_sensors_init(); ventana_bt_rfkill(); |