2014-10-03 10:21:06 +00:00
|
|
|
/*
|
2015-09-11 11:17:44 +00:00
|
|
|
* Copyright (C) 2013-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
2014-10-03 10:21:06 +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-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
int ph1_ld4_init(const struct uniphier_board_data *bd)
|
2015-02-05 05:42:55 +00:00
|
|
|
{
|
2015-09-21 15:27:39 +00:00
|
|
|
ph1_ld4_bcu_init(bd);
|
2015-09-11 11:17:43 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
ph1_ld4_sbc_init(bd);
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:30 +00:00
|
|
|
support_card_reset();
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
ph1_ld4_pll_init(bd);
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:30 +00:00
|
|
|
support_card_init();
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:31 +00:00
|
|
|
led_puts("L0");
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
memconf_init(bd);
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:31 +00:00
|
|
|
led_puts("L1");
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
ph1_ld4_early_clk_init(bd);
|
2015-02-26 17:27:04 +00:00
|
|
|
|
2015-09-21 15:27:31 +00:00
|
|
|
led_puts("L2");
|
2015-02-26 17:27:04 +00:00
|
|
|
|
2015-09-21 15:27:31 +00:00
|
|
|
led_puts("L3");
|
2015-03-22 15:07:23 +00:00
|
|
|
|
2015-03-22 15:07:25 +00:00
|
|
|
#ifdef CONFIG_SPL_SERIAL_SUPPORT
|
|
|
|
preloader_console_init();
|
|
|
|
#endif
|
|
|
|
|
2015-09-21 15:27:31 +00:00
|
|
|
led_puts("L4");
|
2015-03-22 15:07:25 +00:00
|
|
|
|
2015-02-05 05:42:55 +00:00
|
|
|
{
|
|
|
|
int res;
|
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
res = ph1_ld4_umc_init(bd);
|
2015-02-05 05:42:55 +00:00
|
|
|
if (res < 0) {
|
|
|
|
while (1)
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
2015-09-21 15:27:31 +00:00
|
|
|
|
|
|
|
led_puts("L5");
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:39 +00:00
|
|
|
ph1_ld4_enable_dpll_ssc(bd);
|
2015-02-05 05:42:55 +00:00
|
|
|
|
2015-09-21 15:27:31 +00:00
|
|
|
led_puts("L6");
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
return 0;
|
2014-10-03 10:21:06 +00:00
|
|
|
}
|