2014-10-03 10:21:06 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012-2014 Panasonic Corporation
|
|
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
2014-11-11 13:18:21 +00:00
|
|
|
#include <linux/compiler.h>
|
2014-10-03 10:21:06 +00:00
|
|
|
#include <asm/arch/led.h>
|
|
|
|
#include <asm/arch/board.h>
|
|
|
|
|
2014-11-11 13:18:21 +00:00
|
|
|
void __weak bcu_init(void)
|
|
|
|
{
|
|
|
|
};
|
2014-10-03 10:21:06 +00:00
|
|
|
void sbc_init(void);
|
|
|
|
void sg_init(void);
|
|
|
|
void pll_init(void);
|
|
|
|
void pin_init(void);
|
|
|
|
void clkrst_init(void);
|
|
|
|
|
|
|
|
int board_postclk_init(void)
|
|
|
|
{
|
2014-11-11 13:18:22 +00:00
|
|
|
#ifdef CONFIG_SOC_INIT
|
2014-10-03 10:21:06 +00:00
|
|
|
bcu_init();
|
|
|
|
|
|
|
|
sbc_init();
|
|
|
|
|
|
|
|
sg_init();
|
|
|
|
|
2014-11-05 05:25:15 +00:00
|
|
|
uniphier_board_reset();
|
|
|
|
|
2014-10-03 10:21:06 +00:00
|
|
|
pll_init();
|
|
|
|
|
|
|
|
uniphier_board_init();
|
|
|
|
|
|
|
|
led_write(B, 1, , );
|
|
|
|
|
|
|
|
clkrst_init();
|
|
|
|
|
|
|
|
led_write(B, 2, , );
|
2014-11-11 13:18:22 +00:00
|
|
|
#endif
|
2014-10-03 10:21:06 +00:00
|
|
|
pin_init();
|
|
|
|
|
|
|
|
led_write(B, 3, , );
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|