blob: 2561def770038aff9d8ec0dad4365d70cc69df94 [file] [log] [blame]
David Collins00b31e62011-08-31 20:00:10 -07001/*
Chandra Ramachandran39f7d6f2012-01-06 09:35:32 -08002 * Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
David Collins00b31e62011-08-31 20:00:10 -07003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
David Collins8c695c52011-12-12 15:46:02 -080014#include <linux/regulator/pm8xxx-regulator.h>
Steve Mucklef132c6c2012-06-06 18:30:57 -070015#include <linux/regulator/msm-gpio-regulator.h>
David Collinsbea297a2011-09-28 13:11:14 -070016#include <mach/rpm-regulator.h>
David Collins00b31e62011-08-31 20:00:10 -070017
18#include "board-9615.h"
19
20#define VREG_CONSUMERS(_id) \
21 static struct regulator_consumer_supply vreg_consumers_##_id[]
22
23/*
24 * Consumer specific regulator names:
25 * regulator name consumer dev_name
26 */
27VREG_CONSUMERS(L2) = {
28 REGULATOR_SUPPLY("8018_l2", NULL),
Amit Blayf8b609e2011-09-02 20:42:53 +030029 REGULATOR_SUPPLY("HSUSB_1p8", "msm_otg"),
David Collins00b31e62011-08-31 20:00:10 -070030};
31VREG_CONSUMERS(L3) = {
32 REGULATOR_SUPPLY("8018_l3", NULL),
33};
34VREG_CONSUMERS(L4) = {
35 REGULATOR_SUPPLY("8018_l4", NULL),
Amit Blayf8b609e2011-09-02 20:42:53 +030036 REGULATOR_SUPPLY("HSUSB_3p3", "msm_otg"),
David Collins00b31e62011-08-31 20:00:10 -070037};
38VREG_CONSUMERS(L5) = {
39 REGULATOR_SUPPLY("8018_l5", NULL),
40};
41VREG_CONSUMERS(L6) = {
42 REGULATOR_SUPPLY("8018_l6", NULL),
43};
44VREG_CONSUMERS(L7) = {
45 REGULATOR_SUPPLY("8018_l7", NULL),
46};
47VREG_CONSUMERS(L8) = {
48 REGULATOR_SUPPLY("8018_l8", NULL),
49};
50VREG_CONSUMERS(L9) = {
51 REGULATOR_SUPPLY("8018_l9", NULL),
52};
53VREG_CONSUMERS(L10) = {
54 REGULATOR_SUPPLY("8018_l10", NULL),
55};
56VREG_CONSUMERS(L11) = {
57 REGULATOR_SUPPLY("8018_l11", NULL),
58};
59VREG_CONSUMERS(L12) = {
60 REGULATOR_SUPPLY("8018_l12", NULL),
61};
62VREG_CONSUMERS(L13) = {
63 REGULATOR_SUPPLY("8018_l13", NULL),
Subhash Jadavani937c7502012-06-01 15:34:46 +053064 REGULATOR_SUPPLY("sdc_vdd_io", "msm_sdcc.1"),
David Collins00b31e62011-08-31 20:00:10 -070065};
66VREG_CONSUMERS(L14) = {
67 REGULATOR_SUPPLY("8018_l14", NULL),
Zhang Chang Kena48794b2012-03-31 17:45:21 -040068 REGULATOR_SUPPLY("VDDI2", "ebi2_lcd.0"),
David Collins00b31e62011-08-31 20:00:10 -070069};
70VREG_CONSUMERS(S1) = {
71 REGULATOR_SUPPLY("8018_s1", NULL),
David Collins00b31e62011-08-31 20:00:10 -070072};
73VREG_CONSUMERS(S2) = {
74 REGULATOR_SUPPLY("8018_s2", NULL),
Shiv Maliyappanahalli9ec55e92012-01-09 14:44:59 -080075 REGULATOR_SUPPLY("CDC_VDDA_A_1P2V", "tabla-slim"),
76 REGULATOR_SUPPLY("CDC_VDDA_A_1P2V", "tabla2x-slim"),
77 REGULATOR_SUPPLY("VDDD_CDC_D", "tabla-slim"),
78 REGULATOR_SUPPLY("VDDD_CDC_D", "tabla2x-slim"),
Venkat Sudhir5efc4912012-05-15 17:10:35 -070079 REGULATOR_SUPPLY("VDDD_CDC_D", "0-000d"),
80 REGULATOR_SUPPLY("CDC_VDDA_A_1P2V", "0-000d"),
81 REGULATOR_SUPPLY("VDDD_CDC_D", "tabla top level"),
82 REGULATOR_SUPPLY("CDC_VDDA_A_1P2V", "tabla top level"),
David Collins00b31e62011-08-31 20:00:10 -070083};
84VREG_CONSUMERS(S3) = {
85 REGULATOR_SUPPLY("8018_s3", NULL),
Rohit Vaswani2caf2f52011-12-12 20:13:37 -080086 REGULATOR_SUPPLY("wlan_vreg", "wlan_ar6000_pm_dev"),
Shiv Maliyappanahalli9ec55e92012-01-09 14:44:59 -080087 REGULATOR_SUPPLY("CDC_VDD_CP", "tabla-slim"),
88 REGULATOR_SUPPLY("CDC_VDD_CP", "tabla2x-slim"),
89 REGULATOR_SUPPLY("CDC_VDDA_RX", "tabla-slim"),
90 REGULATOR_SUPPLY("CDC_VDDA_RX", "tabla2x-slim"),
91 REGULATOR_SUPPLY("CDC_VDDA_TX", "tabla-slim"),
92 REGULATOR_SUPPLY("CDC_VDDA_TX", "tabla2x-slim"),
93 REGULATOR_SUPPLY("VDDIO_CDC", "tabla-slim"),
94 REGULATOR_SUPPLY("VDDIO_CDC", "tabla2x-slim"),
Venkat Sudhir5efc4912012-05-15 17:10:35 -070095 REGULATOR_SUPPLY("VDDIO_CDC", "tabla top level"),
96 REGULATOR_SUPPLY("CDC_VDD_CP", "tabla top level"),
97 REGULATOR_SUPPLY("CDC_VDDA_TX", "tabla top level"),
98 REGULATOR_SUPPLY("CDC_VDDA_RX", "tabla top level"),
99 REGULATOR_SUPPLY("VDDIO_CDC", "0-000d"),
100 REGULATOR_SUPPLY("CDC_VDD_CP", "0-000d"),
101 REGULATOR_SUPPLY("CDC_VDDA_TX", "0-000d"),
102 REGULATOR_SUPPLY("CDC_VDDA_RX", "0-000d"),
David Collins00b31e62011-08-31 20:00:10 -0700103};
104VREG_CONSUMERS(S4) = {
105 REGULATOR_SUPPLY("8018_s4", NULL),
106};
107VREG_CONSUMERS(S5) = {
108 REGULATOR_SUPPLY("8018_s5", NULL),
109};
110VREG_CONSUMERS(LVS1) = {
111 REGULATOR_SUPPLY("8018_lvs1", NULL),
112};
David Collins0f9942a2011-10-31 09:47:34 -0700113VREG_CONSUMERS(EXT_2P95V) = {
114 REGULATOR_SUPPLY("ext_2p95v", NULL),
Krishna Kondafea60182011-11-01 16:01:34 -0700115 REGULATOR_SUPPLY("sdc_vdd", "msm_sdcc.1"),
David Collins0f9942a2011-10-31 09:47:34 -0700116};
David Collins018bb542012-05-30 10:22:46 -0700117VREG_CONSUMERS(VDD_DIG_CORNER) = {
Amit Blay82f3a7a2012-06-07 17:07:07 +0300118 REGULATOR_SUPPLY("hsusb_vdd_dig", "msm_otg"),
119 REGULATOR_SUPPLY("hsic_vdd_dig", "msm_hsic_peripheral"),
120 REGULATOR_SUPPLY("hsic_vdd_dig", "msm_hsic_host"),
David Collins018bb542012-05-30 10:22:46 -0700121};
David Collins00b31e62011-08-31 20:00:10 -0700122
David Collins8c695c52011-12-12 15:46:02 -0800123#define PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, _modes, _ops, \
124 _apply_uV, _pull_down, _always_on, _supply_regulator, \
125 _system_uA, _enable_time, _reg_id) \
David Collins00b31e62011-08-31 20:00:10 -0700126 { \
127 .init_data = { \
128 .constraints = { \
129 .valid_modes_mask = _modes, \
130 .valid_ops_mask = _ops, \
131 .min_uV = _min_uV, \
132 .max_uV = _max_uV, \
133 .input_uV = _max_uV, \
134 .apply_uV = _apply_uV, \
135 .always_on = _always_on, \
David Collins8c695c52011-12-12 15:46:02 -0800136 .name = _name, \
David Collins00b31e62011-08-31 20:00:10 -0700137 }, \
138 .num_consumer_supplies = \
139 ARRAY_SIZE(vreg_consumers_##_id), \
140 .consumer_supplies = vreg_consumers_##_id, \
141 .supply_regulator = _supply_regulator, \
142 }, \
David Collins8c695c52011-12-12 15:46:02 -0800143 .id = _reg_id, \
David Collins00b31e62011-08-31 20:00:10 -0700144 .pull_down_enable = _pull_down, \
145 .system_uA = _system_uA, \
146 .enable_time = _enable_time, \
147 }
148
David Collins8c695c52011-12-12 15:46:02 -0800149#define PM8XXX_LDO(_id, _name, _always_on, _pull_down, _min_uV, _max_uV, \
150 _enable_time, _supply_regulator, _system_uA, _reg_id) \
151 PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \
David Collins00b31e62011-08-31 20:00:10 -0700152 | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE | \
153 REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE | \
154 REGULATOR_CHANGE_DRMS, 0, _pull_down, _always_on, \
David Collins8c695c52011-12-12 15:46:02 -0800155 _supply_regulator, _system_uA, _enable_time, _reg_id)
David Collins00b31e62011-08-31 20:00:10 -0700156
David Collins8c695c52011-12-12 15:46:02 -0800157#define PM8XXX_NLDO1200(_id, _name, _always_on, _pull_down, _min_uV, \
158 _max_uV, _enable_time, _supply_regulator, _system_uA, _reg_id) \
159 PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \
David Collins00b31e62011-08-31 20:00:10 -0700160 | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE | \
161 REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE | \
162 REGULATOR_CHANGE_DRMS, 0, _pull_down, _always_on, \
David Collins8c695c52011-12-12 15:46:02 -0800163 _supply_regulator, _system_uA, _enable_time, _reg_id)
David Collins00b31e62011-08-31 20:00:10 -0700164
David Collins8c695c52011-12-12 15:46:02 -0800165#define PM8XXX_SMPS(_id, _name, _always_on, _pull_down, _min_uV, _max_uV, \
166 _enable_time, _supply_regulator, _system_uA, _reg_id) \
167 PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \
David Collins00b31e62011-08-31 20:00:10 -0700168 | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE | \
169 REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE | \
170 REGULATOR_CHANGE_DRMS, 0, _pull_down, _always_on, \
David Collins8c695c52011-12-12 15:46:02 -0800171 _supply_regulator, _system_uA, _enable_time, _reg_id)
David Collins00b31e62011-08-31 20:00:10 -0700172
David Collins8c695c52011-12-12 15:46:02 -0800173#define PM8XXX_VS(_id, _name, _always_on, _pull_down, _enable_time, \
174 _supply_regulator, _reg_id) \
175 PM8XXX_VREG_INIT(_id, _name, 0, 0, 0, REGULATOR_CHANGE_STATUS, 0, \
176 _pull_down, _always_on, _supply_regulator, 0, _enable_time, \
177 _reg_id)
David Collins00b31e62011-08-31 20:00:10 -0700178
179/* Pin control initialization */
David Collins8c695c52011-12-12 15:46:02 -0800180#define PM8XXX_PC(_id, _name, _always_on, _pin_fn, _pin_ctrl, \
181 _supply_regulator, _reg_id) \
David Collins00b31e62011-08-31 20:00:10 -0700182 { \
183 .init_data = { \
184 .constraints = { \
185 .valid_ops_mask = REGULATOR_CHANGE_STATUS, \
186 .always_on = _always_on, \
David Collins8c695c52011-12-12 15:46:02 -0800187 .name = _name, \
David Collins00b31e62011-08-31 20:00:10 -0700188 }, \
189 .num_consumer_supplies = \
190 ARRAY_SIZE(vreg_consumers_##_id##_PC), \
191 .consumer_supplies = vreg_consumers_##_id##_PC, \
192 .supply_regulator = _supply_regulator, \
193 }, \
David Collins8c695c52011-12-12 15:46:02 -0800194 .id = _reg_id, \
195 .pin_fn = PM8XXX_VREG_PIN_FN_##_pin_fn, \
196 .pin_ctrl = _pin_ctrl, \
David Collins00b31e62011-08-31 20:00:10 -0700197 }
198
David Collinsbea297a2011-09-28 13:11:14 -0700199#define RPM_INIT(_id, _min_uV, _max_uV, _modes, _ops, _apply_uV, _default_uV, \
200 _peak_uA, _avg_uA, _pull_down, _pin_ctrl, _freq, _pin_fn, \
David Collins15789042012-03-19 10:44:36 -0700201 _force_mode, _sleep_set_force_mode, _power_mode, _state, \
202 _sleep_selectable, _always_on, _supply_regulator, _system_uA) \
David Collinsbea297a2011-09-28 13:11:14 -0700203 { \
204 .init_data = { \
205 .constraints = { \
206 .valid_modes_mask = _modes, \
207 .valid_ops_mask = _ops, \
208 .min_uV = _min_uV, \
209 .max_uV = _max_uV, \
210 .input_uV = _min_uV, \
211 .apply_uV = _apply_uV, \
212 .always_on = _always_on, \
213 }, \
214 .num_consumer_supplies = \
215 ARRAY_SIZE(vreg_consumers_##_id), \
216 .consumer_supplies = vreg_consumers_##_id, \
217 .supply_regulator = _supply_regulator, \
218 }, \
219 .id = RPM_VREG_ID_PM8018_##_id, \
220 .default_uV = _default_uV, \
221 .peak_uA = _peak_uA, \
222 .avg_uA = _avg_uA, \
223 .pull_down_enable = _pull_down, \
224 .pin_ctrl = _pin_ctrl, \
225 .freq = RPM_VREG_FREQ_##_freq, \
226 .pin_fn = _pin_fn, \
227 .force_mode = _force_mode, \
David Collins15789042012-03-19 10:44:36 -0700228 .sleep_set_force_mode = _sleep_set_force_mode, \
David Collinsbea297a2011-09-28 13:11:14 -0700229 .power_mode = _power_mode, \
230 .state = _state, \
231 .sleep_selectable = _sleep_selectable, \
232 .system_uA = _system_uA, \
233 }
234
235#define RPM_LDO(_id, _always_on, _pd, _sleep_selectable, _min_uV, _max_uV, \
236 _supply_regulator, _system_uA, _init_peak_uA) \
237 RPM_INIT(_id, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \
238 | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE \
239 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE \
240 | REGULATOR_CHANGE_DRMS, 0, _max_uV, _init_peak_uA, 0, _pd, \
241 RPM_VREG_PIN_CTRL_NONE, NONE, RPM_VREG_PIN_FN_9615_NONE, \
David Collins15789042012-03-19 10:44:36 -0700242 RPM_VREG_FORCE_MODE_9615_NONE, \
David Collinsbea297a2011-09-28 13:11:14 -0700243 RPM_VREG_FORCE_MODE_9615_NONE, RPM_VREG_POWER_MODE_9615_PWM, \
244 RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \
245 _supply_regulator, _system_uA)
246
247#define RPM_SMPS(_id, _always_on, _pd, _sleep_selectable, _min_uV, _max_uV, \
248 _supply_regulator, _system_uA, _freq) \
249 RPM_INIT(_id, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \
250 | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE \
251 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE \
252 | REGULATOR_CHANGE_DRMS, 0, _max_uV, _system_uA, 0, _pd, \
253 RPM_VREG_PIN_CTRL_NONE, _freq, RPM_VREG_PIN_FN_9615_NONE, \
David Collins15789042012-03-19 10:44:36 -0700254 RPM_VREG_FORCE_MODE_9615_NONE, \
David Collinsbea297a2011-09-28 13:11:14 -0700255 RPM_VREG_FORCE_MODE_9615_NONE, RPM_VREG_POWER_MODE_9615_PWM, \
256 RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \
257 _supply_regulator, _system_uA)
258
259#define RPM_VS(_id, _always_on, _pd, _sleep_selectable, _supply_regulator) \
260 RPM_INIT(_id, 0, 0, 0, REGULATOR_CHANGE_STATUS, 0, 0, 1000, 1000, _pd, \
261 RPM_VREG_PIN_CTRL_NONE, NONE, RPM_VREG_PIN_FN_9615_NONE, \
David Collins15789042012-03-19 10:44:36 -0700262 RPM_VREG_FORCE_MODE_9615_NONE, \
David Collinsbea297a2011-09-28 13:11:14 -0700263 RPM_VREG_FORCE_MODE_9615_NONE, RPM_VREG_POWER_MODE_9615_PWM, \
264 RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \
265 _supply_regulator, 0)
266
David Collins018bb542012-05-30 10:22:46 -0700267#define RPM_CORNER(_id, _always_on, _sleep_selectable, _min_uV, _max_uV, \
268 _supply_regulator) \
269 RPM_INIT(_id, _min_uV, _max_uV, 0, REGULATOR_CHANGE_VOLTAGE \
270 | REGULATOR_CHANGE_STATUS, 0, _max_uV, 0, 0, 0, \
271 RPM_VREG_PIN_CTRL_NONE, NONE, RPM_VREG_PIN_FN_9615_NONE, \
272 RPM_VREG_FORCE_MODE_9615_NONE, \
273 RPM_VREG_FORCE_MODE_9615_NONE, RPM_VREG_POWER_MODE_9615_PWM, \
274 RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \
275 _supply_regulator, 0)
276
David Collinsbea297a2011-09-28 13:11:14 -0700277/* Pin control initialization */
278#define RPM_PC_INIT(_id, _always_on, _pin_fn, _pin_ctrl, _supply_regulator) \
279 { \
280 .init_data = { \
281 .constraints = { \
282 .valid_ops_mask = REGULATOR_CHANGE_STATUS, \
283 .always_on = _always_on, \
284 }, \
285 .num_consumer_supplies = \
286 ARRAY_SIZE(vreg_consumers_##_id##_PC), \
287 .consumer_supplies = vreg_consumers_##_id##_PC, \
288 .supply_regulator = _supply_regulator, \
289 }, \
290 .id = RPM_VREG_ID_PM8018_##_id##_PC, \
291 .pin_fn = RPM_VREG_PIN_FN_9615_##_pin_fn, \
292 .pin_ctrl = _pin_ctrl, \
293 }
294
David Collins0f9942a2011-10-31 09:47:34 -0700295#define GPIO_VREG_INIT(_id, _reg_name, _gpio_label, _gpio) \
296 [GPIO_VREG_ID_##_id] = { \
297 .init_data = { \
298 .constraints = { \
299 .valid_ops_mask = REGULATOR_CHANGE_STATUS, \
300 }, \
301 .num_consumer_supplies = \
302 ARRAY_SIZE(vreg_consumers_##_id), \
303 .consumer_supplies = vreg_consumers_##_id, \
304 }, \
305 .regulator_name = _reg_name, \
306 .gpio_label = _gpio_label, \
307 .gpio = _gpio, \
308 }
309
310/* GPIO regulator constraints */
311struct gpio_regulator_platform_data msm_gpio_regulator_pdata[] = {
312 GPIO_VREG_INIT(EXT_2P95V, "ext_2p95v", "ext_2p95_en", 18),
313};
David Collinsbea297a2011-09-28 13:11:14 -0700314
David Collins00b31e62011-08-31 20:00:10 -0700315/* PM8018 regulator constraints */
David Collins8c695c52011-12-12 15:46:02 -0800316struct pm8xxx_regulator_platform_data
David Collins00b31e62011-08-31 20:00:10 -0700317msm_pm8018_regulator_pdata[] __devinitdata = {
David Collinsbea297a2011-09-28 13:11:14 -0700318};
David Collins00b31e62011-08-31 20:00:10 -0700319
David Collinsbea297a2011-09-28 13:11:14 -0700320static struct rpm_regulator_init_data
321msm_rpm_regulator_init_data[] __devinitdata = {
322 /* ID a_on pd ss min_uV max_uV supply sys_uA freq */
Chandra Ramachandran39f7d6f2012-01-06 09:35:32 -0800323 RPM_SMPS(S1, 0, 1, 1, 500000, 1150000, NULL, 100000, 1p60),
David Collinsbea297a2011-09-28 13:11:14 -0700324 RPM_SMPS(S2, 0, 1, 0, 1225000, 1300000, NULL, 0, 1p60),
325 RPM_SMPS(S3, 1, 1, 0, 1800000, 1800000, NULL, 100000, 1p60),
326 RPM_SMPS(S4, 0, 1, 0, 2100000, 2200000, NULL, 0, 1p60),
327 RPM_SMPS(S5, 1, 1, 0, 1350000, 1350000, NULL, 100000, 1p60),
David Collins00b31e62011-08-31 20:00:10 -0700328
David Collinsbea297a2011-09-28 13:11:14 -0700329 /* ID a_on pd ss min_uV max_uV supply sys_uA init_ip */
330 RPM_LDO(L2, 1, 1, 0, 1800000, 1800000, NULL, 0, 10000),
David Collinsb8ddfe42012-05-29 14:44:50 -0700331 RPM_LDO(L3, 1, 1, 0, 1800000, 1800000, NULL, 0, 0),
David Collinsbea297a2011-09-28 13:11:14 -0700332 RPM_LDO(L4, 0, 1, 0, 3075000, 3075000, NULL, 0, 0),
333 RPM_LDO(L5, 0, 1, 0, 2850000, 2850000, NULL, 0, 0),
334 RPM_LDO(L6, 0, 1, 0, 1800000, 2850000, NULL, 0, 0),
335 RPM_LDO(L7, 0, 1, 0, 1850000, 1900000, "8018_s4", 0, 0),
336 RPM_LDO(L8, 0, 1, 0, 1200000, 1200000, "8018_s3", 0, 0),
Chandra Ramachandran39f7d6f2012-01-06 09:35:32 -0800337 RPM_LDO(L9, 0, 1, 1, 750000, 1150000, "8018_s5", 10000, 10000),
David Collinsbea297a2011-09-28 13:11:14 -0700338 RPM_LDO(L10, 0, 1, 0, 1050000, 1050000, "8018_s5", 0, 0),
339 RPM_LDO(L11, 0, 1, 0, 1050000, 1050000, "8018_s5", 0, 0),
340 RPM_LDO(L12, 0, 1, 0, 1050000, 1050000, "8018_s5", 0, 0),
Krishna Kondad56fa072011-11-01 16:18:41 -0700341 RPM_LDO(L13, 0, 1, 0, 1850000, 2950000, NULL, 0, 0),
David Collinsbea297a2011-09-28 13:11:14 -0700342 RPM_LDO(L14, 0, 1, 0, 2850000, 2850000, NULL, 0, 0),
343
344 /* ID a_on pd ss supply */
345 RPM_VS(LVS1, 0, 1, 0, "8018_s3"),
David Collins018bb542012-05-30 10:22:46 -0700346
347 /* ID a_on ss min_corner max_corner supply */
348 RPM_CORNER(VDD_DIG_CORNER, 0, 1, RPM_VREG_CORNER_NONE,
349 RPM_VREG_CORNER_HIGH, NULL),
David Collins00b31e62011-08-31 20:00:10 -0700350};
351
352int msm_pm8018_regulator_pdata_len __devinitdata =
353 ARRAY_SIZE(msm_pm8018_regulator_pdata);
David Collinsbea297a2011-09-28 13:11:14 -0700354
355struct rpm_regulator_platform_data
356msm_rpm_regulator_9615_pdata __devinitdata = {
357 .init_data = msm_rpm_regulator_init_data,
358 .num_regulators = ARRAY_SIZE(msm_rpm_regulator_init_data),
359 .version = RPM_VREG_VERSION_9615,
360 .vreg_id_vdd_mem = RPM_VREG_ID_PM8018_L9,
David Collins018bb542012-05-30 10:22:46 -0700361 .vreg_id_vdd_dig = RPM_VREG_ID_PM8018_VDD_DIG_CORNER,
David Collinsbea297a2011-09-28 13:11:14 -0700362};