]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: tegra: call regulators_enable_boot_on on board init
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 28 Nov 2023 07:09:41 +0000 (09:09 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 28 Nov 2023 07:09:53 +0000 (09:09 +0200)
Call regulators_enable_boot_on on board init to set all regulators
with boot-on property in device tree. If regulator is not used by
any device in the device tree but is essential for the device to
work a regression will occur.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
arch/arm/mach-tegra/board2.c

index cd405874d367a6d7e64ecc455e4e0bf8b974d779..8ad76d5edf747e8520ac60a1420a2abec183ea29 100644 (file)
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <ns16550.h>
+#include <power/regulator.h>
 #include <usb.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
@@ -185,6 +186,10 @@ int board_init(void)
        /* prepare the WB code to LP0 location */
        warmboot_prepare_code(TEGRA_LP0_ADDR, TEGRA_LP0_SIZE);
 #endif
+
+       /* Set up boot-on regulators */
+       regulators_enable_boot_on(_DEBUG);
+
        return nvidia_board_init();
 }