diff options
author | Simon Glass <sjg@chromium.org> | 2024-09-29 19:49:34 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-11 11:44:47 -0600 |
commit | 713bfc58f948e46e0e01ff8b50ef9f30f6f8317c (patch) | |
tree | 998d95aac7335e79906d35775a7f7b59212acd73 /include/spl.h | |
parent | 90fb55e0425f6be5dd58f2dc4910b6936e6f7699 (diff) |
xpl: Rename u_boot_first_phase to xpl_is_first_phase()
This is a better name for this function, so update it.
Tidy up the function comment to mention VPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spl.h')
-rw-r--r-- | include/spl.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/spl.h b/include/spl.h index de808ccd413..fa87d865f5f 100644 --- a/include/spl.h +++ b/include/spl.h @@ -34,18 +34,20 @@ struct spl_boot_device; enum boot_device; /* - * u_boot_first_phase() - check if this is the first U-Boot phase + * xpl_is_first_phase() - check if this is the first U-Boot phase * - * U-Boot has up to three phases: TPL, SPL and U-Boot proper. Depending on the - * build flags we can determine whether the current build is for the first + * U-Boot has up to four phases: TPL, VPL, SPL and U-Boot proper. Depending on + * the build flags we can determine whether the current build is for the first * phase of U-Boot or not. If there is no SPL, then this is U-Boot proper. If * there is SPL but no TPL, the the first phase is SPL. If there is TPL, then - * it is the first phase. + * it is the first phase, etc. * - * @returns true if this is the first phase of U-Boot + * Note that VPL can never be the first phase. If it exists, it is loaded from + * TPL * + * Return: true if this is the first phase of U-Boot */ -static inline bool u_boot_first_phase(void) +static inline bool xpl_is_first_phase(void) { if (IS_ENABLED(CONFIG_TPL)) { if (IS_ENABLED(CONFIG_TPL_BUILD)) |