summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2012-01-03 14:30:31 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 10:59:26 +0200
commitba5d9986a256cee0d3061f21ac428e29b3251c20 (patch)
tree743ea2855b5c7fbf6ab468676dd8b8005d0a01c9 /arch
parenta5bcb75c00cdb6a7cd8dcf1b74e1a2bea46f479d (diff)
u5500: keep LDO_H always on
The software specification says: "The sub camera is put in standby by setting GPIO_002 (CAM_SUB_PWDN) high and leaving the power supplies on, shutting only one power supply off will result in a leakage current of 1.1mA, Leaving both supplies on results in a leakage current of 15uA". Both supplies here are LDO_H and VIO, and since VIO is always on, keep LDO_H always on too, setting it to low power mode instead of disabling it. ST-Ericsson ID: 407971 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I7ce2c30b761e04a26270718e2c92f4a609a07995 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44142 Reviewed-by: QATOOLS Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com> Reviewed-by: QABUILD
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/board-u5500-regulators.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-u5500-regulators.c b/arch/arm/mach-ux500/board-u5500-regulators.c
index 11f61b6cd19..9e343259e53 100644
--- a/arch/arm/mach-ux500/board-u5500-regulators.c
+++ b/arch/arm/mach-ux500/board-u5500-regulators.c
@@ -150,8 +150,20 @@ ab5500_regulator_init_data[AB5500_NUM_REGULATORS] = {
},
};
+static struct ab5500_regulator_data
+ab5500_regulator_data[AB5500_NUM_REGULATORS] = {
+ [AB5500_LDO_H] = {
+ /*
+ * The sub camera on the dev boards needs both supplies to be
+ * on to avoid high leakage.
+ */
+ .off_is_lowpower = true,
+ },
+};
+
struct ab5500_regulator_platform_data u5500_ab5500_regulator_data = {
.regulator = ab5500_regulator_init_data,
+ .data = ab5500_regulator_data,
.num_regulator = ARRAY_SIZE(ab5500_regulator_init_data),
};