diff options
| author | Bengt Jonsson <bengt.g.jonsson@stericsson.com> | 2011-03-11 05:54:46 -0500 |
|---|---|---|
| committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-03-26 10:15:05 -0400 |
| commit | 79568b941277b5986a8a7f0fb8578b2ccfc3e87e (patch) | |
| tree | b66551a8bd5c9fa75f01767578e76a19d030ee32 /include/linux/mfd | |
| parent | ea05ef31f2aa98b25d14222300dc9c1d1eb59e41 (diff) | |
regulator: initialization for ab8500 regulators
The regulators on the AB8500 have a lot of custom
hardware control settings pertaining to 8 external
signals, settings which are board-specific and need
be provided from the platform at startup.
Initialization added for regulators Vana, VextSupply1,
VextSupply2, VextSupply3, Vaux1, Vaux2, Vaux3, VTVout,
Vintcore12, Vaudio, Vdmic, Vamic1, Vamic2, VrefDDR.
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Reviewed-by: Rickard Andersson <rickard.andersson@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/ab8500.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500.h b/include/linux/mfd/ab8500.h index 56f8dea72152..6e4f77ef4d20 100644 --- a/include/linux/mfd/ab8500.h +++ b/include/linux/mfd/ab8500.h | |||
| @@ -139,17 +139,23 @@ struct ab8500 { | |||
| 139 | u8 oldmask[AB8500_NUM_IRQ_REGS]; | 139 | u8 oldmask[AB8500_NUM_IRQ_REGS]; |
| 140 | }; | 140 | }; |
| 141 | 141 | ||
| 142 | struct regulator_reg_init; | ||
| 142 | struct regulator_init_data; | 143 | struct regulator_init_data; |
| 143 | 144 | ||
| 144 | /** | 145 | /** |
| 145 | * struct ab8500_platform_data - AB8500 platform data | 146 | * struct ab8500_platform_data - AB8500 platform data |
| 146 | * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used | 147 | * @irq_base: start of AB8500 IRQs, AB8500_NR_IRQS will be used |
| 147 | * @init: board-specific initialization after detection of ab8500 | 148 | * @init: board-specific initialization after detection of ab8500 |
| 149 | * @num_regulator_reg_init: number of regulator init registers | ||
| 150 | * @regulator_reg_init: regulator init registers | ||
| 151 | * @num_regulator: number of regulators | ||
| 148 | * @regulator: machine-specific constraints for regulators | 152 | * @regulator: machine-specific constraints for regulators |
| 149 | */ | 153 | */ |
| 150 | struct ab8500_platform_data { | 154 | struct ab8500_platform_data { |
| 151 | int irq_base; | 155 | int irq_base; |
| 152 | void (*init) (struct ab8500 *); | 156 | void (*init) (struct ab8500 *); |
| 157 | int num_regulator_reg_init; | ||
| 158 | struct ab8500_regulator_reg_init *regulator_reg_init; | ||
| 153 | int num_regulator; | 159 | int num_regulator; |
| 154 | struct regulator_init_data *regulator; | 160 | struct regulator_init_data *regulator; |
| 155 | }; | 161 | }; |
