Now init functions called from board_postclk_init() and dram_init() are only necessary for SPL. Move them to spl_board_init() for clean-up. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>master
parent
84ccd791af
commit
35adfc4d25
@ -1,44 +0,0 @@ |
|||||||
/*
|
|
||||||
* 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 |
|
||||||
|
|
||||||
return 0; |
|
||||||
} |
|
@ -1,37 +1,16 @@ |
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2012-2014 Panasonic Corporation |
* Copyright (C) 2012-2015 Panasonic Corporation |
||||||
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com> |
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com> |
||||||
* |
* |
||||||
* SPDX-License-Identifier: GPL-2.0+ |
* SPDX-License-Identifier: GPL-2.0+ |
||||||
*/ |
*/ |
||||||
|
|
||||||
#include <common.h> |
#include <common.h> |
||||||
#include <asm/arch/led.h> |
|
||||||
|
|
||||||
int umc_init(void); |
|
||||||
void enable_dpll_ssc(void); |
|
||||||
|
|
||||||
int dram_init(void) |
int dram_init(void) |
||||||
{ |
{ |
||||||
DECLARE_GLOBAL_DATA_PTR; |
DECLARE_GLOBAL_DATA_PTR; |
||||||
gd->ram_size = CONFIG_SYS_SDRAM_SIZE; |
gd->ram_size = CONFIG_SYS_SDRAM_SIZE; |
||||||
|
|
||||||
#ifdef CONFIG_DRAM_INIT |
|
||||||
led_write(B, 4, , ); |
|
||||||
|
|
||||||
{ |
|
||||||
int res; |
|
||||||
|
|
||||||
res = umc_init(); |
|
||||||
if (res < 0) |
|
||||||
return res; |
|
||||||
} |
|
||||||
led_write(B, 5, , ); |
|
||||||
|
|
||||||
enable_dpll_ssc(); |
|
||||||
#endif |
|
||||||
|
|
||||||
led_write(B, 6, , ); |
|
||||||
|
|
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue