ARM: tegra: pluto: populate plama-regen regulators
Laxman Dewangan [Tue, 11 Sep 2012 08:25:57 +0000 (13:25 +0530)]
Populate Palma's REGEN1 and REGEN2 regulators.

Change-Id: Id1e2cdda5af783585b81fb443b7c15d890523d63
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/131332
Reviewed-by: Automatic_Commit_Validation_User

arch/arm/mach-tegra/board-pluto-power.c

index b1c41b8..b7a8a2f 100644 (file)
@@ -87,7 +87,6 @@ static struct regulator_consumer_supply palmas_smps8_supply[] = {
        REGULATOR_SUPPLY("vdd_sim1b_1v8", NULL),
        REGULATOR_SUPPLY("dvdd_audio", NULL),
        REGULATOR_SUPPLY("avdd_audio", NULL),
-       REGULATOR_SUPPLY("vdd_mic", NULL),
        REGULATOR_SUPPLY("vdd_com_1v8", NULL),
        REGULATOR_SUPPLY("vdd_ts_1v8", NULL),
        REGULATOR_SUPPLY("avdd_pll_bb", NULL),
@@ -178,6 +177,14 @@ static struct regulator_consumer_supply palmas_ldousb_supply[] = {
 
 };
 
+static struct regulator_consumer_supply palmas_regen1_supply[] = {
+       REGULATOR_SUPPLY("mic_ventral", NULL),
+};
+
+static struct regulator_consumer_supply palmas_regen2_supply[] = {
+       REGULATOR_SUPPLY("vdd_mic", NULL),
+};
+
 #define PALMAS_PDATA_INIT(_name, _minmv, _maxmv, _supply_reg, _always_on, \
        _boot_on, _apply_uv)                                            \
        static struct regulator_init_data reg_idata_##_name = {         \
@@ -218,6 +225,8 @@ PALMAS_PDATA_INIT(ldo8, 1150,  1150, NULL, 1, 1, 1);
 PALMAS_PDATA_INIT(ldo9, 1800,  3300, palmas_rails(smps9), 0, 0, 1);
 PALMAS_PDATA_INIT(ldoln, 2700, 2700, NULL, 0, 0, 1);
 PALMAS_PDATA_INIT(ldousb, 3300,  3300, NULL, 0, 0, 1);
+PALMAS_PDATA_INIT(regen1, 4300,  4300, NULL, 0, 0, 0);
+PALMAS_PDATA_INIT(regen2, 4300,  4300, palmas_rails(smps8), 0, 0, 0);
 
 #define PALMAS_REG_PDATA(_sname) &reg_idata_##_sname
 
@@ -243,8 +252,8 @@ static struct regulator_init_data *pluto_reg_data[] = {
        PALMAS_REG_PDATA(ldo9),
        PALMAS_REG_PDATA(ldoln),
        PALMAS_REG_PDATA(ldousb),
-       NULL,
-       NULL,
+       PALMAS_REG_PDATA(regen1),
+       PALMAS_REG_PDATA(regen2),
        NULL,
        NULL,
        NULL,