1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2014 - 2017 Xilinx, Inc. Michal Simek
6 #include <debug_uart.h>
11 #include <asm/arch/hardware.h>
12 #include <asm/arch/sys_proto.h>
13 #include <asm/arch/ps7_init_gpl.h>
15 void board_init_f(ulong dummy)
21 * The debug UART can be used from this point:
27 #ifdef CONFIG_SPL_BOARD_INIT
28 void spl_board_init(void)
30 preloader_console_init();
35 u32 spl_boot_device(void)
39 switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
40 #ifdef CONFIG_SPL_SPI_SUPPORT
43 mode = BOOT_DEVICE_SPI;
47 mode = BOOT_DEVICE_NAND;
50 mode = BOOT_DEVICE_NOR;
52 #ifdef CONFIG_SPL_MMC_SUPPORT
55 mode = BOOT_DEVICE_MMC1;
59 mode = BOOT_DEVICE_RAM;
62 puts("Unsupported boot mode selected\n");
69 #ifdef CONFIG_SPL_OS_BOOT
70 int spl_start_uboot(void)
77 void spl_board_prepare_for_boot(void)
83 #ifdef CONFIG_SPL_LOAD_FIT
84 int board_fit_config_name_match(const char *name)
86 /* Just empty function now - can't decide what to choose */
87 debug("%s: %s\n", __func__, name);