2 * Copyright (C) ST-Ericsson SA 2010
4 * License Terms: GNU General Public License v2
6 * Authors: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson
7 * Bengt Jonsson <bengt.g.jonsson@stericsson.com> for ST-Ericsson
9 * AB8500 peripheral regulators
11 * AB8500 supports the following regulators:
12 * VAUX1/2/3, VINTCORE, VTVOUT, VUSB, VAUDIO, VAMIC1/2, VDMIC, VANA
14 #include <linux/init.h>
15 #include <linux/kernel.h>
16 #include <linux/module.h>
17 #include <linux/err.h>
18 #include <linux/platform_device.h>
19 #include <linux/mfd/abx500.h>
20 #include <linux/mfd/abx500/ab8500.h>
21 #include <linux/regulator/driver.h>
22 #include <linux/regulator/machine.h>
23 #include <linux/regulator/ab8500.h>
26 * struct ab8500_regulator_info - ab8500 regulator information
27 * @dev: device pointer
28 * @desc: regulator description
29 * @regulator_dev: regulator device
30 * @max_uV: maximum voltage (for variable voltage supplies)
31 * @min_uV: minimum voltage (for variable voltage supplies)
32 * @fixed_uV: typical voltage (for fixed voltage supplies)
33 * @update_bank: bank to control on/off
34 * @update_reg: register to control on/off
35 * @update_mask: mask to enable/disable regulator
36 * @update_val_enable: bits to enable the regulator in normal (high power) mode
37 * @voltage_bank: bank to control regulator voltage
38 * @voltage_reg: register to control regulator voltage
39 * @voltage_mask: mask to control regulator voltage
40 * @voltages: supported voltage table
41 * @voltages_len: number of supported voltages for the regulator
42 * @delay: startup/set voltage delay in us
44 struct ab8500_regulator_info
{
46 struct regulator_desc desc
;
47 struct regulator_dev
*regulator
;
63 /* voltage tables for the vauxn/vintcore supplies */
64 static const int ldo_vauxn_voltages
[] = {
83 static const int ldo_vaux3_voltages
[] = {
94 static const int ldo_vintcore_voltages
[] = {
104 static int ab8500_regulator_enable(struct regulator_dev
*rdev
)
107 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
110 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
114 ret
= abx500_mask_and_set_register_interruptible(info
->dev
,
115 info
->update_bank
, info
->update_reg
,
116 info
->update_mask
, info
->update_val_enable
);
118 dev_err(rdev_get_dev(rdev
),
119 "couldn't set enable bits for regulator\n");
121 dev_vdbg(rdev_get_dev(rdev
),
122 "%s-enable (bank, reg, mask, value): 0x%x, 0x%x, 0x%x, 0x%x\n",
123 info
->desc
.name
, info
->update_bank
, info
->update_reg
,
124 info
->update_mask
, info
->update_val_enable
);
129 static int ab8500_regulator_disable(struct regulator_dev
*rdev
)
132 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
135 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
139 ret
= abx500_mask_and_set_register_interruptible(info
->dev
,
140 info
->update_bank
, info
->update_reg
,
141 info
->update_mask
, 0x0);
143 dev_err(rdev_get_dev(rdev
),
144 "couldn't set disable bits for regulator\n");
146 dev_vdbg(rdev_get_dev(rdev
),
147 "%s-disable (bank, reg, mask, value): 0x%x, 0x%x, 0x%x, 0x%x\n",
148 info
->desc
.name
, info
->update_bank
, info
->update_reg
,
149 info
->update_mask
, 0x0);
154 static int ab8500_regulator_is_enabled(struct regulator_dev
*rdev
)
157 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
161 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
165 ret
= abx500_get_register_interruptible(info
->dev
,
166 info
->update_bank
, info
->update_reg
, ®val
);
168 dev_err(rdev_get_dev(rdev
),
169 "couldn't read 0x%x register\n", info
->update_reg
);
173 dev_vdbg(rdev_get_dev(rdev
),
174 "%s-is_enabled (bank, reg, mask, value): 0x%x, 0x%x, 0x%x,"
176 info
->desc
.name
, info
->update_bank
, info
->update_reg
,
177 info
->update_mask
, regval
);
179 if (regval
& info
->update_mask
)
185 static int ab8500_list_voltage(struct regulator_dev
*rdev
, unsigned selector
)
187 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
190 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
194 /* return the uV for the fixed regulators */
196 return info
->fixed_uV
;
198 if (selector
>= info
->voltages_len
)
201 return info
->voltages
[selector
];
204 static int ab8500_regulator_get_voltage_sel(struct regulator_dev
*rdev
)
207 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
211 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
215 ret
= abx500_get_register_interruptible(info
->dev
,
216 info
->voltage_bank
, info
->voltage_reg
, ®val
);
218 dev_err(rdev_get_dev(rdev
),
219 "couldn't read voltage reg for regulator\n");
223 dev_vdbg(rdev_get_dev(rdev
),
224 "%s-get_voltage (bank, reg, mask, value): 0x%x, 0x%x, 0x%x,"
226 info
->desc
.name
, info
->voltage_bank
, info
->voltage_reg
,
227 info
->voltage_mask
, regval
);
229 /* vintcore has a different layout */
230 val
= regval
& info
->voltage_mask
;
231 if (info
->desc
.id
== AB8500_LDO_INTCORE
)
237 static int ab8500_regulator_set_voltage_sel(struct regulator_dev
*rdev
,
241 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
245 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
249 /* set the registers for the request */
250 regval
= (u8
)selector
;
251 ret
= abx500_mask_and_set_register_interruptible(info
->dev
,
252 info
->voltage_bank
, info
->voltage_reg
,
253 info
->voltage_mask
, regval
);
255 dev_err(rdev_get_dev(rdev
),
256 "couldn't set voltage reg for regulator\n");
258 dev_vdbg(rdev_get_dev(rdev
),
259 "%s-set_voltage (bank, reg, mask, value): 0x%x, 0x%x, 0x%x,"
261 info
->desc
.name
, info
->voltage_bank
, info
->voltage_reg
,
262 info
->voltage_mask
, regval
);
267 static int ab8500_regulator_enable_time(struct regulator_dev
*rdev
)
269 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
274 static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev
*rdev
,
275 unsigned int old_sel
,
276 unsigned int new_sel
)
278 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
281 /* If the regulator isn't on, it won't take time here */
282 ret
= ab8500_regulator_is_enabled(rdev
);
290 static struct regulator_ops ab8500_regulator_ops
= {
291 .enable
= ab8500_regulator_enable
,
292 .disable
= ab8500_regulator_disable
,
293 .is_enabled
= ab8500_regulator_is_enabled
,
294 .get_voltage_sel
= ab8500_regulator_get_voltage_sel
,
295 .set_voltage_sel
= ab8500_regulator_set_voltage_sel
,
296 .list_voltage
= ab8500_list_voltage
,
297 .enable_time
= ab8500_regulator_enable_time
,
298 .set_voltage_time_sel
= ab8500_regulator_set_voltage_time_sel
,
301 static int ab8500_fixed_get_voltage(struct regulator_dev
*rdev
)
303 struct ab8500_regulator_info
*info
= rdev_get_drvdata(rdev
);
306 dev_err(rdev_get_dev(rdev
), "regulator info null pointer\n");
310 return info
->fixed_uV
;
313 static struct regulator_ops ab8500_regulator_fixed_ops
= {
314 .enable
= ab8500_regulator_enable
,
315 .disable
= ab8500_regulator_disable
,
316 .is_enabled
= ab8500_regulator_is_enabled
,
317 .get_voltage
= ab8500_fixed_get_voltage
,
318 .list_voltage
= ab8500_list_voltage
,
319 .enable_time
= ab8500_regulator_enable_time
,
320 .set_voltage_time_sel
= ab8500_regulator_set_voltage_time_sel
,
323 static struct ab8500_regulator_info
324 ab8500_regulator_info
[AB8500_NUM_REGULATORS
] = {
326 * Variable Voltage Regulators
327 * name, min mV, max mV,
328 * update bank, reg, mask, enable val
329 * volt bank, reg, mask, table, table length
331 [AB8500_LDO_AUX1
] = {
334 .ops
= &ab8500_regulator_ops
,
335 .type
= REGULATOR_VOLTAGE
,
336 .id
= AB8500_LDO_AUX1
,
337 .owner
= THIS_MODULE
,
338 .n_voltages
= ARRAY_SIZE(ldo_vauxn_voltages
),
345 .update_val_enable
= 0x01,
346 .voltage_bank
= 0x04,
348 .voltage_mask
= 0x0f,
349 .voltages
= ldo_vauxn_voltages
,
350 .voltages_len
= ARRAY_SIZE(ldo_vauxn_voltages
),
352 [AB8500_LDO_AUX2
] = {
355 .ops
= &ab8500_regulator_ops
,
356 .type
= REGULATOR_VOLTAGE
,
357 .id
= AB8500_LDO_AUX2
,
358 .owner
= THIS_MODULE
,
359 .n_voltages
= ARRAY_SIZE(ldo_vauxn_voltages
),
366 .update_val_enable
= 0x04,
367 .voltage_bank
= 0x04,
369 .voltage_mask
= 0x0f,
370 .voltages
= ldo_vauxn_voltages
,
371 .voltages_len
= ARRAY_SIZE(ldo_vauxn_voltages
),
373 [AB8500_LDO_AUX3
] = {
376 .ops
= &ab8500_regulator_ops
,
377 .type
= REGULATOR_VOLTAGE
,
378 .id
= AB8500_LDO_AUX3
,
379 .owner
= THIS_MODULE
,
380 .n_voltages
= ARRAY_SIZE(ldo_vaux3_voltages
),
387 .update_val_enable
= 0x01,
388 .voltage_bank
= 0x04,
390 .voltage_mask
= 0x07,
391 .voltages
= ldo_vaux3_voltages
,
392 .voltages_len
= ARRAY_SIZE(ldo_vaux3_voltages
),
394 [AB8500_LDO_INTCORE
] = {
396 .name
= "LDO-INTCORE",
397 .ops
= &ab8500_regulator_ops
,
398 .type
= REGULATOR_VOLTAGE
,
399 .id
= AB8500_LDO_INTCORE
,
400 .owner
= THIS_MODULE
,
401 .n_voltages
= ARRAY_SIZE(ldo_vintcore_voltages
),
408 .update_val_enable
= 0x04,
409 .voltage_bank
= 0x03,
411 .voltage_mask
= 0x38,
412 .voltages
= ldo_vintcore_voltages
,
413 .voltages_len
= ARRAY_SIZE(ldo_vintcore_voltages
),
417 * Fixed Voltage Regulators
419 * update bank, reg, mask, enable val
421 [AB8500_LDO_TVOUT
] = {
424 .ops
= &ab8500_regulator_fixed_ops
,
425 .type
= REGULATOR_VOLTAGE
,
426 .id
= AB8500_LDO_TVOUT
,
427 .owner
= THIS_MODULE
,
435 .update_val_enable
= 0x02,
440 .ops
= &ab8500_regulator_fixed_ops
,
441 .type
= REGULATOR_VOLTAGE
,
442 .id
= AB8500_LDO_USB
,
443 .owner
= THIS_MODULE
,
450 .update_val_enable
= 0x01,
452 [AB8500_LDO_AUDIO
] = {
455 .ops
= &ab8500_regulator_fixed_ops
,
456 .type
= REGULATOR_VOLTAGE
,
457 .id
= AB8500_LDO_AUDIO
,
458 .owner
= THIS_MODULE
,
465 .update_val_enable
= 0x02,
467 [AB8500_LDO_ANAMIC1
] = {
469 .name
= "LDO-ANAMIC1",
470 .ops
= &ab8500_regulator_fixed_ops
,
471 .type
= REGULATOR_VOLTAGE
,
472 .id
= AB8500_LDO_ANAMIC1
,
473 .owner
= THIS_MODULE
,
480 .update_val_enable
= 0x08,
482 [AB8500_LDO_ANAMIC2
] = {
484 .name
= "LDO-ANAMIC2",
485 .ops
= &ab8500_regulator_fixed_ops
,
486 .type
= REGULATOR_VOLTAGE
,
487 .id
= AB8500_LDO_ANAMIC2
,
488 .owner
= THIS_MODULE
,
495 .update_val_enable
= 0x10,
497 [AB8500_LDO_DMIC
] = {
500 .ops
= &ab8500_regulator_fixed_ops
,
501 .type
= REGULATOR_VOLTAGE
,
502 .id
= AB8500_LDO_DMIC
,
503 .owner
= THIS_MODULE
,
510 .update_val_enable
= 0x04,
515 .ops
= &ab8500_regulator_fixed_ops
,
516 .type
= REGULATOR_VOLTAGE
,
517 .id
= AB8500_LDO_ANA
,
518 .owner
= THIS_MODULE
,
525 .update_val_enable
= 0x04,
531 struct ab8500_reg_init
{
537 #define REG_INIT(_id, _bank, _addr, _mask) \
544 static struct ab8500_reg_init ab8500_reg_init
[] = {
546 * 0x30, VanaRequestCtrl
547 * 0x0C, VpllRequestCtrl
548 * 0xc0, VextSupply1RequestCtrl
550 REG_INIT(AB8500_REGUREQUESTCTRL2
, 0x03, 0x04, 0xfc),
552 * 0x03, VextSupply2RequestCtrl
553 * 0x0c, VextSupply3RequestCtrl
554 * 0x30, Vaux1RequestCtrl
555 * 0xc0, Vaux2RequestCtrl
557 REG_INIT(AB8500_REGUREQUESTCTRL3
, 0x03, 0x05, 0xff),
559 * 0x03, Vaux3RequestCtrl
562 REG_INIT(AB8500_REGUREQUESTCTRL4
, 0x03, 0x06, 0x07),
564 * 0x08, VanaSysClkReq1HPValid
565 * 0x20, Vaux1SysClkReq1HPValid
566 * 0x40, Vaux2SysClkReq1HPValid
567 * 0x80, Vaux3SysClkReq1HPValid
569 REG_INIT(AB8500_REGUSYSCLKREQ1HPVALID1
, 0x03, 0x07, 0xe8),
571 * 0x10, VextSupply1SysClkReq1HPValid
572 * 0x20, VextSupply2SysClkReq1HPValid
573 * 0x40, VextSupply3SysClkReq1HPValid
575 REG_INIT(AB8500_REGUSYSCLKREQ1HPVALID2
, 0x03, 0x08, 0x70),
577 * 0x08, VanaHwHPReq1Valid
578 * 0x20, Vaux1HwHPReq1Valid
579 * 0x40, Vaux2HwHPReq1Valid
580 * 0x80, Vaux3HwHPReq1Valid
582 REG_INIT(AB8500_REGUHWHPREQ1VALID1
, 0x03, 0x09, 0xe8),
584 * 0x01, VextSupply1HwHPReq1Valid
585 * 0x02, VextSupply2HwHPReq1Valid
586 * 0x04, VextSupply3HwHPReq1Valid
588 REG_INIT(AB8500_REGUHWHPREQ1VALID2
, 0x03, 0x0a, 0x07),
590 * 0x08, VanaHwHPReq2Valid
591 * 0x20, Vaux1HwHPReq2Valid
592 * 0x40, Vaux2HwHPReq2Valid
593 * 0x80, Vaux3HwHPReq2Valid
595 REG_INIT(AB8500_REGUHWHPREQ2VALID1
, 0x03, 0x0b, 0xe8),
597 * 0x01, VextSupply1HwHPReq2Valid
598 * 0x02, VextSupply2HwHPReq2Valid
599 * 0x04, VextSupply3HwHPReq2Valid
601 REG_INIT(AB8500_REGUHWHPREQ2VALID2
, 0x03, 0x0c, 0x07),
603 * 0x20, VanaSwHPReqValid
604 * 0x80, Vaux1SwHPReqValid
606 REG_INIT(AB8500_REGUSWHPREQVALID1
, 0x03, 0x0d, 0xa0),
608 * 0x01, Vaux2SwHPReqValid
609 * 0x02, Vaux3SwHPReqValid
610 * 0x04, VextSupply1SwHPReqValid
611 * 0x08, VextSupply2SwHPReqValid
612 * 0x10, VextSupply3SwHPReqValid
614 REG_INIT(AB8500_REGUSWHPREQVALID2
, 0x03, 0x0e, 0x1f),
616 * 0x02, SysClkReq2Valid1
618 * 0x80, SysClkReq8Valid1
620 REG_INIT(AB8500_REGUSYSCLKREQVALID1
, 0x03, 0x0f, 0xfe),
622 * 0x02, SysClkReq2Valid2
624 * 0x80, SysClkReq8Valid2
626 REG_INIT(AB8500_REGUSYSCLKREQVALID2
, 0x03, 0x10, 0xfe),
629 * 0x04, Vintcore12Ena
630 * 0x38, Vintcore12Sel
634 REG_INIT(AB8500_REGUMISC1
, 0x03, 0x80, 0xfe),
641 REG_INIT(AB8500_VAUDIOSUPPLY
, 0x03, 0x83, 0x1e),
646 REG_INIT(AB8500_REGUCTRL1VAMIC
, 0x03, 0x84, 0x03),
651 REG_INIT(AB8500_VPLLVANAREGU
, 0x04, 0x06, 0x0f),
654 * 0x02, VrefDDRSleepMode
656 REG_INIT(AB8500_VREFDDR
, 0x04, 0x07, 0x03),
658 * 0x03, VextSupply1Regu
659 * 0x0c, VextSupply2Regu
660 * 0x30, VextSupply3Regu
661 * 0x40, ExtSupply2Bypass
662 * 0x80, ExtSupply3Bypass
664 REG_INIT(AB8500_EXTSUPPLYREGU
, 0x04, 0x08, 0xff),
669 REG_INIT(AB8500_VAUX12REGU
, 0x04, 0x09, 0x0f),
673 REG_INIT(AB8500_VRF1VAUX3REGU
, 0x04, 0x0a, 0x03),
677 REG_INIT(AB8500_VSMPS1SEL1
, 0x04, 0x13, 0x3f),
681 REG_INIT(AB8500_VAUX1SEL
, 0x04, 0x1f, 0x0f),
685 REG_INIT(AB8500_VAUX2SEL
, 0x04, 0x20, 0x0f),
689 REG_INIT(AB8500_VRF1VAUX3SEL
, 0x04, 0x21, 0x07),
691 * 0x01, VextSupply12LP
693 REG_INIT(AB8500_REGUCTRL2SPARE
, 0x04, 0x22, 0x01),
698 * 0x20, Vintcore12Disch
702 REG_INIT(AB8500_REGUCTRLDISCH
, 0x04, 0x43, 0xfc),
705 * 0x04, VdmicPullDownEna
708 REG_INIT(AB8500_REGUCTRLDISCH2
, 0x04, 0x44, 0x16),
712 ab8500_regulator_init_registers(struct platform_device
*pdev
, int id
, int value
)
716 if (value
& ~ab8500_reg_init
[id
].mask
) {
718 "Configuration error: value outside mask.\n");
722 err
= abx500_mask_and_set_register_interruptible(
724 ab8500_reg_init
[id
].bank
,
725 ab8500_reg_init
[id
].addr
,
726 ab8500_reg_init
[id
].mask
,
730 "Failed to initialize 0x%02x, 0x%02x.\n",
731 ab8500_reg_init
[id
].bank
,
732 ab8500_reg_init
[id
].addr
);
737 "init: 0x%02x, 0x%02x, 0x%02x, 0x%02x\n",
738 ab8500_reg_init
[id
].bank
,
739 ab8500_reg_init
[id
].addr
,
740 ab8500_reg_init
[id
].mask
,
746 static __devinit
int ab8500_regulator_register(struct platform_device
*pdev
,
747 struct regulator_init_data
*init_data
,
749 struct device_node
*np
)
751 struct ab8500_regulator_info
*info
= NULL
;
752 struct regulator_config config
= { };
755 /* assign per-regulator data */
756 info
= &ab8500_regulator_info
[id
];
757 info
->dev
= &pdev
->dev
;
759 config
.dev
= &pdev
->dev
;
760 config
.init_data
= init_data
;
761 config
.driver_data
= info
;
764 /* fix for hardware before ab8500v2.0 */
765 if (abx500_get_chip_id(info
->dev
) < 0x20) {
766 if (info
->desc
.id
== AB8500_LDO_AUX3
) {
767 info
->desc
.n_voltages
=
768 ARRAY_SIZE(ldo_vauxn_voltages
);
769 info
->voltages
= ldo_vauxn_voltages
;
771 ARRAY_SIZE(ldo_vauxn_voltages
);
772 info
->voltage_mask
= 0xf;
776 /* register regulator with framework */
777 info
->regulator
= regulator_register(&info
->desc
, &config
);
778 if (IS_ERR(info
->regulator
)) {
779 err
= PTR_ERR(info
->regulator
);
780 dev_err(&pdev
->dev
, "failed to register regulator %s\n",
782 /* when we fail, un-register all earlier regulators */
784 info
= &ab8500_regulator_info
[id
];
785 regulator_unregister(info
->regulator
);
793 static __devinit
int ab8500_regulator_probe(struct platform_device
*pdev
)
795 struct ab8500
*ab8500
= dev_get_drvdata(pdev
->dev
.parent
);
796 struct ab8500_platform_data
*pdata
;
800 dev_err(&pdev
->dev
, "null mfd parent\n");
803 pdata
= dev_get_platdata(ab8500
->dev
);
805 dev_err(&pdev
->dev
, "null pdata\n");
809 /* make sure the platform data has the correct size */
810 if (pdata
->num_regulator
!= ARRAY_SIZE(ab8500_regulator_info
)) {
811 dev_err(&pdev
->dev
, "Configuration error: size mismatch.\n");
815 /* initialize registers */
816 for (i
= 0; i
< pdata
->num_regulator_reg_init
; i
++) {
819 id
= pdata
->regulator_reg_init
[i
].id
;
820 value
= pdata
->regulator_reg_init
[i
].value
;
822 /* check for configuration errors */
823 if (id
>= AB8500_NUM_REGULATOR_REGISTERS
) {
825 "Configuration error: id outside range.\n");
829 err
= ab8500_regulator_init_registers(pdev
, id
, value
);
834 /* register all regulators */
835 for (i
= 0; i
< ARRAY_SIZE(ab8500_regulator_info
); i
++) {
836 err
= ab8500_regulator_register(pdev
, &pdata
->regulator
[i
], i
, NULL
);
844 static __devexit
int ab8500_regulator_remove(struct platform_device
*pdev
)
848 for (i
= 0; i
< ARRAY_SIZE(ab8500_regulator_info
); i
++) {
849 struct ab8500_regulator_info
*info
= NULL
;
850 info
= &ab8500_regulator_info
[i
];
852 dev_vdbg(rdev_get_dev(info
->regulator
),
853 "%s-remove\n", info
->desc
.name
);
855 regulator_unregister(info
->regulator
);
861 static struct platform_driver ab8500_regulator_driver
= {
862 .probe
= ab8500_regulator_probe
,
863 .remove
= __devexit_p(ab8500_regulator_remove
),
865 .name
= "ab8500-regulator",
866 .owner
= THIS_MODULE
,
870 static int __init
ab8500_regulator_init(void)
874 ret
= platform_driver_register(&ab8500_regulator_driver
);
876 pr_err("Failed to register ab8500 regulator: %d\n", ret
);
880 subsys_initcall(ab8500_regulator_init
);
882 static void __exit
ab8500_regulator_exit(void)
884 platform_driver_unregister(&ab8500_regulator_driver
);
886 module_exit(ab8500_regulator_exit
);
888 MODULE_LICENSE("GPL v2");
889 MODULE_AUTHOR("Sundar Iyer <sundar.iyer@stericsson.com>");
890 MODULE_DESCRIPTION("Regulator Driver for ST-Ericsson AB8500 Mixed-Sig PMIC");
891 MODULE_ALIAS("platform:ab8500-regulator");