Commit 9f0727f5 authored by Mark Brown's avatar Mark Brown Committed by Sascha Hauer

mx31ads: Allow enable/disable of switchable supplies

They will be automatically powered off at startup so users will
need to enable them for use.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent f9ffaa9c
...@@ -302,6 +302,7 @@ static struct regulator_init_data ldo1_data = { ...@@ -302,6 +302,7 @@ static struct regulator_init_data ldo1_data = {
.min_uV = 2800000, .min_uV = 2800000,
.max_uV = 2800000, .max_uV = 2800000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
.apply_uV = 1, .apply_uV = 1,
}, },
}; };
...@@ -322,6 +323,7 @@ static struct regulator_init_data ldo2_data = { ...@@ -322,6 +323,7 @@ static struct regulator_init_data ldo2_data = {
.min_uV = 3300000, .min_uV = 3300000,
.max_uV = 3300000, .max_uV = 3300000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
.apply_uV = 1, .apply_uV = 1,
}, },
.num_consumer_supplies = ARRAY_SIZE(ldo2_consumers), .num_consumer_supplies = ARRAY_SIZE(ldo2_consumers),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment