Message ID | fc67020d08e8441b78b3fc49fe834af08b8c56e8.1462866767.git.michal.simek@xilinx.com |
---|---|
State | Accepted |
Delegated to: | Michal Simek |
Headers | show |
On 10 May 2016 at 01:52, Michal Simek <michal.simek@xilinx.com> wrote: > 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> > --- > > common/spl/spl.c | 6 ++++++ > include/spl.h | 1 + > 2 files changed, 7 insertions(+) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/common/spl/spl.c b/common/spl/spl.c index 0a1349f1f253..3faa751e4b43 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; @@ -427,6 +432,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 358e81b66a96..5f7a8b56c225 100644 --- a/include/spl.h +++ b/include/spl.h @@ -68,6 +68,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);
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> --- common/spl/spl.c | 6 ++++++ include/spl.h | 1 + 2 files changed, 7 insertions(+)