mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
x86: spl: Change the condition for copying U-Boot to RAM
Make this depend on whether the address matches the offset, rather than a particular board build. For samus_tpl we don't need to copy, for example. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
9d69324e7f
commit
623b3e8f97
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ static int spl_board_load_image(struct spl_image_info *spl_image,
|
|||
spl_image->os = IH_OS_U_BOOT;
|
||||
spl_image->name = "U-Boot";
|
||||
|
||||
if (!IS_ENABLED(CONFIG_SYS_COREBOOT)) {
|
||||
if (spl_image->load_addr != spl_get_image_pos()) {
|
||||
/* Copy U-Boot from ROM */
|
||||
memcpy((void *)spl_image->load_addr,
|
||||
(void *)spl_get_image_pos(), spl_get_image_size());
|
||||
|
|
Loading…
Reference in a new issue