blob: bfc8ab64d3771e6ffa42c4ece97a76e2d5276699 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay8eb3b1e2018-03-12 10:46:18 +01002/*
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
Patrick Delaunay8eb3b1e2018-03-12 10:46:18 +01004 */
5#include <config.h>
6#include <common.h>
Patrick Delaunay36e3d112018-07-27 16:37:08 +02007#include <led.h>
Patrick Delaunay8eb3b1e2018-03-12 10:46:18 +01008#include <asm/arch/stm32.h>
9
10/*
11 * Get a global data pointer
12 */
13DECLARE_GLOBAL_DATA_PTR;
14
15int board_late_init(void)
16{
17 return 0;
18}
19
20/* board dependent setup after realloc */
21int board_init(void)
22{
23 /* address of boot parameters */
24 gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
25
Patrick Delaunay36e3d112018-07-27 16:37:08 +020026 if (IS_ENABLED(CONFIG_LED))
27 led_default_state();
28
Patrick Delaunay8eb3b1e2018-03-12 10:46:18 +010029 return 0;
30}