diff options
author | Simon Glass <sjg@chromium.org> | 2024-09-29 19:49:39 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-11 11:44:47 -0600 |
commit | 6c49fc5882baa2c496b03f8260a5b21ef48ed9c5 (patch) | |
tree | 626ee011f166a07987966f71dbc150c8cd9eff58 /common | |
parent | 44a4c8e93fe393cd84c70ba1be0c47e25e6ff66c (diff) | |
download | u-boot-6c49fc5882baa2c496b03f8260a5b21ef48ed9c5.tar.gz |
xpl: Rename spl_next_phase() and spl_prev_phase()
Rename this to use the xpl prefix.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/bloblist.c | 2 | ||||
-rw-r--r-- | common/spl/spl.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/common/bloblist.c b/common/bloblist.c index fb86789df42..6640ad1fd69 100644 --- a/common/bloblist.c +++ b/common/bloblist.c @@ -512,7 +512,7 @@ int bloblist_init(void) */ bool from_boot_arg = fixed && xpl_is_first_phase(); - if (spl_prev_phase() == PHASE_TPL && !IS_ENABLED(CONFIG_TPL_BLOBLIST)) + if (xpl_prev_phase() == PHASE_TPL && !IS_ENABLED(CONFIG_TPL_BLOBLIST)) from_addr = false; if (fixed) addr = IF_ENABLED_INT(CONFIG_BLOBLIST_FIXED, diff --git a/common/spl/spl.c b/common/spl/spl.c index 6c297ebf37a..ad5c309348b 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -176,10 +176,10 @@ ulong spl_get_image_pos(void) return BINMAN_SYM_MISSING; #ifdef CONFIG_VPL - if (spl_next_phase() == PHASE_VPL) + if (xpl_next_phase() == PHASE_VPL) return binman_sym(ulong, u_boot_vpl_any, image_pos); #endif - return spl_next_phase() == PHASE_SPL ? + return xpl_next_phase() == PHASE_SPL ? binman_sym(ulong, u_boot_spl_any, image_pos) : binman_sym(ulong, u_boot_any, image_pos); } @@ -190,10 +190,10 @@ ulong spl_get_image_size(void) return BINMAN_SYM_MISSING; #ifdef CONFIG_VPL - if (spl_next_phase() == PHASE_VPL) + if (xpl_next_phase() == PHASE_VPL) return binman_sym(ulong, u_boot_vpl_any, size); #endif - return spl_next_phase() == PHASE_SPL ? + return xpl_next_phase() == PHASE_SPL ? binman_sym(ulong, u_boot_spl_any, size) : binman_sym(ulong, u_boot_any, size); } @@ -201,10 +201,10 @@ ulong spl_get_image_size(void) ulong spl_get_image_text_base(void) { #ifdef CONFIG_VPL - if (spl_next_phase() == PHASE_VPL) + if (xpl_next_phase() == PHASE_VPL) return CONFIG_VPL_TEXT_BASE; #endif - return spl_next_phase() == PHASE_SPL ? CONFIG_SPL_TEXT_BASE : + return xpl_next_phase() == PHASE_SPL ? CONFIG_SPL_TEXT_BASE : CONFIG_TEXT_BASE; } @@ -762,7 +762,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) os = spl_image.os; if (os == IH_OS_U_BOOT) { - debug("Jumping to %s...\n", spl_phase_name(spl_next_phase())); + debug("Jumping to %s...\n", spl_phase_name(xpl_next_phase())); } else if (CONFIG_IS_ENABLED(ATF) && os == IH_OS_ARM_TRUSTED_FIRMWARE) { debug("Jumping to U-Boot via ARM Trusted Firmware\n"); spl_fixup_fdt(spl_image_fdt_addr(&spl_image)); |