1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2013 - 2014 Xilinx, Inc
14 #include <asm/u-boot.h>
18 u32 spl_boot_device(void)
20 return BOOT_DEVICE_NOR;
23 /* Board initialization after bss clearance */
24 void spl_board_init(void)
26 /* enable console uart printing */
27 preloader_console_init();
30 #ifdef CONFIG_SPL_OS_BOOT
31 void __noreturn jump_to_image_linux(struct spl_image_info *spl_image)
33 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg);
34 typedef void (*image_entry_arg_t)(char *, ulong, ulong)
35 __attribute__ ((noreturn));
36 image_entry_arg_t image_entry =
37 (image_entry_arg_t)spl_image->entry_point;
39 image_entry(NULL, 0, (ulong)spl_image->arg);
41 #endif /* CONFIG_SPL_OS_BOOT */
43 int spl_start_uboot(void)
45 #ifdef CONFIG_SPL_OS_BOOT
53 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
55 __asm__ __volatile__ ("mts rmsr, r0;" \