]> git.dujemihanovic.xyz Git - 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, 24 May 2016 09:15:01 +0000 (11:15 +0200)
Call this function before passing control from SPL.
For fpga case it is necessary to enable for example level shifters
when bitstream is programmed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl.c
include/spl.h

index 93f9bd13fcd9b4995c2d69fa3293180f3a48bedc..caaf135f9ad55c473737918e0d3d68db9a30d729 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;
@@ -404,6 +409,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 7edfab46dcd1ea44b039fb2172fe9c17ea173d18..335b76a1b15392c0829af6313d13a21afdbaad84 100644 (file)
@@ -58,6 +58,7 @@ u32 spl_boot_mode(void);
 void spl_set_header_raw_uboot(void);
 int 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);