diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/mach-tegra/wakeups-t2.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/arm/mach-tegra/wakeups-t2.h')
-rw-r--r-- | arch/arm/mach-tegra/wakeups-t2.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/wakeups-t2.h b/arch/arm/mach-tegra/wakeups-t2.h new file mode 100644 index 00000000000..eb193c0aaf9 --- /dev/null +++ b/arch/arm/mach-tegra/wakeups-t2.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/wakeups-t2.h | ||
3 | * | ||
4 | * Declarations of Tegra 2 LP0 wakeup sources | ||
5 | * | ||
6 | * Copyright (c) 2010, NVIDIA Corporation. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
16 | * more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License along | ||
19 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
21 | */ | ||
22 | |||
23 | #ifndef __MACH_TEGRA_WAKEUPS_T2_H | ||
24 | #define __MACH_TEGRA_WAKEUPS_T2_H | ||
25 | |||
26 | #ifndef CONFIG_ARCH_TEGRA_2x_SOC | ||
27 | #error "Tegra 2 wakeup sources valid only for CONFIG_ARCH_TEGRA_2x_SOC" | ||
28 | #endif | ||
29 | |||
30 | int tegra_irq_to_wake(int irq); | ||
31 | int tegra_wake_to_irq(int wake); | ||
32 | |||
33 | #define TEGRA_WAKE_GPIO_PO5 (1 << 0) | ||
34 | #define TEGRA_WAKE_GPIO_PV3 (1 << 1) | ||
35 | #define TEGRA_WAKE_GPIO_PL1 (1 << 2) | ||
36 | #define TEGRA_WAKE_GPIO_PB6 (1 << 3) | ||
37 | #define TEGRA_WAKE_GPIO_PN7 (1 << 4) | ||
38 | #define TEGRA_WAKE_GPIO_PA0 (1 << 5) | ||
39 | #define TEGRA_WAKE_GPIO_PU5 (1 << 6) | ||
40 | #define TEGRA_WAKE_GPIO_PU6 (1 << 7) | ||
41 | #define TEGRA_WAKE_GPIO_PC7 (1 << 8) | ||
42 | #define TEGRA_WAKE_GPIO_PS2 (1 << 9) | ||
43 | #define TEGRA_WAKE_GPIO_PAA1 (1 << 10) | ||
44 | #define TEGRA_WAKE_GPIO_PW3 (1 << 11) | ||
45 | #define TEGRA_WAKE_GPIO_PW2 (1 << 12) | ||
46 | #define TEGRA_WAKE_GPIO_PY6 (1 << 13) | ||
47 | #define TEGRA_WAKE_GPIO_PV6 (1 << 14) | ||
48 | #define TEGRA_WAKE_GPIO_PJ7 (1 << 15) | ||
49 | #define TEGRA_WAKE_RTC_ALARM (1 << 16) | ||
50 | #define TEGRA_WAKE_KBC_EVENT (1 << 17) | ||
51 | #define TEGRA_WAKE_PWR_INT (1 << 18) | ||
52 | #define TEGRA_WAKE_USB1_VBUS (1 << 19) | ||
53 | #define TEGRA_WAKE_USB3_VBUS (1 << 20) | ||
54 | #define TEGRA_WAKE_USB1_ID (1 << 21) | ||
55 | #define TEGRA_WAKE_USB3_ID (1 << 22) | ||
56 | #define TEGRA_WAKE_GPIO_PI5 (1 << 23) | ||
57 | #define TEGRA_WAKE_GPIO_PV2 (1 << 24) | ||
58 | #define TEGRA_WAKE_GPIO_PS4 (1 << 25) | ||
59 | #define TEGRA_WAKE_GPIO_PS5 (1 << 26) | ||
60 | #define TEGRA_WAKE_GPIO_PS0 (1 << 27) | ||
61 | #define TEGRA_WAKE_GPIO_PQ6 (1 << 28) | ||
62 | #define TEGRA_WAKE_GPIO_PQ7 (1 << 29) | ||
63 | #define TEGRA_WAKE_GPIO_PN2 (1 << 30) | ||
64 | |||
65 | #endif | ||