@ -17,7 +17,6 @@ struct uniphier_spl_initdata {
enum uniphier_soc_id soc_id ;
void ( * bcu_init ) ( const struct uniphier_board_data * bd ) ;
void ( * early_clk_init ) ( void ) ;
void ( * sbc_init ) ( void ) ;
int ( * dpll_init ) ( const struct uniphier_board_data * bd ) ;
int ( * memconf_init ) ( const struct uniphier_board_data * bd ) ;
void ( * dram_clk_init ) ( void ) ;
@ -30,7 +29,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
. soc_id = SOC_UNIPHIER_SLD3 ,
. bcu_init = uniphier_sld3_bcu_init ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_sbc_init_admulti ,
. dpll_init = uniphier_sld3_dpll_init ,
. memconf_init = uniphier_memconf_3ch_no_disbit_init ,
. dram_clk_init = uniphier_sld3_dram_clk_init ,
@ -42,7 +40,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
. soc_id = SOC_UNIPHIER_LD4 ,
. bcu_init = uniphier_ld4_bcu_init ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_ld4_sbc_init ,
. dpll_init = uniphier_ld4_dpll_init ,
. memconf_init = uniphier_memconf_2ch_init ,
. dram_clk_init = uniphier_sld3_dram_clk_init ,
@ -53,7 +50,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
{
. soc_id = SOC_UNIPHIER_PRO4 ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_sbc_init_savepin ,
. dpll_init = uniphier_pro4_dpll_init ,
. memconf_init = uniphier_memconf_2ch_init ,
. dram_clk_init = uniphier_sld3_dram_clk_init ,
@ -65,7 +61,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
. soc_id = SOC_UNIPHIER_SLD8 ,
. bcu_init = uniphier_ld4_bcu_init ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_ld4_sbc_init ,
. dpll_init = uniphier_sld8_dpll_init ,
. memconf_init = uniphier_memconf_2ch_init ,
. dram_clk_init = uniphier_sld3_dram_clk_init ,
@ -76,7 +71,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
{
. soc_id = SOC_UNIPHIER_PRO5 ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_sbc_init_savepin ,
. dpll_init = uniphier_pro5_dpll_init ,
. memconf_init = uniphier_memconf_2ch_init ,
. dram_clk_init = uniphier_pro5_dram_clk_init ,
@ -87,7 +81,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
{
. soc_id = SOC_UNIPHIER_PXS2 ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_pxs2_sbc_init ,
. dpll_init = uniphier_pxs2_dpll_init ,
. memconf_init = uniphier_memconf_3ch_init ,
. dram_clk_init = uniphier_pxs2_dram_clk_init ,
@ -98,7 +91,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
{
. soc_id = SOC_UNIPHIER_LD6B ,
. early_clk_init = uniphier_sld3_early_clk_init ,
. sbc_init = uniphier_pxs2_sbc_init ,
. dpll_init = uniphier_pxs2_dpll_init ,
. memconf_init = uniphier_memconf_3ch_init ,
. dram_clk_init = uniphier_pxs2_dram_clk_init ,
@ -109,7 +101,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
{
. soc_id = SOC_UNIPHIER_LD11 ,
. early_clk_init = uniphier_ld11_early_clk_init ,
. sbc_init = uniphier_ld11_sbc_init ,
. dpll_init = uniphier_ld11_dpll_init ,
. memconf_init = uniphier_memconf_2ch_init ,
. dram_clk_init = uniphier_ld11_dram_clk_init ,
@ -120,7 +111,6 @@ static const struct uniphier_spl_initdata uniphier_spl_initdata[] = {
{
. soc_id = SOC_UNIPHIER_LD20 ,
. early_clk_init = uniphier_ld11_early_clk_init ,
. sbc_init = uniphier_ld11_sbc_init ,
. dpll_init = uniphier_ld20_dpll_init ,
. memconf_init = uniphier_memconf_3ch_init ,
. dram_clk_init = uniphier_ld20_dram_clk_init ,
@ -165,45 +155,31 @@ void spl_board_init(void)
if ( initdata - > bcu_init )
initdata - > bcu_init ( bd ) ;
initdata - > sbc_init ( ) ;
initdata - > early_clk_init ( ) ;
support_card_init ( ) ;
led_puts ( " L0 " ) ;
# ifdef CONFIG_SPL_SERIAL_SUPPORT
preloader_console_init ( ) ;
# endif
led_puts ( " L1 " ) ;
ret = initdata - > dpll_init ( bd ) ;
if ( ret ) {
pr_err ( " failed to init DPLL \n " ) ;
hang ( ) ;
}
led_puts ( " L2 " ) ;
ret = initdata - > memconf_init ( bd ) ;
if ( ret ) {
pr_err ( " failed to init MEMCONF \n " ) ;
hang ( ) ;
}
led_puts ( " L3 " ) ;
initdata - > dram_clk_init ( ) ;
led_puts ( " L4 " ) ;
ret = initdata - > umc_init ( bd ) ;
if ( ret ) {
pr_err ( " failed to init DRAM \n " ) ;
hang ( ) ;
}
led_puts ( " L5 " ) ;
}