diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-regulators.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-regulators.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index 2735d03996cf..52426a425787 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c | |||
@@ -74,6 +74,26 @@ static struct regulator_consumer_supply ab8500_vtvout_consumers[] = { | |||
74 | REGULATOR_SUPPLY("vddadc", "ab8500-gpadc.0"), | 74 | REGULATOR_SUPPLY("vddadc", "ab8500-gpadc.0"), |
75 | }; | 75 | }; |
76 | 76 | ||
77 | static struct regulator_consumer_supply ab8500_vaud_consumers[] = { | ||
78 | /* AB8500 audio-codec main supply */ | ||
79 | REGULATOR_SUPPLY("vaud", "ab8500-codec.0"), | ||
80 | }; | ||
81 | |||
82 | static struct regulator_consumer_supply ab8500_vamic1_consumers[] = { | ||
83 | /* AB8500 audio-codec Mic1 supply */ | ||
84 | REGULATOR_SUPPLY("vamic1", "ab8500-codec.0"), | ||
85 | }; | ||
86 | |||
87 | static struct regulator_consumer_supply ab8500_vamic2_consumers[] = { | ||
88 | /* AB8500 audio-codec Mic2 supply */ | ||
89 | REGULATOR_SUPPLY("vamic2", "ab8500-codec.0"), | ||
90 | }; | ||
91 | |||
92 | static struct regulator_consumer_supply ab8500_vdmic_consumers[] = { | ||
93 | /* AB8500 audio-codec DMic supply */ | ||
94 | REGULATOR_SUPPLY("vdmic", "ab8500-codec.0"), | ||
95 | }; | ||
96 | |||
77 | static struct regulator_consumer_supply ab8500_vintcore_consumers[] = { | 97 | static struct regulator_consumer_supply ab8500_vintcore_consumers[] = { |
78 | /* SoC core supply, no device */ | 98 | /* SoC core supply, no device */ |
79 | REGULATOR_SUPPLY("v-intcore", NULL), | 99 | REGULATOR_SUPPLY("v-intcore", NULL), |
@@ -323,6 +343,8 @@ struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { | |||
323 | .name = "V-AUD", | 343 | .name = "V-AUD", |
324 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 344 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
325 | }, | 345 | }, |
346 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vaud_consumers), | ||
347 | .consumer_supplies = ab8500_vaud_consumers, | ||
326 | }, | 348 | }, |
327 | /* supply for v-anamic1 VAMic1-LDO */ | 349 | /* supply for v-anamic1 VAMic1-LDO */ |
328 | [AB8500_LDO_ANAMIC1] = { | 350 | [AB8500_LDO_ANAMIC1] = { |
@@ -330,6 +352,8 @@ struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { | |||
330 | .name = "V-AMIC1", | 352 | .name = "V-AMIC1", |
331 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 353 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
332 | }, | 354 | }, |
355 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic1_consumers), | ||
356 | .consumer_supplies = ab8500_vamic1_consumers, | ||
333 | }, | 357 | }, |
334 | /* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */ | 358 | /* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */ |
335 | [AB8500_LDO_ANAMIC2] = { | 359 | [AB8500_LDO_ANAMIC2] = { |
@@ -337,6 +361,8 @@ struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { | |||
337 | .name = "V-AMIC2", | 361 | .name = "V-AMIC2", |
338 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 362 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
339 | }, | 363 | }, |
364 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic2_consumers), | ||
365 | .consumer_supplies = ab8500_vamic2_consumers, | ||
340 | }, | 366 | }, |
341 | /* supply for v-dmic, VDMIC LDO */ | 367 | /* supply for v-dmic, VDMIC LDO */ |
342 | [AB8500_LDO_DMIC] = { | 368 | [AB8500_LDO_DMIC] = { |
@@ -344,6 +370,8 @@ struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { | |||
344 | .name = "V-DMIC", | 370 | .name = "V-DMIC", |
345 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 371 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
346 | }, | 372 | }, |
373 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vdmic_consumers), | ||
374 | .consumer_supplies = ab8500_vdmic_consumers, | ||
347 | }, | 375 | }, |
348 | /* supply for v-intcore12, VINTCORE12 LDO */ | 376 | /* supply for v-intcore12, VINTCORE12 LDO */ |
349 | [AB8500_LDO_INTCORE] = { | 377 | [AB8500_LDO_INTCORE] = { |