diff options
author | Svyatoslav Ryhel <clamor95@gmail.com> | 2023-02-14 19:35:31 +0200 |
---|---|---|
committer | Tom <twarren@nvidia.com> | 2023-02-23 12:55:37 -0700 |
commit | 1a7ce63c08837bfd144a3f772d32f326c454fc86 (patch) | |
tree | f4bd6c330ce6f66fcd42fa21e2aceb5fe2fce7f6 | |
parent | b1de4d7c6e14a78b6f321d205daa7846badb64ae (diff) | |
download | u-boot-1a7ce63c08837bfd144a3f772d32f326c454fc86.tar.gz u-boot-1a7ce63c08837bfd144a3f772d32f326c454fc86.tar.bz2 u-boot-1a7ce63c08837bfd144a3f772d32f326c454fc86.zip |
ARM: tegra: add late init support
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>
-rw-r--r-- | arch/arm/include/asm/arch-tegra/sys_proto.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board2.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra/sys_proto.h b/arch/arm/include/asm/arch-tegra/sys_proto.h index c3a2673e6c..566666a9a0 100644 --- a/arch/arm/include/asm/arch-tegra/sys_proto.h +++ b/arch/arm/include/asm/arch-tegra/sys_proto.h @@ -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 diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index c7a45f4ff8..0df18360ca 100644 --- a/arch/arm/mach-tegra/board2.c +++ b/arch/arm/mach-tegra/board2.c @@ -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; } |