diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-11-04 09:27:23 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-07 11:13:25 -0500 |
commit | 5677fe9d6b82a931b058de76b1668fe5b63d4616 (patch) | |
tree | cf819ec600dd4b2fe1879a4a09639d81bcc7b86a /drivers | |
parent | 33fd41951a8bf61be33b2b793a2c87a62eb0c1cf (diff) | |
download | u-boot-5677fe9d6b82a931b058de76b1668fe5b63d4616.zip u-boot-5677fe9d6b82a931b058de76b1668fe5b63d4616.tar.gz u-boot-5677fe9d6b82a931b058de76b1668fe5b63d4616.tar.bz2 |
power: regulator: support off-on-delay-us
off-on-delay-us has been supported by Linux, so let's use it.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/regulator/regulator_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index 2041086..939efb2 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -37,7 +37,11 @@ int regulator_common_ofdata_to_platdata(struct udevice *dev, dev_pdata->startup_delay_us = dev_read_u32_default(dev, "startup-delay-us", 0); dev_pdata->off_on_delay_us = + dev_read_u32_default(dev, "off-on-delay-us", 0); + if (!dev_pdata->off_on_delay_us) { + dev_pdata->off_on_delay_us = dev_read_u32_default(dev, "u-boot,off-on-delay-us", 0); + } return 0; } |