[PATCH v5 12/16] mach-snapdragon: call regulators_enable_boot_on()

Caleb Connolly caleb.connolly at linaro.org
Thu Mar 28 18:59:18 CET 2024


Make sure we power on any boot-on or always-on regulators. These are
used for peripherals like USB on some platforms.

Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
---
 arch/arm/mach-snapdragon/board.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
index 65e4c61e866a..3d5994c87886 100644
--- a/arch/arm/mach-snapdragon/board.c
+++ b/arch/arm/mach-snapdragon/board.c
@@ -15,8 +15,9 @@
 #include <dm/device.h>
 #include <dm/pinctrl.h>
 #include <dm/uclass-internal.h>
 #include <dm/read.h>
+#include <power/regulator.h>
 #include <env.h>
 #include <init.h>
 #include <linux/arm-smccc.h>
 #include <linux/bug.h>
@@ -160,8 +161,9 @@ void __weak qcom_board_init(void)
 }
 
 int board_init(void)
 {
+	regulators_enable_boot_on(false);
 	show_psci_version();
 	qcom_of_fixup_nodes();
 	qcom_board_init();
 	return 0;

-- 
2.44.0



More information about the U-Boot mailing list