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)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:42:47 +0000 (13:42 -0700)
commit4826b1ad53e4a06c2facd8daacd3541fb3d54566
treef83819c4abb7097efe6062d0772b09e5bf50c12a
parentee22651109f45dfa6af9b2b82a1b75f2b438e33f
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)

Change-Id: I3a0d439e6f52a963a32e191145a6cdd36bc5e01b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/265530
GVS: Gerrit_Virtual_Submit
drivers/regulator/core.c
include/linux/regulator/machine.h