]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/socfpga/spl.c
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / socfpga / spl.c
1 /*
2  *  Copyright (C) 2012 Altera Corporation <www.altera.com>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.h>
8 #include <asm/io.h>
9 #include <asm/u-boot.h>
10 #include <asm/utils.h>
11 #include <version.h>
12 #include <image.h>
13 #include <asm/arch/reset_manager.h>
14 #include <spl.h>
15 #include <asm/arch/system_manager.h>
16
17 DECLARE_GLOBAL_DATA_PTR;
18
19 u32 spl_boot_device(void)
20 {
21         return BOOT_DEVICE_RAM;
22 }
23
24 /*
25  * Board initialization after bss clearance
26  */
27 void spl_board_init(void)
28 {
29 #ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
30         /* configure the pin muxing through system manager */
31         sysmgr_pinmux_init();
32 #endif /* CONFIG_SOCFPGA_VIRTUAL_TARGET */
33
34         /* de-assert reset for peripherals and bridges based on handoff */
35         reset_deassert_peripherals_handoff();
36
37         /* enable console uart printing */
38         preloader_console_init();
39 }