blob: 2b9be28c214d51df101c089278ea5c44ae48e55f [file] [log] [blame]
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00005 */
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>
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000013#include <asm/arch/reset_manager.h>
14#include <spl.h>
15
16DECLARE_GLOBAL_DATA_PTR;
17
18u32 spl_boot_device(void)
19{
20 return BOOT_DEVICE_RAM;
21}
22
23/*
24 * Board initialization after bss clearance
25 */
26void spl_board_init(void)
27{
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000028 /* 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}