power: regulator: support off-on-delay-us
PATCH 1/1 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 <[email protected]>
---
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(+)
drivers/power/regulator/regulator_common.c +4 -0
@@ -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 ; }
Signature · 1 line
2.16.4
PATCH 1/1 power: regulator: support off-on-delay-us
Quoted 3 lines · Peng Fan
off-on-delay-us has been supported by Linux, so let's use it.
Signed-off-by Peng Fan <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
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>