* [U-Boot] [PATCH] power: regulator: support off-on-delay-us
@ 2019-11-04 9:27 Peng Fan
2020-01-08 20:12 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan @ 2019-11-04 9:27 UTC (permalink / raw)
To: u-boot
off-on-delay-us has been supported by Linux, so let's use it.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
V1:
Linux Tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f7907e57aea2adcd0b57ebcca410e125412ab680
drivers/power/regulator/regulator_common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c
index 2041086567..939efb2c0d 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;
}
--
2.16.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] power: regulator: support off-on-delay-us
2019-11-04 9:27 [U-Boot] [PATCH] power: regulator: support off-on-delay-us Peng Fan
@ 2020-01-08 20:12 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2020-01-08 20:12 UTC (permalink / raw)
To: u-boot
On Mon, Nov 04, 2019 at 09:27:23AM +0000, Peng Fan wrote:
> off-on-delay-us has been supported by Linux, so let's use it.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200108/198f7fbe/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-08 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04 9:27 [U-Boot] [PATCH] power: regulator: support off-on-delay-us Peng Fan
2020-01-08 20:12 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.