diff options
Diffstat (limited to 'arch/arm/mach-tegra/pm-irq.h')
-rw-r--r-- | arch/arm/mach-tegra/pm-irq.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm-irq.h b/arch/arm/mach-tegra/pm-irq.h new file mode 100644 index 00000000000..8e87b4bba24 --- /dev/null +++ b/arch/arm/mach-tegra/pm-irq.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Google, Inc. | ||
3 | * | ||
4 | * Author: | ||
5 | * Colin Cross <ccross@android.com> | ||
6 | * | ||
7 | * This software is licensed under the terms of the GNU General Public | ||
8 | * License version 2, as published by the Free Software Foundation, and | ||
9 | * may be copied, distributed, and modified under those terms. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef _MACH_TERA_PM_IRQ_H_ | ||
19 | #define _MACH_TERA_PM_IRQ_H_ | ||
20 | |||
21 | #ifdef CONFIG_PM_SLEEP | ||
22 | int tegra_pm_irq_set_wake(int irq, int enable); | ||
23 | int tegra_pm_irq_set_wake_type(int irq, int flow_type); | ||
24 | bool tegra_pm_irq_lp0_allowed(void); | ||
25 | int tegra_irq_to_wake(int irq); | ||
26 | int tegra_wake_to_irq(int wake); | ||
27 | #else | ||
28 | static inline int tegra_pm_irq_set_wake_type(int irq, int flow_type) | ||
29 | { | ||
30 | return 0; | ||
31 | } | ||
32 | #endif | ||
33 | #endif | ||