From: Michal Simek Date: Tue, 10 May 2016 05:54:20 +0000 (+0200) Subject: spl: Introduce new function spl_board_prepare_for_boot X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=304f05bba7d800d48824088f6137ff9e0d24f70b;p=thirdparty%2Fu-boot.git spl: Introduce new function spl_board_prepare_for_boot Call this function before passing control from SPL. For fpga case it is necessary to enable for example level shifters. Signed-off-by: Michal Simek --- diff --git a/common/spl/spl.c b/common/spl/spl.c index 6e6dee7ec9b..dbdd6fe26dd 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -64,6 +64,11 @@ __weak void spl_board_prepare_for_linux(void) /* Nothing to do! */ } +__weak void spl_board_prepare_for_boot(void) +{ + /* Nothing to do! */ +} + void spl_set_header_raw_uboot(void) { spl_image.size = CONFIG_SYS_MONITOR_LEN; @@ -400,6 +405,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) #endif debug("loaded - jumping to U-Boot..."); + spl_board_prepare_for_boot(); jump_to_image_no_args(&spl_image); } diff --git a/include/spl.h b/include/spl.h index 92cdc049d45..01592252ccf 100644 --- a/include/spl.h +++ b/include/spl.h @@ -40,6 +40,7 @@ u32 spl_boot_mode(void); void spl_set_header_raw_uboot(void); void spl_parse_image_header(const struct image_header *header); void spl_board_prepare_for_linux(void); +void spl_board_prepare_for_boot(void); void __noreturn jump_to_image_linux(void *arg); int spl_start_uboot(void); void spl_display_print(void);