2 * (C) Copyright 2014 - 2017 Xilinx, Inc. Michal Simek
4 * SPDX-License-Identifier: GPL-2.0+
7 #include <debug_uart.h>
12 #include <asm/arch/hardware.h>
13 #include <asm/arch/sys_proto.h>
14 #include <asm/arch/ps7_init_gpl.h>
16 DECLARE_GLOBAL_DATA_PTR;
18 void board_init_f(ulong dummy)
24 * The debug UART can be used from this point:
30 #ifdef CONFIG_SPL_BOARD_INIT
31 void spl_board_init(void)
33 preloader_console_init();
38 u32 spl_boot_device(void)
42 switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
43 #ifdef CONFIG_SPL_SPI_SUPPORT
46 mode = BOOT_DEVICE_SPI;
50 mode = BOOT_DEVICE_NAND;
53 mode = BOOT_DEVICE_NOR;
55 #ifdef CONFIG_SPL_MMC_SUPPORT
58 mode = BOOT_DEVICE_MMC1;
62 mode = BOOT_DEVICE_RAM;
65 puts("Unsupported boot mode selected\n");
72 #ifdef CONFIG_SPL_MMC_SUPPORT
73 u32 spl_boot_mode(const u32 boot_device)
79 #ifdef CONFIG_SPL_OS_BOOT
80 int spl_start_uboot(void)
87 void spl_board_prepare_for_boot(void)
93 #ifdef CONFIG_SPL_LOAD_FIT
94 int board_fit_config_name_match(const char *name)
96 /* Just empty function now - can't decide what to choose */
97 debug("%s: %s\n", __func__, name);