]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-mvebu/spl.c
0ab729aa5d87ca3cc0dcefa2532ffdaff2622e55
2 * Copyright (C) 2014 Stefan Roese <sr@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/cpu.h>
11 #include <asm/arch/soc.h>
13 DECLARE_GLOBAL_DATA_PTR
;
15 u32
spl_boot_device(void)
17 #if defined(CONFIG_SPL_SPI_FLASH_SUPPORT)
18 return BOOT_DEVICE_SPI
;
20 #if defined(CONFIG_SPL_MMC_SUPPORT)
21 return BOOT_DEVICE_MMC1
;
25 #ifdef CONFIG_SPL_MMC_SUPPORT
26 u32
spl_boot_mode(void)
28 return MMCSD_MODE_RAW
;
32 void board_init_f(ulong dummy
)
34 #ifndef CONFIG_MVEBU_BOOTROM_UARTBOOT
36 * Only call arch_cpu_init() when not returning to the
37 * Marvell BootROM, which is done when booting via
38 * the xmodem protocol (kwboot tool). Otherwise the
39 * internal register will get remapped and the BootROM
40 * can't continue to run correctly.
43 /* Linux expects the internal registers to be at 0xf1000000 */
48 * Pin muxing needs to be done before UART output, since
49 * on A38x the UART pins need some re-muxing for output
54 preloader_console_init();
58 /* First init the serdes PHY's */
64 #ifdef CONFIG_MVEBU_BOOTROM_UARTBOOT
66 * Return to the BootROM to continue the Marvell xmodem
67 * UART boot protocol. As initiated by the kwboot tool.
69 * This can only be done by the BootROM and not by the
70 * U-Boot SPL infrastructure, since the beginning of the
71 * image is already read and interpreted by the BootROM.
72 * SPL has no chance to receive this information. So we
73 * need to return to the BootROM to enable this xmodem