|
@@ -50,10 +50,14 @@ init_fnc_t *init_sequence[] = {
|
|
fdtdec_check_fdt,
|
|
fdtdec_check_fdt,
|
|
#endif
|
|
#endif
|
|
serial_init,
|
|
serial_init,
|
|
|
|
+#ifndef CONFIG_SPL_BUILD
|
|
console_init_f,
|
|
console_init_f,
|
|
|
|
+#endif
|
|
display_banner,
|
|
display_banner,
|
|
|
|
+#ifndef CONFIG_SPL_BUILD
|
|
interrupts_init,
|
|
interrupts_init,
|
|
timer_init,
|
|
timer_init,
|
|
|
|
+#endif
|
|
NULL,
|
|
NULL,
|
|
};
|
|
};
|
|
|
|
|
|
@@ -66,7 +70,7 @@ void board_init_f(ulong not_used)
|
|
gd = (gd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET);
|
|
gd = (gd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET);
|
|
bd = (bd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET
|
|
bd = (bd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET
|
|
- GENERATED_BD_INFO_SIZE);
|
|
- GENERATED_BD_INFO_SIZE);
|
|
-#if defined(CONFIG_CMD_FLASH)
|
|
|
|
|
|
+#if defined(CONFIG_CMD_FLASH) && !defined(CONFIG_SPL_BUILD)
|
|
ulong flash_size = 0;
|
|
ulong flash_size = 0;
|
|
#endif
|
|
#endif
|
|
asm ("nop"); /* FIXME gd is not initialize - wait */
|
|
asm ("nop"); /* FIXME gd is not initialize - wait */
|
|
@@ -88,9 +92,12 @@ void board_init_f(ulong not_used)
|
|
/* FDT is at end of image */
|
|
/* FDT is at end of image */
|
|
gd->fdt_blob = (void *)__end;
|
|
gd->fdt_blob = (void *)__end;
|
|
#endif
|
|
#endif
|
|
|
|
+
|
|
|
|
+#ifndef CONFIG_SPL_BUILD
|
|
/* Allow the early environment to override the fdt address */
|
|
/* Allow the early environment to override the fdt address */
|
|
gd->fdt_blob = (void *)getenv_ulong("fdtcontroladdr", 16,
|
|
gd->fdt_blob = (void *)getenv_ulong("fdtcontroladdr", 16,
|
|
(uintptr_t)gd->fdt_blob);
|
|
(uintptr_t)gd->fdt_blob);
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* The Malloc area is immediately below the monitor copy in DRAM
|
|
* The Malloc area is immediately below the monitor copy in DRAM
|
|
@@ -110,6 +117,7 @@ void board_init_f(ulong not_used)
|
|
hang();
|
|
hang();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifndef CONFIG_SPL_BUILD
|
|
#ifdef CONFIG_OF_CONTROL
|
|
#ifdef CONFIG_OF_CONTROL
|
|
/* For now, put this check after the console is ready */
|
|
/* For now, put this check after the console is ready */
|
|
if (fdtdec_prepare_fdt())
|
|
if (fdtdec_prepare_fdt())
|
|
@@ -190,4 +198,5 @@ void board_init_f(ulong not_used)
|
|
WATCHDOG_RESET();
|
|
WATCHDOG_RESET();
|
|
main_loop();
|
|
main_loop();
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_SPL_BUILD */
|
|
}
|
|
}
|