mx31ads: Allow enable/disable of switchable supplies
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jan 2010 18:24:50 +0000 (18:24 +0000)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 5 Jan 2010 12:29:47 +0000 (13:29 +0100)
They will be automatically powered off at startup so users will
need to enable them for use.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx3/mx31ads.c

index 3e7bafa2ddbbf4fda5bb2e79dca81dda10e41c92..609d402cadbaa7c69a489e90c1f0b203ec146d1e 100644 (file)
@@ -302,6 +302,7 @@ static struct regulator_init_data ldo1_data = {
                .min_uV = 2800000,
                .max_uV = 2800000,
                .valid_modes_mask = REGULATOR_MODE_NORMAL,
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
                .apply_uV = 1,
        },
 };
@@ -322,6 +323,7 @@ static struct regulator_init_data ldo2_data = {
                .min_uV = 3300000,
                .max_uV = 3300000,
                .valid_modes_mask = REGULATOR_MODE_NORMAL,
+               .valid_ops_mask = REGULATOR_CHANGE_STATUS,
                .apply_uV = 1,
        },
        .num_consumer_supplies = ARRAY_SIZE(ldo2_consumers),