diff options
Diffstat (limited to 'include/linux/system-wakeup.h')
| -rw-r--r-- | include/linux/system-wakeup.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/system-wakeup.h b/include/linux/system-wakeup.h new file mode 100644 index 00000000000..a9747fc2a1a --- /dev/null +++ b/include/linux/system-wakeup.h @@ -0,0 +1,33 @@ +/* + * PMC interface for NVIDIA SoCs Tegra + * + * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * + * Author: Laxman Dewangan <ldewangan@nvidia.com> + * + * 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 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 __LINUX_SYSTEM_WAKEUP_H__ +#define __LINUX_SYSTEM_WAKEUP_H__ + +#ifdef CONFIG_PM_SLEEP +extern int get_wakeup_reason_irq(void); +#else +static inline int get_wakeup_reason_irq(void) +{ + return -EINVAL; +} +#endif + +#endif /* __LINUX_SYSTEM_WAKEUP_H__ */ |
