mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 14:23:00 +00:00
b67932e3e7
CONFIG_UNIPHIER_SERIAL has been moved to Kconfig and it is defined in ./.config but not in spl/.config, so pin_init() should be called from the normal image so that UART works correctly. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
47 lines
656 B
C
47 lines
656 B
C
/*
|
|
* Copyright (C) 2012-2014 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <linux/compiler.h>
|
|
#include <asm/arch/led.h>
|
|
#include <asm/arch/board.h>
|
|
|
|
void __weak bcu_init(void)
|
|
{
|
|
};
|
|
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)
|
|
{
|
|
#ifdef CONFIG_SOC_INIT
|
|
bcu_init();
|
|
|
|
sbc_init();
|
|
|
|
sg_init();
|
|
|
|
uniphier_board_reset();
|
|
|
|
pll_init();
|
|
|
|
uniphier_board_init();
|
|
|
|
led_write(B, 1, , );
|
|
|
|
clkrst_init();
|
|
|
|
led_write(B, 2, , );
|
|
#endif
|
|
pin_init();
|
|
|
|
led_write(B, 3, , );
|
|
|
|
return 0;
|
|
}
|