diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-05-10 05:54:20 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-05-24 09:15:01 (GMT) |
commit | 3a3b9147892cb47f96dff1075f1494dca17b6eaf (patch) | |
tree | 0aacf93ca28baaea05e215c2a579e03c03695044 | |
parent | bd483780d3925d62dc896cc9bf1351b8a8c01ed8 (diff) | |
download | u-boot-fsl-qoriq-3a3b9147892cb47f96dff1075f1494dca17b6eaf.tar.xz |
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
when bitstream is programmed.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/spl/spl.c | 6 | ||||
-rw-r--r-- | include/spl.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 93f9bd1..caaf135 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; @@ -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); } diff --git a/include/spl.h b/include/spl.h index 7edfab4..335b76a 100644 --- a/include/spl.h +++ b/include/spl.h @@ -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); |