diff mbox series

[U-Boot,02/16] stm32mp1: call regulators_enable_boot_on in board_init

Message ID 1561123314-709-3-git-send-email-patrick.delaunay@st.com
State Superseded
Delegated to: Patrick Delaunay
Headers show
Series stm32m1 patches for v2017.10 | expand

Commit Message

Patrick DELAUNAY June 21, 2019, 1:21 p.m. UTC
U-Boot activates regulators by reading the "regulator-boot-on"
property in DT; it is requested by M4 early Boot feature.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 board/st/stm32mp1/stm32mp1.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 7769293..e4d1723 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -515,6 +515,10 @@  int board_init(void)
 
 	board_key_check();
 
+#ifdef CONFIG_DM_REGULATOR
+	regulators_enable_boot_on(_DEBUG);
+#endif
+
 	sysconf_init();
 
 	if (IS_ENABLED(CONFIG_LED))