]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: tegra: add late init support
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 14 Feb 2023 17:35:31 +0000 (19:35 +0200)
committerTom <twarren@nvidia.com>
Thu, 23 Feb 2023 19:55:37 +0000 (12:55 -0700)
Late init function allows passing values like identifiers and
perform device specific configurations of pre-boot stage.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS TF T30
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Tom <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra/sys_proto.h
arch/arm/mach-tegra/board2.c

index c3a2673e6c3c04efe184e865626975d21eb74bcb..566666a9a052bd45a2ae965c63eec393129046d7 100644 (file)
@@ -31,4 +31,10 @@ int tegra_lcd_pmic_init(int board_id);
  */
 int nvidia_board_init(void);
 
+/**
+ * nvidia_board_late_init() - perform any board-specific
+ *                           init on late stages
+ */
+void nvidia_board_late_init(void);
+
 #endif
index c7a45f4ff82afa896501c2203be489fca32fdd75..0df18360ca63c29fa8ae2c51f1fcc61e87594ca9 100644 (file)
@@ -56,6 +56,7 @@ __weak void gpio_early_init_uart(void) {}
 __weak void pin_mux_display(void) {}
 __weak void start_cpu_fan(void) {}
 __weak void cboot_late_init(void) {}
+__weak void nvidia_board_late_init(void) {}
 
 #if defined(CONFIG_TEGRA_NAND)
 __weak void pin_mux_nand(void)
@@ -267,6 +268,7 @@ int board_late_init(void)
 #endif
        start_cpu_fan();
        cboot_late_init();
+       nvidia_board_late_init();
 
        return 0;
 }