diff options
author | Anantha Idapalapati <aidapalapati@nvidia.com> | 2011-02-23 12:25:40 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-23 16:41:44 -0800 |
commit | b57246aa5c4921a5fc789e4adc4ef0aa9ce375ed (patch) | |
tree | d7878519cf2fe880325abbb7184c68a26b607fdc /arch/arm/mach-tegra/board-ventana.c | |
parent | 8abdfee72b3d9db241101ea10ef60a81ebb97843 (diff) |
tegra bluesleep: configuring the GPIOs as wakeup.
correctly configuring the GPIOs used by bluesleep driver.
Bug 791669, 773186
Change-Id: If81c3dbf2e2e36f00033ff8a93bd693050d9d057
Reviewed-on: http://git-master/r/20526
Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index 4bf15a6b8919..ee213cb7b929 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -201,7 +201,7 @@ static noinline void __init tegra_setup_bluesleep(void) res[2].name = "host_wake"; res[2].start = gpio_to_irq(TEGRA_GPIO_PU6); res[2].end = gpio_to_irq(TEGRA_GPIO_PU6); - res[2].flags = IORESOURCE_IRQ; + res[2].flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE; if (platform_device_add_resources(pdev, res, 3)) { pr_err("unable to add resources to bluesleep device\n"); @@ -212,6 +212,10 @@ static noinline void __init tegra_setup_bluesleep(void) pr_err("unable to add bluesleep device\n"); goto err_free_res; } + + tegra_gpio_enable(TEGRA_GPIO_PU6); + tegra_gpio_enable(TEGRA_GPIO_PU1); + return; err_free_res: |