aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65910-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/tps65910-regulator.c')
-rw-r--r--drivers/regulator/tps65910-regulator.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index 793adda560c3..59c3770fa77d 100644
--- a/drivers/regulator/tps65910-regulator.c
+++ b/drivers/regulator/tps65910-regulator.c
@@ -38,6 +38,11 @@ static const unsigned int VIO_VSEL_table[] = {
38 38
39/* VSEL tables for TPS65910 specific LDOs and dcdc's */ 39/* VSEL tables for TPS65910 specific LDOs and dcdc's */
40 40
41/* supported VRTC voltages in microvolts */
42static const unsigned int VRTC_VSEL_table[] = {
43 1800000,
44};
45
41/* supported VDD3 voltages in microvolts */ 46/* supported VDD3 voltages in microvolts */
42static const unsigned int VDD3_VSEL_table[] = { 47static const unsigned int VDD3_VSEL_table[] = {
43 5000000, 48 5000000,
@@ -95,6 +100,8 @@ static struct tps_info tps65910_regs[] = {
95 { 100 {
96 .name = "vrtc", 101 .name = "vrtc",
97 .vin_name = "vcc7", 102 .vin_name = "vcc7",
103 .n_voltages = ARRAY_SIZE(VRTC_VSEL_table),
104 .voltage_table = VRTC_VSEL_table,
98 .enable_time_us = 2200, 105 .enable_time_us = 2200,
99 }, 106 },
100 { 107 {
@@ -1026,7 +1033,7 @@ static inline struct tps65910_board *tps65910_parse_dt_reg_data(
1026} 1033}
1027#endif 1034#endif
1028 1035
1029static __devinit int tps65910_probe(struct platform_device *pdev) 1036static int tps65910_probe(struct platform_device *pdev)
1030{ 1037{
1031 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); 1038 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent);
1032 struct regulator_config config = { }; 1039 struct regulator_config config = { };
@@ -1184,7 +1191,7 @@ err_unregister_regulator:
1184 return err; 1191 return err;
1185} 1192}
1186 1193
1187static int __devexit tps65910_remove(struct platform_device *pdev) 1194static int tps65910_remove(struct platform_device *pdev)
1188{ 1195{
1189 struct tps65910_reg *pmic = platform_get_drvdata(pdev); 1196 struct tps65910_reg *pmic = platform_get_drvdata(pdev);
1190 int i; 1197 int i;
@@ -1231,7 +1238,7 @@ static struct platform_driver tps65910_driver = {
1231 .owner = THIS_MODULE, 1238 .owner = THIS_MODULE,
1232 }, 1239 },
1233 .probe = tps65910_probe, 1240 .probe = tps65910_probe,
1234 .remove = __devexit_p(tps65910_remove), 1241 .remove = tps65910_remove,
1235 .shutdown = tps65910_shutdown, 1242 .shutdown = tps65910_shutdown,
1236}; 1243};
1237 1244