diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-01 16:18:09 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-13 07:25:00 -0800 |
commit | 313aef37a12703b32a75dfc15b50491ecc43d97a (patch) | |
tree | 289a0fb99fac194afe9000ffd7ab8ae8ce7edf5c /common | |
parent | 9818a00eead58a36fe39735dae5dbdc393f53463 (diff) | |
download | u-boot-imx-313aef37a12703b32a75dfc15b50491ecc43d97a.zip u-boot-imx-313aef37a12703b32a75dfc15b50491ecc43d97a.tar.gz u-boot-imx-313aef37a12703b32a75dfc15b50491ecc43d97a.tar.bz2 |
x86: board_f: Adjust x86 boot order for performance
For bare platforms we turn off ROM-caching before calling board_init_f_r()
It is then very slow to copy U-Boot from ROM to RAM. So adjust the order so
that the copying happens before we turn off ROM-caching.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_f.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/board_f.c b/common/board_f.c index cfd77f8..3a4b32c 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -985,6 +985,11 @@ static init_fnc_t init_sequence_f[] = { INIT_FUNC_WATCHDOG_RESET reloc_fdt, setup_reloc, +#ifdef CONFIG_X86 + copy_uboot_to_ram, + clear_bss, + do_elf_reloc_fixups, +#endif #if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) jump_to_copy, #endif @@ -1044,9 +1049,6 @@ void board_init_f(ulong boot_flags) */ static init_fnc_t init_sequence_f_r[] = { init_cache_f_r, - copy_uboot_to_ram, - clear_bss, - do_elf_reloc_fixups, NULL, }; |