regulator: palmas: add turn ON time for LDOs
Laxman Dewangan [Tue, 4 Jun 2013 14:53:48 +0000 (19:53 +0530)]
Palmas' LDO take 100 to 500us for turning it ON.
Add the enable time for LDOs.

bug 1289898

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235483
(cherry picked from commit 62402fff39ee70744b06062324722564895caf59)

bug 1317941

Change-Id: I8a8aeee04d2a53443e7281f3e066cf51cd5c17b2
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/258712
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/regulator/palmas-regulator.c

index 1d8a0d5..af7bedd 100644 (file)
@@ -735,6 +735,11 @@ static struct regulator_ops palmas_ops_smps10 = {
        .list_voltage           = palmas_list_voltage_smps10,
 };
 
+static int palmas_ldo_enable_time(struct regulator_dev *dev)
+{
+       return 500;
+}
+
 static int palmas_is_enabled_ldo(struct regulator_dev *dev)
 {
        struct palmas_pmic *pmic = rdev_get_drvdata(dev);
@@ -836,6 +841,7 @@ static int palmas_set_voltage_ldo_sel(struct regulator_dev *dev,
 }
 
 static struct regulator_ops palmas_ops_ldo = {
+       .enable_time            = palmas_ldo_enable_time,
        .is_enabled             = palmas_is_enabled_ldo,
        .enable                 = palmas_enable_ldo,
        .disable                = palmas_disable_ldo,