summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana.c
diff options
context:
space:
mode:
authorRaj Jayaraman <rjayaraman@nvidia.com>2010-12-10 15:39:44 -0800
committerBharat Nihalani <bnihalani@nvidia.com>2010-12-12 21:50:42 -0800
commit3f8643777020580015f71f59c25b07aad43e0103 (patch)
tree9b02d52cccfe98f9f6559e4a81e356dcc2957f1b /arch/arm/mach-tegra/board-ventana.c
parent251ecf6189a1aa2a37ecd0d4e07eefd3ce99ab80 (diff)
[ARM] tegra: ventana: Add gps support.
Bug 696035 Change-Id: Iafb02b1d4e6a8784e85cf7a48b1c674b71b4eb15 Reviewed-on: http://git-master/r/12640 Tested-by: Rajkumar Jayaraman <rjayaraman@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c
index 2f22bea260d9..5bd7dff1f33b 100644
--- a/arch/arm/mach-tegra/board-ventana.c
+++ b/arch/arm/mach-tegra/board-ventana.c
@@ -315,6 +315,7 @@ static struct platform_device *ventana_devices[] __initdata = {
&tegra_otg_device,
&androidusb_device,
&debug_uart,
+ &tegra_uartb_device,
&tegra_uartc_device,
&pmu_device,
&tegra_udc_device,
@@ -427,6 +428,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)
{
char serial[20];
@@ -449,6 +462,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();