regulator: add support for USB voltage regulator
authorBengt Jonsson <bengt.g.jonsson@stericsson.com>
Thu, 10 Mar 2011 13:43:31 +0000 (14:43 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Sat, 26 Mar 2011 14:15:05 +0000 (14:15 +0000)
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>
drivers/regulator/ab8500.c
include/linux/regulator/ab8500.h

index d9a052c53aec2d8d9ed958026748c886dc3c0aad..5a77630095d99260bc2a91858b36a230eb91f139 100644 (file)
@@ -9,7 +9,7 @@
  * AB8500 peripheral regulators
  *
  * AB8500 supports the following regulators:
- *   VAUX1/2/3, VINTCORE, VTVOUT, VAUDIO, VAMIC1/2, VDMIC, VANA
+ *   VAUX1/2/3, VINTCORE, VTVOUT, VUSB, VAUDIO, VAMIC1/2, VDMIC, VANA
  */
 #include <linux/init.h>
 #include <linux/kernel.h>
@@ -432,6 +432,21 @@ static struct ab8500_regulator_info
                .update_mask            = 0x82,
                .update_val_enable      = 0x02,
        },
+       [AB8500_LDO_USB] = {
+               .desc = {
+                       .name           = "LDO-USB",
+                       .ops            = &ab8500_regulator_fixed_ops,
+                       .type           = REGULATOR_VOLTAGE,
+                       .id             = AB8500_LDO_USB,
+                       .owner          = THIS_MODULE,
+                       .n_voltages     = 1,
+               },
+               .fixed_uV               = 3300000,
+               .update_bank            = 0x03,
+               .update_reg             = 0x82,
+               .update_mask            = 0x03,
+               .update_val_enable      = 0x01,
+       },
        [AB8500_LDO_AUDIO] = {
                .desc = {
                        .name           = "LDO-AUDIO",
index 6a210f1511fc5b10ba663c709f8d85fd6d364076..d4eacdef2017c6f9df846efd060b81945b50cbe1 100644 (file)
@@ -17,6 +17,7 @@ enum ab8500_regulator_id {
        AB8500_LDO_AUX3,
        AB8500_LDO_INTCORE,
        AB8500_LDO_TVOUT,
+       AB8500_LDO_USB,
        AB8500_LDO_AUDIO,
        AB8500_LDO_ANAMIC1,
        AB8500_LDO_ANAMIC2,