summaryrefslogtreecommitdiff
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-05-12 23:05:28 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:43:12 -0800
commite54b4706e5804055a04d68a5615bb197e79a9f83 (patch)
tree4af8f8cb0fb881e0e268ad72778d6a306bb452ac /include/linux/regulator
parent9309b8bd830b2fdba2d15c39cdd744ad4daf0ba6 (diff)
regulator: tps6236x: Adding driver
Adding regulator driver for the device TPS6236x. bug 821295 Original-Change-Id: Ifed4044db33fa6867248fae000bddf6239cb9685 Reviewed-on: http://git-master/r/31386 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: R2e891c9fe81939803999acb9014622f82fa139b0
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/tps6236x-regulator.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/linux/regulator/tps6236x-regulator.h b/include/linux/regulator/tps6236x-regulator.h
new file mode 100644
index 000000000000..d06ace99ce1f
--- /dev/null
+++ b/include/linux/regulator/tps6236x-regulator.h
@@ -0,0 +1,48 @@
+/*
+ * include/linux/regulator/tps6236x.h
+ *
+ * Interface for regulator driver for TI TPS6236x Processor core supply
+ *
+ * Copyright (C) 2011 NVIDIA Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef __REGULATOR_TPS6236X_H
+#define __REGULATOR_TPS6236X_H
+
+#include <linux/regulator/machine.h>
+
+/*
+ * struct tps6236x_regulator_platform_data - tps6236x regulator platform data.
+ *
+ * @reg_init_data: The regulator init data.
+ * @internal_pd_enable: internal pull down enable or not.
+ * @vsel: Select the voltage id register.
+ * @init_uV: initial micro volts which need to be set.
+ * @init_enable: Enable or do not enable the rails during initialization.
+ * @init_apply: Init parameter applied or not.
+ */
+
+struct tps6236x_regulator_platform_data {
+ struct regulator_init_data reg_init_data;
+ int internal_pd_enable;
+ int vsel;
+ int init_uV;
+ unsigned init_apply:1;
+};
+
+#endif /* __REGULATOR_TPS6236X_H */