2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/u-boot.h>
10 #include <asm/utils.h>
13 #include <asm/arch/reset_manager.h>
15 #include <asm/arch/system_manager.h>
17 DECLARE_GLOBAL_DATA_PTR;
19 u32 spl_boot_device(void)
21 return BOOT_DEVICE_RAM;
25 * Board initialization after bss clearance
27 void spl_board_init(void)
29 #ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
30 /* configure the pin muxing through system manager */
32 #endif /* CONFIG_SOCFPGA_VIRTUAL_TARGET */
34 /* de-assert reset for peripherals and bridges based on handoff */
35 reset_deassert_peripherals_handoff();
37 /* enable console uart printing */
38 preloader_console_init();