Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: add support for USB voltage regulator

Signed-off-by: Bengt Jonsson <bengt.g.jonsson@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>

authored by

Bengt Jonsson and committed by
Liam Girdwood
ea05ef31 19c98825

+17 -1
+16 -1
drivers/regulator/ab8500.c
··· 9 9 * AB8500 peripheral regulators 10 10 * 11 11 * AB8500 supports the following regulators: 12 - * VAUX1/2/3, VINTCORE, VTVOUT, VAUDIO, VAMIC1/2, VDMIC, VANA 12 + * VAUX1/2/3, VINTCORE, VTVOUT, VUSB, VAUDIO, VAMIC1/2, VDMIC, VANA 13 13 */ 14 14 #include <linux/init.h> 15 15 #include <linux/kernel.h> ··· 431 431 .update_reg = 0x80, 432 432 .update_mask = 0x82, 433 433 .update_val_enable = 0x02, 434 + }, 435 + [AB8500_LDO_USB] = { 436 + .desc = { 437 + .name = "LDO-USB", 438 + .ops = &ab8500_regulator_fixed_ops, 439 + .type = REGULATOR_VOLTAGE, 440 + .id = AB8500_LDO_USB, 441 + .owner = THIS_MODULE, 442 + .n_voltages = 1, 443 + }, 444 + .fixed_uV = 3300000, 445 + .update_bank = 0x03, 446 + .update_reg = 0x82, 447 + .update_mask = 0x03, 448 + .update_val_enable = 0x01, 434 449 }, 435 450 [AB8500_LDO_AUDIO] = { 436 451 .desc = {
+1
include/linux/regulator/ab8500.h
··· 17 17 AB8500_LDO_AUX3, 18 18 AB8500_LDO_INTCORE, 19 19 AB8500_LDO_TVOUT, 20 + AB8500_LDO_USB, 20 21 AB8500_LDO_AUDIO, 21 22 AB8500_LDO_ANAMIC1, 22 23 AB8500_LDO_ANAMIC2,