regulator: rk808: Set the enable time for LDOs
authorDoug Anderson <dianders@chromium.org>
Sat, 21 Feb 2015 00:53:38 +0000 (16:53 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 28 Mar 2015 13:51:22 +0000 (09:51 -0400)
commit084968adf59f1cd61a9451a0be1ba384eafe6d04
tree04383ec4df2b9da8ef1507dabbe1a4f21b9cd32c
parent45eacb50e531e3e4ac5d81612fb0ad95143a3ce6
regulator: rk808: Set the enable time for LDOs

[ Upstream commit 28249b0c2fa361cdac450a6f40242ed45408a24f ]

The LDOs are documented in the rk808 datasheet to have a soft start
time of 400us.  Add that to the driver.  If this time takes longer on
a certain board the device tree should be able to override with
"regulator-enable-ramp-delay".

This fixes some dw_mmc probing problems (together with other patches
posted to the mmc maiing lists) on rk3288.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/regulator/rk808-regulator.c