diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/io_dpd.h')
| -rw-r--r-- | arch/arm/mach-tegra/include/mach/io_dpd.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/io_dpd.h b/arch/arm/mach-tegra/include/mach/io_dpd.h new file mode 100644 index 00000000000..8d153792b79 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/io_dpd.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-tegra/include/mach/io_dpd.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2012 NVIDIA Corporation. | ||
| 5 | * | ||
| 6 | * This software is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2, as published by the Free Software Foundation, and | ||
| 8 | * may be copied, distributed, and modified under those terms. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef __MACH_TEGRA_IO_DPD_H | ||
| 18 | #define __MACH_TEGRA_IO_DPD_H | ||
| 19 | |||
| 20 | /* Tegra io dpd APIs */ | ||
| 21 | #ifdef CONFIG_PM_SLEEP | ||
| 22 | struct tegra_io_dpd *tegra_io_dpd_get(struct device *dev); /* get handle */ | ||
| 23 | void tegra_io_dpd_enable(struct tegra_io_dpd *hnd); /* enable dpd */ | ||
| 24 | void tegra_io_dpd_disable(struct tegra_io_dpd *hnd); /* disable dpd */ | ||
| 25 | #else | ||
| 26 | static inline struct tegra_io_dpd *tegra_io_dpd_get(struct device *dev) | ||
| 27 | { | ||
| 28 | return NULL; | ||
| 29 | } | ||
| 30 | static inline void tegra_io_dpd_enable(struct tegra_io_dpd *hnd) | ||
| 31 | { | ||
| 32 | /* Do nothing */ | ||
| 33 | } | ||
| 34 | static inline void tegra_io_dpd_disable(struct tegra_io_dpd *hnd) | ||
| 35 | { | ||
| 36 | /* Do nothing */ | ||
| 37 | } | ||
| 38 | #endif | ||
| 39 | |||
| 40 | #endif /* end __MACH_TEGRA_IO_DPD_H */ | ||
