summaryrefslogtreecommitdiff
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2013-07-29 18:12:26 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:39:16 -0700
commit64236979b273f773ba4fd90146767360904115f1 (patch)
tree1d8b4cf54ae35ef2431070593fd086a6953f3d24 /include/linux/regulator
parentb6908d3175aeeda8ad3d07cb7d5ef27944857c90 (diff)
ARM: tegra: power: Add DFLL bypass regulator driver
In addition to its main function - automatic voltage scaling, Tegra DFLL can be used in bypass mode to control voltage by s/w. This commit introduced a simple linear voltage regulator as a wrapper around DFLL bypass interfaces. Bug 1310396 Change-Id: I18430b8125de6b6e84d7eee91f2f887d68d96fb5 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/257342 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/tegra-dfll-bypass-regulator.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/regulator/tegra-dfll-bypass-regulator.h b/include/linux/regulator/tegra-dfll-bypass-regulator.h
new file mode 100644
index 000000000000..fa159595793e
--- /dev/null
+++ b/include/linux/regulator/tegra-dfll-bypass-regulator.h
@@ -0,0 +1,29 @@
+/*
+ *
+ * Copyright (c) 2013 NVIDIA CORPORATION. All rights reserved.
+ *
+ * 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 __LINUX_TEGRA_DFLL_BYPASS_H
+#define __LINUX_TEGRA_DFLL_BYPASS_H
+
+struct tegra_dfll_bypass_platform_data {
+ struct regulator_init_data *reg_init_data;
+ unsigned int uV_step;
+ unsigned int linear_min_sel;
+ unsigned int n_voltages;
+ int (*set_bypass_sel)(void *dfll_data, unsigned int sel);
+ unsigned int (*get_bypass_sel)(void *dfll_data);
+ void *dfll_data;
+};
+
+#endif /* __LINUX_TEGRA_DFLL_BYPASS_H */