diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2013-05-14 20:42:49 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:28:15 -0700 |
commit | 54ebd090401221703d34e3e34b2eb8c23ef683f7 (patch) | |
tree | d97e0c618a0616030d600226004bc4296389d346 /arch/arm/mach-tegra/board.h | |
parent | d43c3a61d0ed1e86cd12e915b0279c527e0fbd0b (diff) |
ARM: tegra: USB1 VBUS and ID ANY wake level support
This change enables wakeup from USB cable connect and disconnect
for both device(VBUS) and host(ID) cables.
- board platform data used to enable the implementation
- chip specific wakeups source file added with new API needed
to detect VBUS and ID cable connect state
- chip specific API exposed to return the USB1_VBUS and USB1_ID
wake indices
Moved dummy implementation of USB wake support APIs from chip-specific
source into common file
bug 1286802
bug 1314875
Change-Id: I59cfca82a907d33190a5bc92f33de5986fada43f
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/231918
(cherry picked from commit 75e8f1f218422013055c4fbcf96ceab059c933a7)
Reviewed-on: http://git-master/r/241033
(cherry picked from commit 3f65b627372c37b4726084bec1129b9b2dabfe4f)
Change-Id: Iae4db0cec2dbee6feef229b308b2b86340affd17
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/242383
(cherry picked from commit ba1bb5314fc5d877ab3bcd4e4530501e4f604dd4)
Reviewed-on: http://git-master/r/243438
(cherry picked from commit 7beaa748094e754c0bf7bd5f946c9a314949d2b9)
Reviewed-on: http://git-master/r/247106
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board.h')
-rw-r--r-- | arch/arm/mach-tegra/board.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/board.h b/arch/arm/mach-tegra/board.h index 7b8ba72c5521..43ee6dac3951 100644 --- a/arch/arm/mach-tegra/board.h +++ b/arch/arm/mach-tegra/board.h @@ -8,15 +8,17 @@ * Colin Cross <ccross@google.com> * Erik Gilling <konkers@google.com> * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __MACH_TEGRA_BOARD_H @@ -244,4 +246,7 @@ int tegra_get_cvb_alignment_uV(void); int tegra_soc_device_init(const char *machine); int get_pwr_i2c_clk_rate(void); bool is_pmic_wdt_disabled_at_boot(void); + +extern void tegra_set_usb_vbus_internal_wake(bool enable); +extern void tegra_set_usb_id_internal_wake(bool enable); #endif |