regulator: core: add support to set startup delay from platform
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 7 Aug 2013 09:24:25 +0000 (14:24 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Sat, 31 Aug 2013 06:50:42 +0000 (23:50 -0700)
commitfb1a36b8bd1c53b71ffec4311b6f19fadc8f3d8b
tree2a33ab481d8eb4d9a511be7dabef212fb591655d
parent1f9b75433bdd61662f7d1a2fa438e0e9e34d2411
regulator: core: add support to set startup delay from platform

The startup delay of rail depends on the PMIC design and the platform
design. The startup delay is provided based on PMIC datasheet through
regulator callback.

Add support to provide the platform specific startup delay during
regulator registration through regulator constraints.

The actual delay will be taken from constraints and if it is zero
then based on datasheet.

bug 1317941

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

bug 1348506

Change-Id: I3a0d439e6f52a963a32e191145a6cdd36bc5e01b
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/267822
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
drivers/regulator/core.c
include/linux/regulator/machine.h