diff options
author | Bengt Jonsson <bengt.g.jonsson@stericsson.com> | 2011-08-12 04:29:02 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-24 08:09:19 -0400 |
commit | 624e87c25133b30a748ddb97068b92ac07d9d524 (patch) | |
tree | 50f2421a9b6eeaca57d344015dabb0722863141e /drivers/mfd/db8500-prcmu.c | |
parent | 597045de35caaef68a11b6defbb618710e1a1e52 (diff) |
mfd: db8500-prcmu voltage domain consumers additions
This rectifies the device name of the MCDE voltage domain
regulator consumer and adds a number of other consumers to
the voltage domains.
Cc: Liam Girdwood <lrg@ti.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
-rw-r--r-- | drivers/mfd/db8500-prcmu.c | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 6fd4e2993520..91a5e8cce051 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c | |||
@@ -2199,7 +2199,42 @@ static struct regulator_consumer_supply db8500_vsmps2_consumers[] = { | |||
2199 | 2199 | ||
2200 | static struct regulator_consumer_supply db8500_b2r2_mcde_consumers[] = { | 2200 | static struct regulator_consumer_supply db8500_b2r2_mcde_consumers[] = { |
2201 | REGULATOR_SUPPLY("vsupply", "b2r2.0"), | 2201 | REGULATOR_SUPPLY("vsupply", "b2r2.0"), |
2202 | REGULATOR_SUPPLY("vsupply", "mcde.0"), | 2202 | REGULATOR_SUPPLY("vsupply", "mcde"), |
2203 | }; | ||
2204 | |||
2205 | /* SVA MMDSP regulator switch */ | ||
2206 | static struct regulator_consumer_supply db8500_svammdsp_consumers[] = { | ||
2207 | REGULATOR_SUPPLY("sva-mmdsp", "cm_control"), | ||
2208 | }; | ||
2209 | |||
2210 | /* SVA pipe regulator switch */ | ||
2211 | static struct regulator_consumer_supply db8500_svapipe_consumers[] = { | ||
2212 | REGULATOR_SUPPLY("sva-pipe", "cm_control"), | ||
2213 | }; | ||
2214 | |||
2215 | /* SIA MMDSP regulator switch */ | ||
2216 | static struct regulator_consumer_supply db8500_siammdsp_consumers[] = { | ||
2217 | REGULATOR_SUPPLY("sia-mmdsp", "cm_control"), | ||
2218 | }; | ||
2219 | |||
2220 | /* SIA pipe regulator switch */ | ||
2221 | static struct regulator_consumer_supply db8500_siapipe_consumers[] = { | ||
2222 | REGULATOR_SUPPLY("sia-pipe", "cm_control"), | ||
2223 | }; | ||
2224 | |||
2225 | static struct regulator_consumer_supply db8500_sga_consumers[] = { | ||
2226 | REGULATOR_SUPPLY("v-mali", NULL), | ||
2227 | }; | ||
2228 | |||
2229 | /* ESRAM1 and 2 regulator switch */ | ||
2230 | static struct regulator_consumer_supply db8500_esram12_consumers[] = { | ||
2231 | REGULATOR_SUPPLY("esram12", "cm_control"), | ||
2232 | }; | ||
2233 | |||
2234 | /* ESRAM3 and 4 regulator switch */ | ||
2235 | static struct regulator_consumer_supply db8500_esram34_consumers[] = { | ||
2236 | REGULATOR_SUPPLY("v-esram34", "mcde"), | ||
2237 | REGULATOR_SUPPLY("esram34", "cm_control"), | ||
2203 | }; | 2238 | }; |
2204 | 2239 | ||
2205 | static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | 2240 | static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { |
@@ -2261,6 +2296,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2261 | .name = "db8500-sva-mmdsp", | 2296 | .name = "db8500-sva-mmdsp", |
2262 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2297 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2263 | }, | 2298 | }, |
2299 | .consumer_supplies = db8500_svammdsp_consumers, | ||
2300 | .num_consumer_supplies = ARRAY_SIZE(db8500_svammdsp_consumers), | ||
2264 | }, | 2301 | }, |
2265 | [DB8500_REGULATOR_SWITCH_SVAMMDSPRET] = { | 2302 | [DB8500_REGULATOR_SWITCH_SVAMMDSPRET] = { |
2266 | .constraints = { | 2303 | .constraints = { |
@@ -2275,6 +2312,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2275 | .name = "db8500-sva-pipe", | 2312 | .name = "db8500-sva-pipe", |
2276 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2313 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2277 | }, | 2314 | }, |
2315 | .consumer_supplies = db8500_svapipe_consumers, | ||
2316 | .num_consumer_supplies = ARRAY_SIZE(db8500_svapipe_consumers), | ||
2278 | }, | 2317 | }, |
2279 | [DB8500_REGULATOR_SWITCH_SIAMMDSP] = { | 2318 | [DB8500_REGULATOR_SWITCH_SIAMMDSP] = { |
2280 | .supply_regulator = "db8500-vape", | 2319 | .supply_regulator = "db8500-vape", |
@@ -2282,6 +2321,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2282 | .name = "db8500-sia-mmdsp", | 2321 | .name = "db8500-sia-mmdsp", |
2283 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2322 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2284 | }, | 2323 | }, |
2324 | .consumer_supplies = db8500_siammdsp_consumers, | ||
2325 | .num_consumer_supplies = ARRAY_SIZE(db8500_siammdsp_consumers), | ||
2285 | }, | 2326 | }, |
2286 | [DB8500_REGULATOR_SWITCH_SIAMMDSPRET] = { | 2327 | [DB8500_REGULATOR_SWITCH_SIAMMDSPRET] = { |
2287 | .constraints = { | 2328 | .constraints = { |
@@ -2295,6 +2336,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2295 | .name = "db8500-sia-pipe", | 2336 | .name = "db8500-sia-pipe", |
2296 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2337 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2297 | }, | 2338 | }, |
2339 | .consumer_supplies = db8500_siapipe_consumers, | ||
2340 | .num_consumer_supplies = ARRAY_SIZE(db8500_siapipe_consumers), | ||
2298 | }, | 2341 | }, |
2299 | [DB8500_REGULATOR_SWITCH_SGA] = { | 2342 | [DB8500_REGULATOR_SWITCH_SGA] = { |
2300 | .supply_regulator = "db8500-vape", | 2343 | .supply_regulator = "db8500-vape", |
@@ -2302,6 +2345,9 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2302 | .name = "db8500-sga", | 2345 | .name = "db8500-sga", |
2303 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2346 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2304 | }, | 2347 | }, |
2348 | .consumer_supplies = db8500_sga_consumers, | ||
2349 | .num_consumer_supplies = ARRAY_SIZE(db8500_sga_consumers), | ||
2350 | |||
2305 | }, | 2351 | }, |
2306 | [DB8500_REGULATOR_SWITCH_B2R2_MCDE] = { | 2352 | [DB8500_REGULATOR_SWITCH_B2R2_MCDE] = { |
2307 | .supply_regulator = "db8500-vape", | 2353 | .supply_regulator = "db8500-vape", |
@@ -2318,6 +2364,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2318 | .name = "db8500-esram12", | 2364 | .name = "db8500-esram12", |
2319 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2365 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2320 | }, | 2366 | }, |
2367 | .consumer_supplies = db8500_esram12_consumers, | ||
2368 | .num_consumer_supplies = ARRAY_SIZE(db8500_esram12_consumers), | ||
2321 | }, | 2369 | }, |
2322 | [DB8500_REGULATOR_SWITCH_ESRAM12RET] = { | 2370 | [DB8500_REGULATOR_SWITCH_ESRAM12RET] = { |
2323 | .constraints = { | 2371 | .constraints = { |
@@ -2331,6 +2379,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2331 | .name = "db8500-esram34", | 2379 | .name = "db8500-esram34", |
2332 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2380 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
2333 | }, | 2381 | }, |
2382 | .consumer_supplies = db8500_esram34_consumers, | ||
2383 | .num_consumer_supplies = ARRAY_SIZE(db8500_esram34_consumers), | ||
2334 | }, | 2384 | }, |
2335 | [DB8500_REGULATOR_SWITCH_ESRAM34RET] = { | 2385 | [DB8500_REGULATOR_SWITCH_ESRAM34RET] = { |
2336 | .constraints = { | 2386 | .constraints = { |