regulator: ab8500: Add missing enable_time settings
authorAxel Lin <axel.lin@ingics.com>
Wed, 27 Mar 2013 09:47:22 +0000 (17:47 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Mar 2013 23:17:05 +0000 (23:17 +0000)
Base on the data provide by Bengt Jönsson, add below enable_time settings:

Worst case enable time from data sheet:
Vana: enable time = 140 us
Vaux1/2: enable time = 200 us
Vaux3: enable time = 450 us
Vintcore: enable time = 750 us
Vamic1/2: enable time = 500 us
Vdmic: enable time = 420 us
VTVout: enable time = 500 us
Vaudio: enable time = 140 us
Vusb: enable time = 150 us

This discussion thread is available at: https://lkml.org/lkml/2013/3/26/795

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c

index 4a70323377d336034c68c53d0ec1cbb92616b4d3..d9443b9b384a8799436a0c3135f093fad6b16c22 100644 (file)
@@ -395,6 +395,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = ARRAY_SIZE(ldo_vauxn_voltages),
                        .volt_table     = ldo_vauxn_voltages,
+                       .enable_time    = 200,
                },
                .load_lp_uA             = 5000,
                .update_bank            = 0x04,
@@ -416,6 +417,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = ARRAY_SIZE(ldo_vauxn_voltages),
                        .volt_table     = ldo_vauxn_voltages,
+                       .enable_time    = 200,
                },
                .load_lp_uA             = 5000,
                .update_bank            = 0x04,
@@ -437,6 +439,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = ARRAY_SIZE(ldo_vaux3_voltages),
                        .volt_table     = ldo_vaux3_voltages,
+                       .enable_time    = 450,
                },
                .load_lp_uA             = 5000,
                .update_bank            = 0x04,
@@ -458,6 +461,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = ARRAY_SIZE(ldo_vintcore_voltages),
                        .volt_table     = ldo_vintcore_voltages,
+                       .enable_time    = 750,
                },
                .load_lp_uA             = 5000,
                .update_bank            = 0x03,
@@ -510,6 +514,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = 1,
                        .min_uV         = 3300000,
+                       .enable_time    = 150,
                },
                .update_bank            = 0x03,
                .update_reg             = 0x82,
@@ -524,6 +529,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = 1,
                        .min_uV         = 2000000,
+                       .enable_time    = 140,
                },
                .update_bank            = 0x03,
                .update_reg             = 0x83,
@@ -539,6 +545,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = 1,
                        .min_uV         = 2050000,
+                       .enable_time    = 500,
                },
                .update_bank            = 0x03,
                .update_reg             = 0x83,
@@ -554,6 +561,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = 1,
                        .min_uV         = 2050000,
+                       .enable_time    = 500,
                },
                .update_bank            = 0x03,
                .update_reg             = 0x83,
@@ -569,6 +577,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = 1,
                        .min_uV         = 1800000,
+                       .enable_time    = 420,
                },
                .update_bank            = 0x03,
                .update_reg             = 0x83,
@@ -588,6 +597,7 @@ static struct ab8500_regulator_info
                        .owner          = THIS_MODULE,
                        .n_voltages     = 1,
                        .min_uV         = 1200000,
+                       .enable_time    = 140,
                },
                .load_lp_uA             = 1000,
                .update_bank            = 0x04,