summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana.c
diff options
context:
space:
mode:
authorAnantha Idapalapati <aidapalapati@nvidia.com>2011-02-23 12:25:40 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:12 -0800
commited30818749f16530a381a109710cec51af9fcb4e (patch)
tree33e24f349f54b020ab68310bcbeb0836af53822b /arch/arm/mach-tegra/board-ventana.c
parentb444af0306164e7d037f70817da45027b568a1f2 (diff)
tegra bluesleep: configuring the GPIOs as wakeup.
correctly configuring the GPIOs used by bluesleep driver. Bug 791669, 773186 Original-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> Rebase-Id: R5242bd9fc0660bac5376705b4212da69b574f8fb
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana.c6
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 c9bcae3faf62..ab5073c7ed55 100644
--- a/arch/arm/mach-tegra/board-ventana.c
+++ b/arch/arm/mach-tegra/board-ventana.c
@@ -157,7 +157,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");
@@ -168,6 +168,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: