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>
22 #include <linux/regulator/of_regulator.h>
23 #include <linux/regulator/driver.h>
24 #include <linux/regulator/machine.h>
25 #include <linux/regulator/ab8500.h>
26 #include <linux/slab.h>
29 * struct ab8500_regulator_info - ab8500 regulator information
30 * @dev: device pointer
31 * @desc: regulator description
32 * @regulator_dev: regulator device
33 * @max_uV: maximum voltage (for variable voltage supplies)
34 * @min_uV: minimum voltage (for variable voltage supplies)
35 * @fixed_uV: typical voltage (for fixed voltage supplies)
36 * @update_bank: bank to control on/off
37 * @update_reg: register to control on/off
38 * @update_mask: mask to enable/disable regulator
39 * @update_val_enable: bits to enable the regulator in normal (high power) mode
40 * @voltage_bank: bank to control regulator voltage
41 * @voltage_reg: register to control regulator voltage
42 * @voltage_mask: mask to control regulator voltage
43 * @delay: startup/set voltage delay in us
45 struct ab8500_regulator_info {
47 struct regulator_desc desc;
48 struct regulator_dev *regulator;
62 /* voltage tables for the vauxn/vintcore supplies */
63 static const unsigned int ldo_vauxn_voltages[] = {
82 static const unsigned int ldo_vaux3_voltages[] = {
93 static const unsigned int ldo_vintcore_voltages[] = {
103 static int ab8500_regulator_enable(struct regulator_dev *rdev)
106 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
109 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
113 ret = abx500_mask_and_set_register_interruptible(info->dev,
114 info->update_bank, info->update_reg,
115 info->update_mask, info->update_val_enable);
117 dev_err(rdev_get_dev(rdev),
118 "couldn't set enable bits for regulator\n");
120 dev_vdbg(rdev_get_dev(rdev),
121 "%s-enable (bank, reg, mask, value): 0x%x, 0x%x, 0x%x, 0x%x\n",
122 info->desc.name, info->update_bank, info->update_reg,
123 info->update_mask, info->update_val_enable);
128 static int ab8500_regulator_disable(struct regulator_dev *rdev)
131 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
134 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
138 ret = abx500_mask_and_set_register_interruptible(info->dev,
139 info->update_bank, info->update_reg,
140 info->update_mask, 0x0);
142 dev_err(rdev_get_dev(rdev),
143 "couldn't set disable bits for regulator\n");
145 dev_vdbg(rdev_get_dev(rdev),
146 "%s-disable (bank, reg, mask, value): 0x%x, 0x%x, 0x%x, 0x%x\n",
147 info->desc.name, info->update_bank, info->update_reg,
148 info->update_mask, 0x0);
153 static int ab8500_regulator_is_enabled(struct regulator_dev *rdev)
156 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
160 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
164 ret = abx500_get_register_interruptible(info->dev,
165 info->update_bank, info->update_reg, ®val);
167 dev_err(rdev_get_dev(rdev),
168 "couldn't read 0x%x register\n", info->update_reg);
172 dev_vdbg(rdev_get_dev(rdev),
173 "%s-is_enabled (bank, reg, mask, value): 0x%x, 0x%x, 0x%x,"
175 info->desc.name, info->update_bank, info->update_reg,
176 info->update_mask, regval);
178 if (regval & info->update_mask)
184 static int ab8500_regulator_get_voltage_sel(struct regulator_dev *rdev)
187 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
191 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
195 ret = abx500_get_register_interruptible(info->dev,
196 info->voltage_bank, info->voltage_reg, ®val);
198 dev_err(rdev_get_dev(rdev),
199 "couldn't read voltage reg for regulator\n");
203 dev_vdbg(rdev_get_dev(rdev),
204 "%s-get_voltage (bank, reg, mask, value): 0x%x, 0x%x, 0x%x,"
206 info->desc.name, info->voltage_bank, info->voltage_reg,
207 info->voltage_mask, regval);
209 /* vintcore has a different layout */
210 val = regval & info->voltage_mask;
211 if (info->desc.id == AB8500_LDO_INTCORE)
217 static int ab8500_regulator_set_voltage_sel(struct regulator_dev *rdev,
221 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
225 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
229 /* set the registers for the request */
230 regval = (u8)selector;
231 ret = abx500_mask_and_set_register_interruptible(info->dev,
232 info->voltage_bank, info->voltage_reg,
233 info->voltage_mask, regval);
235 dev_err(rdev_get_dev(rdev),
236 "couldn't set voltage reg for regulator\n");
238 dev_vdbg(rdev_get_dev(rdev),
239 "%s-set_voltage (bank, reg, mask, value): 0x%x, 0x%x, 0x%x,"
241 info->desc.name, info->voltage_bank, info->voltage_reg,
242 info->voltage_mask, regval);
247 static int ab8500_regulator_enable_time(struct regulator_dev *rdev)
249 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
254 static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
255 unsigned int old_sel,
256 unsigned int new_sel)
258 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
263 static struct regulator_ops ab8500_regulator_ops = {
264 .enable = ab8500_regulator_enable,
265 .disable = ab8500_regulator_disable,
266 .is_enabled = ab8500_regulator_is_enabled,
267 .get_voltage_sel = ab8500_regulator_get_voltage_sel,
268 .set_voltage_sel = ab8500_regulator_set_voltage_sel,
269 .list_voltage = regulator_list_voltage_table,
270 .enable_time = ab8500_regulator_enable_time,
271 .set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
274 static int ab8500_fixed_list_voltage(struct regulator_dev *rdev,
277 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
280 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
284 return info->fixed_uV;
287 static int ab8500_fixed_get_voltage(struct regulator_dev *rdev)
289 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
292 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
296 return info->fixed_uV;
299 static struct regulator_ops ab8500_regulator_fixed_ops = {
300 .enable = ab8500_regulator_enable,
301 .disable = ab8500_regulator_disable,
302 .is_enabled = ab8500_regulator_is_enabled,
303 .get_voltage = ab8500_fixed_get_voltage,
304 .list_voltage = ab8500_fixed_list_voltage,
305 .enable_time = ab8500_regulator_enable_time,
306 .set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
309 static struct ab8500_regulator_info
310 ab8500_regulator_info[AB8500_NUM_REGULATORS] = {
312 * Variable Voltage Regulators
313 * name, min mV, max mV,
314 * update bank, reg, mask, enable val
315 * volt bank, reg, mask
317 [AB8500_LDO_AUX1] = {
320 .ops = &ab8500_regulator_ops,
321 .type = REGULATOR_VOLTAGE,
322 .id = AB8500_LDO_AUX1,
323 .owner = THIS_MODULE,
324 .n_voltages = ARRAY_SIZE(ldo_vauxn_voltages),
325 .volt_table = ldo_vauxn_voltages,
332 .update_val_enable = 0x01,
333 .voltage_bank = 0x04,
335 .voltage_mask = 0x0f,
337 [AB8500_LDO_AUX2] = {
340 .ops = &ab8500_regulator_ops,
341 .type = REGULATOR_VOLTAGE,
342 .id = AB8500_LDO_AUX2,
343 .owner = THIS_MODULE,
344 .n_voltages = ARRAY_SIZE(ldo_vauxn_voltages),
345 .volt_table = ldo_vauxn_voltages,
352 .update_val_enable = 0x04,
353 .voltage_bank = 0x04,
355 .voltage_mask = 0x0f,
357 [AB8500_LDO_AUX3] = {
360 .ops = &ab8500_regulator_ops,
361 .type = REGULATOR_VOLTAGE,
362 .id = AB8500_LDO_AUX3,
363 .owner = THIS_MODULE,
364 .n_voltages = ARRAY_SIZE(ldo_vaux3_voltages),
365 .volt_table = ldo_vaux3_voltages,
372 .update_val_enable = 0x01,
373 .voltage_bank = 0x04,
375 .voltage_mask = 0x07,
377 [AB8500_LDO_INTCORE] = {
379 .name = "LDO-INTCORE",
380 .ops = &ab8500_regulator_ops,
381 .type = REGULATOR_VOLTAGE,
382 .id = AB8500_LDO_INTCORE,
383 .owner = THIS_MODULE,
384 .n_voltages = ARRAY_SIZE(ldo_vintcore_voltages),
385 .volt_table = ldo_vintcore_voltages,
392 .update_val_enable = 0x04,
393 .voltage_bank = 0x03,
395 .voltage_mask = 0x38,
399 * Fixed Voltage Regulators
401 * update bank, reg, mask, enable val
403 [AB8500_LDO_TVOUT] = {
406 .ops = &ab8500_regulator_fixed_ops,
407 .type = REGULATOR_VOLTAGE,
408 .id = AB8500_LDO_TVOUT,
409 .owner = THIS_MODULE,
417 .update_val_enable = 0x02,
422 .ops = &ab8500_regulator_fixed_ops,
423 .type = REGULATOR_VOLTAGE,
424 .id = AB8500_LDO_USB,
425 .owner = THIS_MODULE,
432 .update_val_enable = 0x01,
434 [AB8500_LDO_AUDIO] = {
437 .ops = &ab8500_regulator_fixed_ops,
438 .type = REGULATOR_VOLTAGE,
439 .id = AB8500_LDO_AUDIO,
440 .owner = THIS_MODULE,
447 .update_val_enable = 0x02,
449 [AB8500_LDO_ANAMIC1] = {
451 .name = "LDO-ANAMIC1",
452 .ops = &ab8500_regulator_fixed_ops,
453 .type = REGULATOR_VOLTAGE,
454 .id = AB8500_LDO_ANAMIC1,
455 .owner = THIS_MODULE,
462 .update_val_enable = 0x08,
464 [AB8500_LDO_ANAMIC2] = {
466 .name = "LDO-ANAMIC2",
467 .ops = &ab8500_regulator_fixed_ops,
468 .type = REGULATOR_VOLTAGE,
469 .id = AB8500_LDO_ANAMIC2,
470 .owner = THIS_MODULE,
477 .update_val_enable = 0x10,
479 [AB8500_LDO_DMIC] = {
482 .ops = &ab8500_regulator_fixed_ops,
483 .type = REGULATOR_VOLTAGE,
484 .id = AB8500_LDO_DMIC,
485 .owner = THIS_MODULE,
492 .update_val_enable = 0x04,
497 .ops = &ab8500_regulator_fixed_ops,
498 .type = REGULATOR_VOLTAGE,
499 .id = AB8500_LDO_ANA,
500 .owner = THIS_MODULE,
507 .update_val_enable = 0x04,
513 struct ab8500_reg_init {
519 #define REG_INIT(_id, _bank, _addr, _mask) \
526 static struct ab8500_reg_init ab8500_reg_init[] = {
528 * 0x30, VanaRequestCtrl
529 * 0x0C, VpllRequestCtrl
530 * 0xc0, VextSupply1RequestCtrl
532 REG_INIT(AB8500_REGUREQUESTCTRL2, 0x03, 0x04, 0xfc),
534 * 0x03, VextSupply2RequestCtrl
535 * 0x0c, VextSupply3RequestCtrl
536 * 0x30, Vaux1RequestCtrl
537 * 0xc0, Vaux2RequestCtrl
539 REG_INIT(AB8500_REGUREQUESTCTRL3, 0x03, 0x05, 0xff),
541 * 0x03, Vaux3RequestCtrl
544 REG_INIT(AB8500_REGUREQUESTCTRL4, 0x03, 0x06, 0x07),
546 * 0x08, VanaSysClkReq1HPValid
547 * 0x20, Vaux1SysClkReq1HPValid
548 * 0x40, Vaux2SysClkReq1HPValid
549 * 0x80, Vaux3SysClkReq1HPValid
551 REG_INIT(AB8500_REGUSYSCLKREQ1HPVALID1, 0x03, 0x07, 0xe8),
553 * 0x10, VextSupply1SysClkReq1HPValid
554 * 0x20, VextSupply2SysClkReq1HPValid
555 * 0x40, VextSupply3SysClkReq1HPValid
557 REG_INIT(AB8500_REGUSYSCLKREQ1HPVALID2, 0x03, 0x08, 0x70),
559 * 0x08, VanaHwHPReq1Valid
560 * 0x20, Vaux1HwHPReq1Valid
561 * 0x40, Vaux2HwHPReq1Valid
562 * 0x80, Vaux3HwHPReq1Valid
564 REG_INIT(AB8500_REGUHWHPREQ1VALID1, 0x03, 0x09, 0xe8),
566 * 0x01, VextSupply1HwHPReq1Valid
567 * 0x02, VextSupply2HwHPReq1Valid
568 * 0x04, VextSupply3HwHPReq1Valid
570 REG_INIT(AB8500_REGUHWHPREQ1VALID2, 0x03, 0x0a, 0x07),
572 * 0x08, VanaHwHPReq2Valid
573 * 0x20, Vaux1HwHPReq2Valid
574 * 0x40, Vaux2HwHPReq2Valid
575 * 0x80, Vaux3HwHPReq2Valid
577 REG_INIT(AB8500_REGUHWHPREQ2VALID1, 0x03, 0x0b, 0xe8),
579 * 0x01, VextSupply1HwHPReq2Valid
580 * 0x02, VextSupply2HwHPReq2Valid
581 * 0x04, VextSupply3HwHPReq2Valid
583 REG_INIT(AB8500_REGUHWHPREQ2VALID2, 0x03, 0x0c, 0x07),
585 * 0x20, VanaSwHPReqValid
586 * 0x80, Vaux1SwHPReqValid
588 REG_INIT(AB8500_REGUSWHPREQVALID1, 0x03, 0x0d, 0xa0),
590 * 0x01, Vaux2SwHPReqValid
591 * 0x02, Vaux3SwHPReqValid
592 * 0x04, VextSupply1SwHPReqValid
593 * 0x08, VextSupply2SwHPReqValid
594 * 0x10, VextSupply3SwHPReqValid
596 REG_INIT(AB8500_REGUSWHPREQVALID2, 0x03, 0x0e, 0x1f),
598 * 0x02, SysClkReq2Valid1
600 * 0x80, SysClkReq8Valid1
602 REG_INIT(AB8500_REGUSYSCLKREQVALID1, 0x03, 0x0f, 0xfe),
604 * 0x02, SysClkReq2Valid2
606 * 0x80, SysClkReq8Valid2
608 REG_INIT(AB8500_REGUSYSCLKREQVALID2, 0x03, 0x10, 0xfe),
611 * 0x04, Vintcore12Ena
612 * 0x38, Vintcore12Sel
616 REG_INIT(AB8500_REGUMISC1, 0x03, 0x80, 0xfe),
623 REG_INIT(AB8500_VAUDIOSUPPLY, 0x03, 0x83, 0x1e),
628 REG_INIT(AB8500_REGUCTRL1VAMIC, 0x03, 0x84, 0x03),
633 REG_INIT(AB8500_VPLLVANAREGU, 0x04, 0x06, 0x0f),
636 * 0x02, VrefDDRSleepMode
638 REG_INIT(AB8500_VREFDDR, 0x04, 0x07, 0x03),
640 * 0x03, VextSupply1Regu
641 * 0x0c, VextSupply2Regu
642 * 0x30, VextSupply3Regu
643 * 0x40, ExtSupply2Bypass
644 * 0x80, ExtSupply3Bypass
646 REG_INIT(AB8500_EXTSUPPLYREGU, 0x04, 0x08, 0xff),
651 REG_INIT(AB8500_VAUX12REGU, 0x04, 0x09, 0x0f),
655 REG_INIT(AB8500_VRF1VAUX3REGU, 0x04, 0x0a, 0x03),
659 REG_INIT(AB8500_VSMPS1SEL1, 0x04, 0x13, 0x3f),
663 REG_INIT(AB8500_VAUX1SEL, 0x04, 0x1f, 0x0f),
667 REG_INIT(AB8500_VAUX2SEL, 0x04, 0x20, 0x0f),
671 REG_INIT(AB8500_VRF1VAUX3SEL, 0x04, 0x21, 0x07),
673 * 0x01, VextSupply12LP
675 REG_INIT(AB8500_REGUCTRL2SPARE, 0x04, 0x22, 0x01),
680 * 0x20, Vintcore12Disch
684 REG_INIT(AB8500_REGUCTRLDISCH, 0x04, 0x43, 0xfc),
687 * 0x04, VdmicPullDownEna
690 REG_INIT(AB8500_REGUCTRLDISCH2, 0x04, 0x44, 0x16),
694 ab8500_regulator_init_registers(struct platform_device *pdev, int id, int value)
698 if (value & ~ab8500_reg_init[id].mask) {
700 "Configuration error: value outside mask.\n");
704 err = abx500_mask_and_set_register_interruptible(
706 ab8500_reg_init[id].bank,
707 ab8500_reg_init[id].addr,
708 ab8500_reg_init[id].mask,
712 "Failed to initialize 0x%02x, 0x%02x.\n",
713 ab8500_reg_init[id].bank,
714 ab8500_reg_init[id].addr);
719 "init: 0x%02x, 0x%02x, 0x%02x, 0x%02x\n",
720 ab8500_reg_init[id].bank,
721 ab8500_reg_init[id].addr,
722 ab8500_reg_init[id].mask,
728 static __devinit int ab8500_regulator_register(struct platform_device *pdev,
729 struct regulator_init_data *init_data,
731 struct device_node *np)
733 struct ab8500_regulator_info *info = NULL;
734 struct regulator_config config = { };
737 /* assign per-regulator data */
738 info = &ab8500_regulator_info[id];
739 info->dev = &pdev->dev;
741 config.dev = &pdev->dev;
742 config.init_data = init_data;
743 config.driver_data = info;
746 /* fix for hardware before ab8500v2.0 */
747 if (abx500_get_chip_id(info->dev) < 0x20) {
748 if (info->desc.id == AB8500_LDO_AUX3) {
749 info->desc.n_voltages =
750 ARRAY_SIZE(ldo_vauxn_voltages);
751 info->desc.volt_table = ldo_vauxn_voltages;
752 info->voltage_mask = 0xf;
756 /* register regulator with framework */
757 info->regulator = regulator_register(&info->desc, &config);
758 if (IS_ERR(info->regulator)) {
759 err = PTR_ERR(info->regulator);
760 dev_err(&pdev->dev, "failed to register regulator %s\n",
762 /* when we fail, un-register all earlier regulators */
764 info = &ab8500_regulator_info[id];
765 regulator_unregister(info->regulator);
773 static struct of_regulator_match ab8500_regulator_matches[] = {
774 { .name = "ab8500_ldo_aux1", .driver_data = (void *) AB8500_LDO_AUX1, },
775 { .name = "ab8500_ldo_aux2", .driver_data = (void *) AB8500_LDO_AUX2, },
776 { .name = "ab8500_ldo_aux3", .driver_data = (void *) AB8500_LDO_AUX3, },
777 { .name = "ab8500_ldo_intcore", .driver_data = (void *) AB8500_LDO_INTCORE, },
778 { .name = "ab8500_ldo_tvout", .driver_data = (void *) AB8500_LDO_TVOUT, },
779 { .name = "ab8500_ldo_usb", .driver_data = (void *) AB8500_LDO_USB, },
780 { .name = "ab8500_ldo_audio", .driver_data = (void *) AB8500_LDO_AUDIO, },
781 { .name = "ab8500_ldo_anamic1", .driver_data = (void *) AB8500_LDO_ANAMIC1, },
782 { .name = "ab8500_ldo_amamic2", .driver_data = (void *) AB8500_LDO_ANAMIC2, },
783 { .name = "ab8500_ldo_dmic", .driver_data = (void *) AB8500_LDO_DMIC, },
784 { .name = "ab8500_ldo_ana", .driver_data = (void *) AB8500_LDO_ANA, },
788 ab8500_regulator_of_probe(struct platform_device *pdev, struct device_node *np)
792 for (i = 0; i < ARRAY_SIZE(ab8500_regulator_info); i++) {
793 err = ab8500_regulator_register(
794 pdev, ab8500_regulator_matches[i].init_data,
795 i, ab8500_regulator_matches[i].of_node);
803 static __devinit int ab8500_regulator_probe(struct platform_device *pdev)
805 struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent);
806 struct ab8500_platform_data *pdata;
807 struct device_node *np = pdev->dev.of_node;
811 err = of_regulator_match(&pdev->dev, np,
812 ab8500_regulator_matches,
813 ARRAY_SIZE(ab8500_regulator_matches));
816 "Error parsing regulator init data: %d\n", err);
820 err = ab8500_regulator_of_probe(pdev, np);
825 dev_err(&pdev->dev, "null mfd parent\n");
828 pdata = dev_get_platdata(ab8500->dev);
830 dev_err(&pdev->dev, "null pdata\n");
834 /* make sure the platform data has the correct size */
835 if (pdata->num_regulator != ARRAY_SIZE(ab8500_regulator_info)) {
836 dev_err(&pdev->dev, "Configuration error: size mismatch.\n");
840 /* initialize registers */
841 for (i = 0; i < pdata->num_regulator_reg_init; i++) {
844 id = pdata->regulator_reg_init[i].id;
845 value = pdata->regulator_reg_init[i].value;
847 /* check for configuration errors */
848 if (id >= AB8500_NUM_REGULATOR_REGISTERS) {
850 "Configuration error: id outside range.\n");
854 err = ab8500_regulator_init_registers(pdev, id, value);
859 /* register all regulators */
860 for (i = 0; i < ARRAY_SIZE(ab8500_regulator_info); i++) {
861 err = ab8500_regulator_register(pdev, &pdata->regulator[i], i, NULL);
869 static __devexit int ab8500_regulator_remove(struct platform_device *pdev)
873 for (i = 0; i < ARRAY_SIZE(ab8500_regulator_info); i++) {
874 struct ab8500_regulator_info *info = NULL;
875 info = &ab8500_regulator_info[i];
877 dev_vdbg(rdev_get_dev(info->regulator),
878 "%s-remove\n", info->desc.name);
880 regulator_unregister(info->regulator);
886 static const struct of_device_id ab8500_regulator_match[] = {
887 { .compatible = "stericsson,ab8500-regulator", },
891 static struct platform_driver ab8500_regulator_driver = {
892 .probe = ab8500_regulator_probe,
893 .remove = __devexit_p(ab8500_regulator_remove),
895 .name = "ab8500-regulator",
896 .owner = THIS_MODULE,
897 .of_match_table = ab8500_regulator_match,
901 static int __init ab8500_regulator_init(void)
905 ret = platform_driver_register(&ab8500_regulator_driver);
907 pr_err("Failed to register ab8500 regulator: %d\n", ret);
911 subsys_initcall(ab8500_regulator_init);
913 static void __exit ab8500_regulator_exit(void)
915 platform_driver_unregister(&ab8500_regulator_driver);
917 module_exit(ab8500_regulator_exit);
919 MODULE_LICENSE("GPL v2");
920 MODULE_AUTHOR("Sundar Iyer <sundar.iyer@stericsson.com>");
921 MODULE_DESCRIPTION("Regulator Driver for ST-Ericsson AB8500 Mixed-Sig PMIC");
922 MODULE_ALIAS("platform:ab8500-regulator");