]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mach-snapdragon: call regulators_enable_boot_on()
authorCaleb Connolly <caleb.connolly@linaro.org>
Wed, 3 Apr 2024 12:07:47 +0000 (14:07 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 4 Apr 2024 15:46:47 +0000 (17:46 +0200)
Make sure we power on any boot-on or always-on regulators. These are
used for peripherals like USB on some platforms.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
arch/arm/mach-snapdragon/board.c

index 65e4c61e866a750806f378f8c382bff6bf71a804..3d5994c87886768b4ce993734eace9a6ccd2cb36 100644 (file)
@@ -16,6 +16,7 @@
 #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>
@@ -161,6 +162,7 @@ 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();