summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-30 18:29:25 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-07-31 03:49:33 -0700
commit3c9339606b835e21b9835724f5f19e1e473076b6 (patch)
treeb1531727d50257fbd025cb82bd10d07c8ec0d452 /drivers/regulator
parent2c752ad14af6316048bf8f06a170445f8e5f01a4 (diff)
regulator: tps65090: align driver with mainline
Align driver with mainline. This is based on mainline change 452534e50780697a7e1d3cf87cdfdd2b5a0d3c6b ------------------ regulator: Add TPS65090 regulator driver Add TPS65090 regulator driver TPS65090 PMIC from TI consists of 3 step down converters, 2 always on LDOs and 7 current limited load switches. The output voltages are ON/OFF controllable and are meant to supply power to the components on target board. Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> ----------------- Change-Id: I2aeacc948e2aa15aedd73c704787eef8ace9d336 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/119321 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/Kconfig13
-rw-r--r--drivers/regulator/tps65090-regulator.c33
2 files changed, 22 insertions, 24 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 5186ecb98767..88d36153ec70 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -347,6 +347,13 @@ config REGULATOR_TPS6586X
help
This driver supports TPS6586X voltage regulator chips.
+config REGULATOR_TPS65090
+ tristate "TI TPS65090 Power regulator"
+ depends on MFD_TPS65090
+ help
+ This driver provides support for the voltage regulators on the
+ TI TPS65090 PMIC.
+
config REGULATOR_TPS6524X
tristate "TI TPS6524X Power regulators"
depends on SPI
@@ -397,12 +404,6 @@ config REGULATOR_TPS6591X
help
This driver supports TPS6591X voltage regulator chips.
-config REGULATOR_TPS65090
- tristate "TI TPS65090 Power regulators"
- depends on MFD_TPS65090
- help
- This driver supports TPS65090 voltage regulator chips.
-
config REGULATOR_TPS80031
tristate "TI TPS80031 Power regulators"
depends on MFD_TPS80031
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c
index 8249a4b7ded2..0dee06d826d3 100644
--- a/drivers/regulator/tps65090-regulator.c
+++ b/drivers/regulator/tps65090-regulator.c
@@ -1,24 +1,19 @@
/*
- * drivers/regulator/tps65090-regulator.c
- *
* Regulator driver for tps65090 power management chip.
*
- * Copyright (C) 2012 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
+ * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
+
+ * 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#include <linux/module.h>
@@ -45,11 +40,11 @@ struct tps65090_regulator {
struct device *dev;
};
-
static inline struct device *to_tps65090_dev(struct regulator_dev *rdev)
{
return rdev_get_dev(rdev)->parent->parent;
}
+
static int tps65090_reg_is_enabled(struct regulator_dev *rdev)
{
struct tps65090_regulator *ri = rdev_get_drvdata(rdev);
@@ -125,6 +120,7 @@ static struct tps65090_regulator TPS65090_regulator[] = {
tps65090_REG(FET6, 20, 0, tps65090_ops),
tps65090_REG(FET7, 21, 0, tps65090_ops),
};
+
static inline struct tps65090_regulator *find_regulator_info(int id)
{
struct tps65090_regulator *ri;
@@ -137,6 +133,7 @@ static inline struct tps65090_regulator *find_regulator_info(int id)
}
return NULL;
}
+
static int __devinit tps65090_regulator_probe(struct platform_device *pdev)
{
struct tps65090_regulator *ri = NULL;
@@ -196,5 +193,5 @@ static void __exit tps65090_regulator_exit(void)
module_exit(tps65090_regulator_exit);
MODULE_DESCRIPTION("tps65090 regulator driver");
-MODULE_ALIAS("platform:tps65090-regulator");
-MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Venu Byravarasu <vbyravarasu@nvidia.com>");
+MODULE_LICENSE("GPL v2");