]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/socfpga/spl.c
samsung: trats2: add support for new board Trats2
[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
16 DECLARE_GLOBAL_DATA_PTR;
17
18 u32 spl_boot_device(void)
19 {
20         return BOOT_DEVICE_RAM;
21 }
22
23 /*
24  * Board initialization after bss clearance
25  */
26 void spl_board_init(void)
27 {
28         /* de-assert reset for peripherals and bridges based on handoff */
29         reset_deassert_peripherals_handoff();
30
31         /* enable console uart printing */
32         preloader_console_init();
33 }