Sundar Iyer | 4f724be | 2010-09-15 10:50:59 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) ST-Ericsson SA 2010 |
| 3 | * |
| 4 | * License Terms: GNU General Public License v2 |
| 5 | * |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 6 | * Authors: Sundar Iyer <sundar.iyer@stericsson.com> |
| 7 | * Bengt Jonsson <bengt.g.jonsson@stericsson.com> |
Sundar Iyer | 4f724be | 2010-09-15 10:50:59 +0100 | [diff] [blame] | 8 | * |
| 9 | * MOP500 board specific initialization for regulators |
| 10 | */ |
| 11 | #include <linux/kernel.h> |
| 12 | #include <linux/regulator/machine.h> |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 13 | #include <linux/regulator/ab8500.h> |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 14 | #include "board-mop500-regulators.h" |
| 15 | |
Lee Jones | 0b5ea1e | 2012-09-03 14:33:39 +0100 | [diff] [blame] | 16 | static struct regulator_consumer_supply gpio_en_3v3_consumers[] = { |
| 17 | REGULATOR_SUPPLY("vdd33a", "smsc911x.0"), |
| 18 | }; |
| 19 | |
| 20 | struct regulator_init_data gpio_en_3v3_regulator = { |
| 21 | .constraints = { |
| 22 | .name = "EN-3V3", |
| 23 | .min_uV = 3300000, |
| 24 | .max_uV = 3300000, |
| 25 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 26 | }, |
| 27 | .num_consumer_supplies = ARRAY_SIZE(gpio_en_3v3_consumers), |
| 28 | .consumer_supplies = gpio_en_3v3_consumers, |
| 29 | }; |
| 30 | |
Lee Jones | cd2fa6d | 2013-01-31 11:31:16 +0000 | [diff] [blame^] | 31 | static struct regulator_consumer_supply sdi0_reg_consumers[] = { |
| 32 | REGULATOR_SUPPLY("vqmmc", "sdi0"), |
| 33 | }; |
| 34 | |
| 35 | struct regulator_init_data sdi0_reg_init_data = { |
| 36 | .constraints = { |
| 37 | .min_uV = 1800000, |
| 38 | .max_uV = 2900000, |
| 39 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE|REGULATOR_CHANGE_STATUS, |
| 40 | }, |
| 41 | .num_consumer_supplies = ARRAY_SIZE(sdi0_reg_consumers), |
| 42 | .consumer_supplies = sdi0_reg_consumers, |
| 43 | }; |
| 44 | |
Linus Walleij | fe67dfc | 2011-03-07 11:48:15 +0100 | [diff] [blame] | 45 | /* |
| 46 | * TPS61052 regulator |
| 47 | */ |
| 48 | static struct regulator_consumer_supply tps61052_vaudio_consumers[] = { |
| 49 | /* |
| 50 | * Boost converter supply to raise voltage on audio speaker, this |
| 51 | * is actually connected to three pins, VInVhfL (left amplifier) |
| 52 | * VInVhfR (right amplifier) and VIntDClassInt - all three must |
| 53 | * be connected to the same voltage. |
| 54 | */ |
| 55 | REGULATOR_SUPPLY("vintdclassint", "ab8500-codec.0"), |
| 56 | }; |
| 57 | |
| 58 | struct regulator_init_data tps61052_regulator = { |
| 59 | .constraints = { |
| 60 | .name = "vaudio-hf", |
| 61 | .min_uV = 4500000, |
| 62 | .max_uV = 4500000, |
| 63 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 64 | }, |
| 65 | .num_consumer_supplies = ARRAY_SIZE(tps61052_vaudio_consumers), |
| 66 | .consumer_supplies = tps61052_vaudio_consumers, |
| 67 | }; |
| 68 | |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 69 | static struct regulator_consumer_supply ab8500_vaux1_consumers[] = { |
| 70 | /* External displays, connector on board 2v5 power supply */ |
| 71 | REGULATOR_SUPPLY("vaux12v5", "mcde.0"), |
| 72 | /* SFH7741 proximity sensor */ |
| 73 | REGULATOR_SUPPLY("vcc", "gpio-keys.0"), |
| 74 | /* BH1780GLS ambient light sensor */ |
| 75 | REGULATOR_SUPPLY("vcc", "2-0029"), |
| 76 | /* lsm303dlh accelerometer */ |
| 77 | REGULATOR_SUPPLY("vdd", "3-0018"), |
| 78 | /* lsm303dlh magnetometer */ |
| 79 | REGULATOR_SUPPLY("vdd", "3-001e"), |
| 80 | /* Rohm BU21013 Touchscreen devices */ |
| 81 | REGULATOR_SUPPLY("avdd", "3-005c"), |
| 82 | REGULATOR_SUPPLY("avdd", "3-005d"), |
| 83 | /* Synaptics RMI4 Touchscreen device */ |
| 84 | REGULATOR_SUPPLY("vdd", "3-004b"), |
| 85 | }; |
| 86 | |
| 87 | static struct regulator_consumer_supply ab8500_vaux2_consumers[] = { |
| 88 | /* On-board eMMC power */ |
| 89 | REGULATOR_SUPPLY("vmmc", "sdi4"), |
| 90 | /* AB8500 audio codec */ |
| 91 | REGULATOR_SUPPLY("vcc-N2158", "ab8500-codec.0"), |
| 92 | }; |
| 93 | |
| 94 | static struct regulator_consumer_supply ab8500_vaux3_consumers[] = { |
| 95 | /* External MMC slot power */ |
| 96 | REGULATOR_SUPPLY("vmmc", "sdi0"), |
| 97 | }; |
| 98 | |
| 99 | static struct regulator_consumer_supply ab8500_vtvout_consumers[] = { |
| 100 | /* TV-out DENC supply */ |
| 101 | REGULATOR_SUPPLY("vtvout", "ab8500-denc.0"), |
| 102 | /* Internal general-purpose ADC */ |
| 103 | REGULATOR_SUPPLY("vddadc", "ab8500-gpadc.0"), |
| 104 | }; |
| 105 | |
Ola Lilja | 29bd2ab | 2012-02-01 14:18:10 +0100 | [diff] [blame] | 106 | static struct regulator_consumer_supply ab8500_vaud_consumers[] = { |
| 107 | /* AB8500 audio-codec main supply */ |
| 108 | REGULATOR_SUPPLY("vaud", "ab8500-codec.0"), |
| 109 | }; |
| 110 | |
| 111 | static struct regulator_consumer_supply ab8500_vamic1_consumers[] = { |
| 112 | /* AB8500 audio-codec Mic1 supply */ |
| 113 | REGULATOR_SUPPLY("vamic1", "ab8500-codec.0"), |
| 114 | }; |
| 115 | |
| 116 | static struct regulator_consumer_supply ab8500_vamic2_consumers[] = { |
| 117 | /* AB8500 audio-codec Mic2 supply */ |
| 118 | REGULATOR_SUPPLY("vamic2", "ab8500-codec.0"), |
| 119 | }; |
| 120 | |
| 121 | static struct regulator_consumer_supply ab8500_vdmic_consumers[] = { |
| 122 | /* AB8500 audio-codec DMic supply */ |
| 123 | REGULATOR_SUPPLY("vdmic", "ab8500-codec.0"), |
| 124 | }; |
| 125 | |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 126 | static struct regulator_consumer_supply ab8500_vintcore_consumers[] = { |
| 127 | /* SoC core supply, no device */ |
| 128 | REGULATOR_SUPPLY("v-intcore", NULL), |
Joe Perches | 7c9d440 | 2011-06-23 11:39:20 -0700 | [diff] [blame] | 129 | /* USB Transceiver */ |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 130 | REGULATOR_SUPPLY("vddulpivio18", "ab8500-usb.0"), |
| 131 | }; |
| 132 | |
| 133 | static struct regulator_consumer_supply ab8500_vana_consumers[] = { |
| 134 | /* External displays, connector on board, 1v8 power supply */ |
| 135 | REGULATOR_SUPPLY("vsmps2", "mcde.0"), |
| 136 | }; |
Sundar Iyer | 4f724be | 2010-09-15 10:50:59 +0100 | [diff] [blame] | 137 | |
Bengt Jonsson | dfa3a82 | 2011-03-09 13:34:17 +0100 | [diff] [blame] | 138 | /* ab8500 regulator register initialization */ |
| 139 | struct ab8500_regulator_reg_init |
| 140 | ab8500_regulator_reg_init[AB8500_NUM_REGULATOR_REGISTERS] = { |
| 141 | /* |
| 142 | * VanaRequestCtrl = HP/LP depending on VxRequest |
| 143 | * VextSupply1RequestCtrl = HP/LP depending on VxRequest |
| 144 | */ |
| 145 | INIT_REGULATOR_REGISTER(AB8500_REGUREQUESTCTRL2, 0x00), |
| 146 | /* |
| 147 | * VextSupply2RequestCtrl = HP/LP depending on VxRequest |
| 148 | * VextSupply3RequestCtrl = HP/LP depending on VxRequest |
| 149 | * Vaux1RequestCtrl = HP/LP depending on VxRequest |
| 150 | * Vaux2RequestCtrl = HP/LP depending on VxRequest |
| 151 | */ |
| 152 | INIT_REGULATOR_REGISTER(AB8500_REGUREQUESTCTRL3, 0x00), |
| 153 | /* |
| 154 | * Vaux3RequestCtrl = HP/LP depending on VxRequest |
| 155 | * SwHPReq = Control through SWValid disabled |
| 156 | */ |
| 157 | INIT_REGULATOR_REGISTER(AB8500_REGUREQUESTCTRL4, 0x00), |
| 158 | /* |
| 159 | * VanaSysClkReq1HPValid = disabled |
| 160 | * Vaux1SysClkReq1HPValid = disabled |
| 161 | * Vaux2SysClkReq1HPValid = disabled |
| 162 | * Vaux3SysClkReq1HPValid = disabled |
| 163 | */ |
| 164 | INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQ1HPVALID1, 0x00), |
| 165 | /* |
| 166 | * VextSupply1SysClkReq1HPValid = disabled |
| 167 | * VextSupply2SysClkReq1HPValid = disabled |
| 168 | * VextSupply3SysClkReq1HPValid = SysClkReq1 controlled |
| 169 | */ |
| 170 | INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQ1HPVALID2, 0x40), |
| 171 | /* |
| 172 | * VanaHwHPReq1Valid = disabled |
| 173 | * Vaux1HwHPreq1Valid = disabled |
| 174 | * Vaux2HwHPReq1Valid = disabled |
| 175 | * Vaux3HwHPReqValid = disabled |
| 176 | */ |
| 177 | INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ1VALID1, 0x00), |
| 178 | /* |
| 179 | * VextSupply1HwHPReq1Valid = disabled |
| 180 | * VextSupply2HwHPReq1Valid = disabled |
| 181 | * VextSupply3HwHPReq1Valid = disabled |
| 182 | */ |
| 183 | INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ1VALID2, 0x00), |
| 184 | /* |
| 185 | * VanaHwHPReq2Valid = disabled |
| 186 | * Vaux1HwHPReq2Valid = disabled |
| 187 | * Vaux2HwHPReq2Valid = disabled |
| 188 | * Vaux3HwHPReq2Valid = disabled |
| 189 | */ |
| 190 | INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ2VALID1, 0x00), |
| 191 | /* |
| 192 | * VextSupply1HwHPReq2Valid = disabled |
| 193 | * VextSupply2HwHPReq2Valid = disabled |
| 194 | * VextSupply3HwHPReq2Valid = HWReq2 controlled |
| 195 | */ |
| 196 | INIT_REGULATOR_REGISTER(AB8500_REGUHWHPREQ2VALID2, 0x04), |
| 197 | /* |
| 198 | * VanaSwHPReqValid = disabled |
| 199 | * Vaux1SwHPReqValid = disabled |
| 200 | */ |
| 201 | INIT_REGULATOR_REGISTER(AB8500_REGUSWHPREQVALID1, 0x00), |
| 202 | /* |
| 203 | * Vaux2SwHPReqValid = disabled |
| 204 | * Vaux3SwHPReqValid = disabled |
| 205 | * VextSupply1SwHPReqValid = disabled |
| 206 | * VextSupply2SwHPReqValid = disabled |
| 207 | * VextSupply3SwHPReqValid = disabled |
| 208 | */ |
| 209 | INIT_REGULATOR_REGISTER(AB8500_REGUSWHPREQVALID2, 0x00), |
| 210 | /* |
| 211 | * SysClkReq2Valid1 = SysClkReq2 controlled |
| 212 | * SysClkReq3Valid1 = disabled |
| 213 | * SysClkReq4Valid1 = SysClkReq4 controlled |
| 214 | * SysClkReq5Valid1 = disabled |
| 215 | * SysClkReq6Valid1 = SysClkReq6 controlled |
| 216 | * SysClkReq7Valid1 = disabled |
| 217 | * SysClkReq8Valid1 = disabled |
| 218 | */ |
| 219 | INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQVALID1, 0x2a), |
| 220 | /* |
| 221 | * SysClkReq2Valid2 = disabled |
| 222 | * SysClkReq3Valid2 = disabled |
| 223 | * SysClkReq4Valid2 = disabled |
| 224 | * SysClkReq5Valid2 = disabled |
| 225 | * SysClkReq6Valid2 = SysClkReq6 controlled |
| 226 | * SysClkReq7Valid2 = disabled |
| 227 | * SysClkReq8Valid2 = disabled |
| 228 | */ |
| 229 | INIT_REGULATOR_REGISTER(AB8500_REGUSYSCLKREQVALID2, 0x20), |
| 230 | /* |
| 231 | * VTVoutEna = disabled |
| 232 | * Vintcore12Ena = disabled |
| 233 | * Vintcore12Sel = 1.25 V |
| 234 | * Vintcore12LP = inactive (HP) |
| 235 | * VTVoutLP = inactive (HP) |
| 236 | */ |
| 237 | INIT_REGULATOR_REGISTER(AB8500_REGUMISC1, 0x10), |
| 238 | /* |
| 239 | * VaudioEna = disabled |
| 240 | * VdmicEna = disabled |
| 241 | * Vamic1Ena = disabled |
| 242 | * Vamic2Ena = disabled |
| 243 | */ |
| 244 | INIT_REGULATOR_REGISTER(AB8500_VAUDIOSUPPLY, 0x00), |
| 245 | /* |
| 246 | * Vamic1_dzout = high-Z when Vamic1 is disabled |
| 247 | * Vamic2_dzout = high-Z when Vamic2 is disabled |
| 248 | */ |
| 249 | INIT_REGULATOR_REGISTER(AB8500_REGUCTRL1VAMIC, 0x00), |
| 250 | /* |
| 251 | * VPll = Hw controlled |
| 252 | * VanaRegu = force off |
| 253 | */ |
| 254 | INIT_REGULATOR_REGISTER(AB8500_VPLLVANAREGU, 0x02), |
| 255 | /* |
| 256 | * VrefDDREna = disabled |
| 257 | * VrefDDRSleepMode = inactive (no pulldown) |
| 258 | */ |
| 259 | INIT_REGULATOR_REGISTER(AB8500_VREFDDR, 0x00), |
| 260 | /* |
| 261 | * VextSupply1Regu = HW control |
| 262 | * VextSupply2Regu = HW control |
| 263 | * VextSupply3Regu = HW control |
| 264 | * ExtSupply2Bypass = ExtSupply12LPn ball is 0 when Ena is 0 |
| 265 | * ExtSupply3Bypass = ExtSupply3LPn ball is 0 when Ena is 0 |
| 266 | */ |
| 267 | INIT_REGULATOR_REGISTER(AB8500_EXTSUPPLYREGU, 0x2a), |
| 268 | /* |
| 269 | * Vaux1Regu = force HP |
| 270 | * Vaux2Regu = force off |
| 271 | */ |
| 272 | INIT_REGULATOR_REGISTER(AB8500_VAUX12REGU, 0x01), |
| 273 | /* |
| 274 | * Vaux3regu = force off |
| 275 | */ |
| 276 | INIT_REGULATOR_REGISTER(AB8500_VRF1VAUX3REGU, 0x00), |
| 277 | /* |
| 278 | * Vsmps1 = 1.15V |
| 279 | */ |
| 280 | INIT_REGULATOR_REGISTER(AB8500_VSMPS1SEL1, 0x24), |
| 281 | /* |
| 282 | * Vaux1Sel = 2.5 V |
| 283 | */ |
| 284 | INIT_REGULATOR_REGISTER(AB8500_VAUX1SEL, 0x08), |
| 285 | /* |
| 286 | * Vaux2Sel = 2.9 V |
| 287 | */ |
| 288 | INIT_REGULATOR_REGISTER(AB8500_VAUX2SEL, 0x0d), |
| 289 | /* |
| 290 | * Vaux3Sel = 2.91 V |
| 291 | */ |
| 292 | INIT_REGULATOR_REGISTER(AB8500_VRF1VAUX3SEL, 0x07), |
| 293 | /* |
| 294 | * VextSupply12LP = disabled (no LP) |
| 295 | */ |
| 296 | INIT_REGULATOR_REGISTER(AB8500_REGUCTRL2SPARE, 0x00), |
| 297 | /* |
| 298 | * Vaux1Disch = short discharge time |
| 299 | * Vaux2Disch = short discharge time |
| 300 | * Vaux3Disch = short discharge time |
| 301 | * Vintcore12Disch = short discharge time |
| 302 | * VTVoutDisch = short discharge time |
| 303 | * VaudioDisch = short discharge time |
| 304 | */ |
| 305 | INIT_REGULATOR_REGISTER(AB8500_REGUCTRLDISCH, 0x00), |
| 306 | /* |
| 307 | * VanaDisch = short discharge time |
| 308 | * VdmicPullDownEna = pulldown disabled when Vdmic is disabled |
| 309 | * VdmicDisch = short discharge time |
| 310 | */ |
| 311 | INIT_REGULATOR_REGISTER(AB8500_REGUCTRLDISCH2, 0x00), |
| 312 | }; |
| 313 | |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 314 | /* AB8500 regulators */ |
| 315 | struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS] = { |
| 316 | /* supplies to the display/camera */ |
| 317 | [AB8500_LDO_AUX1] = { |
| 318 | .constraints = { |
| 319 | .name = "V-DISPLAY", |
| 320 | .min_uV = 2500000, |
| 321 | .max_uV = 2900000, |
| 322 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 323 | REGULATOR_CHANGE_STATUS, |
Linus Walleij | db24520 | 2011-04-04 10:44:51 +0200 | [diff] [blame] | 324 | .boot_on = 1, /* display is on at boot */ |
| 325 | /* |
| 326 | * This voltage cannot be disabled right now because |
| 327 | * it is somehow affecting the external MMC |
| 328 | * functionality, though that typically will use |
| 329 | * AUX3. |
| 330 | */ |
| 331 | .always_on = 1, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 332 | }, |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 333 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vaux1_consumers), |
| 334 | .consumer_supplies = ab8500_vaux1_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 335 | }, |
| 336 | /* supplies to the on-board eMMC */ |
| 337 | [AB8500_LDO_AUX2] = { |
| 338 | .constraints = { |
| 339 | .name = "V-eMMC1", |
| 340 | .min_uV = 1100000, |
| 341 | .max_uV = 3300000, |
| 342 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 343 | REGULATOR_CHANGE_STATUS, |
| 344 | }, |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 345 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vaux2_consumers), |
| 346 | .consumer_supplies = ab8500_vaux2_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 347 | }, |
| 348 | /* supply for VAUX3, supplies to SDcard slots */ |
| 349 | [AB8500_LDO_AUX3] = { |
| 350 | .constraints = { |
| 351 | .name = "V-MMC-SD", |
| 352 | .min_uV = 1100000, |
| 353 | .max_uV = 3300000, |
| 354 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 355 | REGULATOR_CHANGE_STATUS, |
| 356 | }, |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 357 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vaux3_consumers), |
| 358 | .consumer_supplies = ab8500_vaux3_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 359 | }, |
| 360 | /* supply for tvout, gpadc, TVOUT LDO */ |
| 361 | [AB8500_LDO_TVOUT] = { |
| 362 | .constraints = { |
| 363 | .name = "V-TVOUT", |
| 364 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 365 | }, |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 366 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vtvout_consumers), |
| 367 | .consumer_supplies = ab8500_vtvout_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 368 | }, |
| 369 | /* supply for ab8500-vaudio, VAUDIO LDO */ |
| 370 | [AB8500_LDO_AUDIO] = { |
| 371 | .constraints = { |
| 372 | .name = "V-AUD", |
| 373 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 374 | }, |
Ola Lilja | 29bd2ab | 2012-02-01 14:18:10 +0100 | [diff] [blame] | 375 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vaud_consumers), |
| 376 | .consumer_supplies = ab8500_vaud_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 377 | }, |
| 378 | /* supply for v-anamic1 VAMic1-LDO */ |
| 379 | [AB8500_LDO_ANAMIC1] = { |
| 380 | .constraints = { |
| 381 | .name = "V-AMIC1", |
| 382 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 383 | }, |
Ola Lilja | 29bd2ab | 2012-02-01 14:18:10 +0100 | [diff] [blame] | 384 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic1_consumers), |
| 385 | .consumer_supplies = ab8500_vamic1_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 386 | }, |
| 387 | /* supply for v-amic2, VAMIC2 LDO, reuse constants for AMIC1 */ |
| 388 | [AB8500_LDO_ANAMIC2] = { |
| 389 | .constraints = { |
| 390 | .name = "V-AMIC2", |
| 391 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 392 | }, |
Ola Lilja | 29bd2ab | 2012-02-01 14:18:10 +0100 | [diff] [blame] | 393 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vamic2_consumers), |
| 394 | .consumer_supplies = ab8500_vamic2_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 395 | }, |
| 396 | /* supply for v-dmic, VDMIC LDO */ |
| 397 | [AB8500_LDO_DMIC] = { |
| 398 | .constraints = { |
| 399 | .name = "V-DMIC", |
| 400 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 401 | }, |
Ola Lilja | 29bd2ab | 2012-02-01 14:18:10 +0100 | [diff] [blame] | 402 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vdmic_consumers), |
| 403 | .consumer_supplies = ab8500_vdmic_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 404 | }, |
| 405 | /* supply for v-intcore12, VINTCORE12 LDO */ |
| 406 | [AB8500_LDO_INTCORE] = { |
| 407 | .constraints = { |
| 408 | .name = "V-INTCORE", |
| 409 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 410 | }, |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 411 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vintcore_consumers), |
| 412 | .consumer_supplies = ab8500_vintcore_consumers, |
Bengt Jonsson | a1e516e | 2010-12-10 11:08:48 +0100 | [diff] [blame] | 413 | }, |
| 414 | /* supply for U8500 CSI/DSI, VANA LDO */ |
| 415 | [AB8500_LDO_ANA] = { |
| 416 | .constraints = { |
| 417 | .name = "V-CSI/DSI", |
| 418 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 419 | }, |
Linus Walleij | d1de85a | 2010-12-02 17:10:14 +0100 | [diff] [blame] | 420 | .num_consumer_supplies = ARRAY_SIZE(ab8500_vana_consumers), |
| 421 | .consumer_supplies = ab8500_vana_consumers, |
Sundar Iyer | 4f724be | 2010-09-15 10:50:59 +0100 | [diff] [blame] | 422 | }, |
| 423 | }; |