2018-05-06 18:27:01 -04:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
2018-03-12 10:46:18 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
|
|
|
*/
|
|
|
|
|
#include <config.h>
|
|
|
|
|
#include <common.h>
|
2018-07-27 16:37:08 +02:00
|
|
|
#include <led.h>
|
2018-03-12 10:46:18 +01:00
|
|
|
#include <asm/arch/stm32.h>
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Get a global data pointer
|
|
|
|
|
*/
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
|
|
|
|
|
int board_late_init(void)
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* board dependent setup after realloc */
|
|
|
|
|
int board_init(void)
|
|
|
|
|
{
|
|
|
|
|
/* address of boot parameters */
|
|
|
|
|
gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
|
|
|
|
|
|
2018-07-27 16:37:08 +02:00
|
|
|
if (IS_ENABLED(CONFIG_LED))
|
|
|
|
|
led_default_state();
|
|
|
|
|
|
2018-03-12 10:46:18 +01:00
|
|
|
return 0;
|
|
|
|
|
}
|