All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] rockchip: rk3399: use regulators_enable_boot_on() to init regulator
@ 2017-04-12  4:00 Kever Yang
  2017-04-16 19:30 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Kever Yang @ 2017-04-12  4:00 UTC (permalink / raw)
  To: u-boot

Use regulators_enable_boot_on() instead of init regulators one by one,
the interface can init all the regulators with regulator-boot-on property.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

 board/rockchip/evb_rk3399/evb-rk3399.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c
index c437f1b..2ebdee7 100644
--- a/board/rockchip/evb_rk3399/evb-rk3399.c
+++ b/board/rockchip/evb_rk3399/evb-rk3399.c
@@ -40,10 +40,9 @@ int board_init(void)
 		goto out;
 	}
 
-	/* rk3399 need init vdd_center to get correct output voltage */
-	ret = regulator_get_by_platname("vdd_center", &regulator);
+	ret = regulators_enable_boot_on(false);
 	if (ret)
-		debug("%s: Cannot get vdd_center regulator\n", __func__);
+		debug("%s: Cannot enable boot on regulator\n", __func__);
 
 	ret = regulator_get_by_platname("vcc5v0_host", &regulator);
 	if (ret) {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] rockchip: rk3399: use regulators_enable_boot_on() to init regulator
  2017-04-12  4:00 [U-Boot] [PATCH] rockchip: rk3399: use regulators_enable_boot_on() to init regulator Kever Yang
@ 2017-04-16 19:30 ` Simon Glass
  2017-04-20 21:04   ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2017-04-16 19:30 UTC (permalink / raw)
  To: u-boot

On 11 April 2017 at 22:00, Kever Yang <kever.yang@rock-chips.com> wrote:
> Use regulators_enable_boot_on() instead of init regulators one by one,
> the interface can init all the regulators with regulator-boot-on property.
>
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> ---
>
>  board/rockchip/evb_rk3399/evb-rk3399.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] rockchip: rk3399: use regulators_enable_boot_on() to init regulator
  2017-04-16 19:30 ` Simon Glass
@ 2017-04-20 21:04   ` Simon Glass
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2017-04-20 21:04 UTC (permalink / raw)
  To: u-boot

On 16 April 2017 at 13:30, Simon Glass <sjg@chromium.org> wrote:
> On 11 April 2017 at 22:00, Kever Yang <kever.yang@rock-chips.com> wrote:
>> Use regulators_enable_boot_on() instead of init regulators one by one,
>> the interface can init all the regulators with regulator-boot-on property.
>>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> ---
>>
>>  board/rockchip/evb_rk3399/evb-rk3399.c | 5 ++---
>>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip/next, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-20 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-12  4:00 [U-Boot] [PATCH] rockchip: rk3399: use regulators_enable_boot_on() to init regulator Kever Yang
2017-04-16 19:30 ` Simon Glass
2017-04-20 21:04   ` Simon Glass

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.