2015-09-21 15:27:39 +00:00
|
|
|
/*
|
2016-09-16 18:33:09 +00:00
|
|
|
* Copyright (C) 2013-2015 Panasonic Corporation
|
|
|
|
* Copyright (C) 2015-2016 Socionext Inc.
|
|
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
2015-09-21 15:27:39 +00:00
|
|
|
*
|
|
|
|
* 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:39 +00:00
|
|
|
|
2016-03-30 11:17:02 +00:00
|
|
|
int uniphier_sld3_init(const struct uniphier_board_data *bd)
|
2015-09-21 15:27:39 +00:00
|
|
|
{
|
2016-03-30 11:17:02 +00:00
|
|
|
uniphier_sld3_bcu_init(bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
2016-03-30 11:17:02 +00:00
|
|
|
uniphier_sbc_init_admulti(bd);
|
2016-04-28 06:37:16 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
support_card_reset();
|
|
|
|
|
2016-09-16 18:33:09 +00:00
|
|
|
uniphier_sld3_dpll_init(bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
support_card_init();
|
|
|
|
|
|
|
|
led_puts("L0");
|
|
|
|
|
|
|
|
memconf_init(bd);
|
2016-03-30 11:17:02 +00:00
|
|
|
uniphier_sld3_memconf_init(bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
led_puts("L1");
|
|
|
|
|
2016-03-30 11:17:02 +00:00
|
|
|
uniphier_ld4_early_clk_init(bd);
|
2015-09-21 15:27:39 +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;
|
|
|
|
}
|