]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spl: Introduce new function spl_board_prepare_for_boot
authorMichal Simek <michal.simek@xilinx.com>
Tue, 10 May 2016 05:54:20 +0000 (07:54 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 10 May 2016 07:51:06 +0000 (09:51 +0200)
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 <michal.simek@xilinx.com>
common/spl/spl.c
include/spl.h

index 6e6dee7ec9b1d9b8ccd2cee17239557c88a28250..dbdd6fe26dd3474d54abbc0ad2ba6ce08a76fb8d 100644 (file)
@@ -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);
 }
 
index 92cdc049d45382f11fe5cd1539f57c8f7e445bf3..01592252ccfae5a0942e95534dabf2fde1f19423 100644 (file)
@@ -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);