2015-09-21 15:27:40 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <spl.h>
|
2016-01-08 16:51:13 +00:00
|
|
|
|
|
|
|
#include "../init.h"
|
|
|
|
#include "../micro-support-card.h"
|
2015-09-21 15:27:40 +00:00
|
|
|
|
2016-03-30 11:17:02 +00:00
|
|
|
int uniphier_pro5_init(const struct uniphier_board_data *bd)
|
2015-09-21 15:27:40 +00:00
|
|
|
{
|
2016-03-30 11:17:02 +00:00
|
|
|
uniphier_sbc_init_savepin(bd);
|
2015-09-21 15:27:40 +00:00
|
|
|
|
|
|
|
support_card_reset();
|
|
|
|
|
|
|
|
support_card_init();
|
|
|
|
|
|
|
|
led_puts("L0");
|
|
|
|
|
|
|
|
memconf_init(bd);
|
|
|
|
|
|
|
|
led_puts("L1");
|
|
|
|
|
2016-03-30 11:17:02 +00:00
|
|
|
uniphier_pro5_early_clk_init(bd);
|
2015-09-21 15:27:40 +00:00
|
|
|
|
|
|
|
led_puts("L2");
|
|
|
|
|
|
|
|
led_puts("L3");
|
|
|
|
|
|
|
|
#ifdef CONFIG_SPL_SERIAL_SUPPORT
|
|
|
|
preloader_console_init();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
led_puts("L4");
|
|
|
|
|
|
|
|
led_puts("L5");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|