/*
 * Copyright (C) 2013-2015 Panasonic Corporation
 * Copyright (C) 2015-2016 Socionext Inc.
 *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <common.h>
#include <spl.h>

#include "../init.h"
#include "../micro-support-card.h"

int uniphier_pro4_init(const struct uniphier_board_data *bd)
{
	uniphier_sbc_init_savepin();

	support_card_init();

	uniphier_pro4_dpll_init(bd);

	led_puts("L0");

	uniphier_memconf_2ch_init(bd);

	led_puts("L1");

	uniphier_sld3_early_clk_init();
	uniphier_sld3_dram_clk_init();

	led_puts("L2");

	led_puts("L3");

#ifdef CONFIG_SPL_SERIAL_SUPPORT
	preloader_console_init();
#endif

	led_puts("L4");

	{
		int res;

		res = uniphier_pro4_umc_init(bd);
		if (res < 0) {
			while (1)
				;
		}
	}

	led_puts("L5");

	return 0;
}
