From: Patrick Delaunay <patrick.delaunay@st.com>
Date: Fri, 5 Jul 2019 15:20:09 +0000 (+0200)
Subject: stm32mp1: call regulators_enable_boot_on in board_init
X-Git-Tag: v2025.01-rc5-pxa1908~2886^2~45
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/gitweb.css?a=commitdiff_plain;h=f59ad456ffb2d67bc7daf0682b29f873258fe02b;p=u-boot.git

stm32mp1: call regulators_enable_boot_on in board_init

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>
---

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 776929350f..e4d1723220 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))