aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl4030-core.c
diff options
context:
space:
mode:
authorJuha Keski-Saari <ext-juha.1.keski-saari@nokia.com>2009-12-11 05:12:15 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-13 13:21:59 -0500
commitab4abe056d8828341d2a7d6463b13eafaf210181 (patch)
treea38e751827567122136b5e978bb0b15a90b3bf47 /drivers/mfd/twl4030-core.c
parentbe26d664de1a6333156bd586a2f795271cfcf170 (diff)
mfd: Add all twl4030 regulators to the twl4030 mfd driver
Add all twl4030 regulators to the twl4030 mfd driver and twl4030_platform_data Signed-off-by: Juha Keski-Saari <ext-juha.1.keski-saari@nokia.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/twl4030-core.c')
-rw-r--r--drivers/mfd/twl4030-core.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c
index 334c86fccede..e4a5d489b8e7 100644
--- a/drivers/mfd/twl4030-core.c
+++ b/drivers/mfd/twl4030-core.c
@@ -625,11 +625,21 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
625 } 625 }
626 626
627 if (twl_has_regulator()) { 627 if (twl_has_regulator()) {
628 /*
629 child = add_regulator(TWL4030_REG_VPLL1, pdata->vpll1); 628 child = add_regulator(TWL4030_REG_VPLL1, pdata->vpll1);
630 if (IS_ERR(child)) 629 if (IS_ERR(child))
631 return PTR_ERR(child); 630 return PTR_ERR(child);
632 */ 631
632 child = add_regulator(TWL4030_REG_VIO, pdata->vio);
633 if (IS_ERR(child))
634 return PTR_ERR(child);
635
636 child = add_regulator(TWL4030_REG_VDD1, pdata->vdd1);
637 if (IS_ERR(child))
638 return PTR_ERR(child);
639
640 child = add_regulator(TWL4030_REG_VDD2, pdata->vdd2);
641 if (IS_ERR(child))
642 return PTR_ERR(child);
633 643
634 child = add_regulator(TWL4030_REG_VMMC1, pdata->vmmc1); 644 child = add_regulator(TWL4030_REG_VMMC1, pdata->vmmc1);
635 if (IS_ERR(child)) 645 if (IS_ERR(child))
@@ -645,6 +655,18 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
645 pdata->vaux2); 655 pdata->vaux2);
646 if (IS_ERR(child)) 656 if (IS_ERR(child))
647 return PTR_ERR(child); 657 return PTR_ERR(child);
658
659 child = add_regulator(TWL4030_REG_VINTANA1, pdata->vintana1);
660 if (IS_ERR(child))
661 return PTR_ERR(child);
662
663 child = add_regulator(TWL4030_REG_VINTANA2, pdata->vintana2);
664 if (IS_ERR(child))
665 return PTR_ERR(child);
666
667 child = add_regulator(TWL4030_REG_VINTDIG, pdata->vintdig);
668 if (IS_ERR(child))
669 return PTR_ERR(child);
648 } 670 }
649 671
650 /* maybe add LDOs that are omitted on cost-reduced parts */ 672 /* maybe add LDOs that are omitted on cost-reduced parts */