blob: 10e00e9e513b6d90b87dbc613a6b8a366b0c1562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* Copyright (C) 2011 Google, Inc.
*
* Author:
* Colin Cross <ccross@android.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 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.
*
*/
#ifndef _MACH_TERA_PM_IRQ_H_
#define _MACH_TERA_PM_IRQ_H_
#ifdef CONFIG_PM_SLEEP
u64 tegra_read_pmc_wake_status(void);
int tegra_pm_irq_set_wake(int wake, int enable);
int tegra_pm_irq_set_wake_type(int wake, int flow_type);
bool tegra_pm_irq_lp0_allowed(void);
int tegra_gpio_to_wake(int gpio);
int tegra_irq_to_wake(int irq);
int tegra_wake_to_irq(int wake);
int tegra_disable_wake_source(int wake);
#else
static inline int tegra_pm_irq_set_wake_type(int wake, int flow_type)
{
return 0;
}
static inline int tegra_gpio_to_wake(int gpio)
{
return 0;
}
static inline int tegra_irq_to_wake(int irq)
{
return 0;
}
static inline int tegra_disable_wake_source(int wake)
{
return 0;
}
#endif
void tegra_set_usb_wake_source(void);
#endif
|