diff options
author | Svyatoslav Ryhel <clamor95@gmail.com> | 2023-11-28 09:09:41 +0200 |
---|---|---|
committer | Svyatoslav Ryhel <clamor95@gmail.com> | 2023-11-28 09:09:53 +0200 |
commit | 14f2e54975e6a9cb47547f9e5b20ecdc495154cc (patch) | |
tree | 423e4dd1dc97be8656724f45d5bb6209ed6a8605 | |
parent | 9d3f7f881edf119e9c1257158f115e3bf13d8320 (diff) |
ARM: tegra: call regulators_enable_boot_on on board init
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>
-rw-r--r-- | arch/arm/mach-tegra/board2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index cd405874d36..8ad76d5edf7 100644 --- a/arch/arm/mach-tegra/board2.c +++ b/arch/arm/mach-tegra/board2.c @@ -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(); } |