xref: /openbmc/u-boot/board/st/stm32mp1/stm32mp1.c (revision 1fdeacd3)
1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
2 /*
3  * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
4  */
5 #include <config.h>
6 #include <common.h>
7 #include <led.h>
8 #include <asm/arch/stm32.h>
9 
10 /*
11  * Get a global data pointer
12  */
13 DECLARE_GLOBAL_DATA_PTR;
14 
15 int board_late_init(void)
16 {
17 	return 0;
18 }
19 
20 /* board dependent setup after realloc */
21 int board_init(void)
22 {
23 	/* address of boot parameters */
24 	gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
25 
26 	if (IS_ENABLED(CONFIG_LED))
27 		led_default_state();
28 
29 	return 0;
30 }
31