summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach/io_dpd.h
diff options
context:
space:
mode:
authorBitan Biswas <bbiswas@nvidia.com>2011-12-30 18:10:36 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-01-04 11:44:36 +0530
commit8de2ce3de0a3463516c30a6d6891d6716218e819 (patch)
tree03d161e5630f07be16caf98b358de789e018e185 /arch/arm/mach-tegra/include/mach/io_dpd.h
parentd42874773d71b8f71225adba714f6d12ccacd31f (diff)
arm: tegra: power: io dpd APIs defined
Defined IO deep power down(DPD) APIs for tegra drivers - tegra_io_dpd_get - returns dpd handle tegra_io_dpd_enable - enable driver dpd tegra_io_dpd_disable - disables driver dpd bug 919993 Change-Id: I45976b41dca0e3e9266ace86393ef4db8b20c97b Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: http://git-master/r/72737 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/io_dpd.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/io_dpd.h25
1 files changed, 25 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 000000000000..16385b463d77
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/io_dpd.h
@@ -0,0 +1,25 @@
+/*
+ * arch/arm/mach-tegra/include/mach/io_dpd.h
+ *
+ * Copyright (C) 2012 NVIDIA Corporation.
+ *
+ * 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_TEGRA_IO_DPD_H
+#define __MACH_TEGRA_IO_DPD_H
+
+/* Tegra io dpd APIs */
+struct tegra_io_dpd *tegra_io_dpd_get(struct device *dev); /* get handle */
+void tegra_io_dpd_enable(struct tegra_io_dpd *hnd); /* enable dpd */
+void tegra_io_dpd_disable(struct tegra_io_dpd *hnd); /* disable dpd */
+
+#endif /* end __MACH_TEGRA_IO_DPD_H */