commit | 9031ba824209166444d5abea2064c23015883705 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Sep 26 08:14:55 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Oct 06 14:38:13 2023 -0400 |
tree | d198e1dad291d245a6f40e29aa3b30454f512600 | |
parent | be5951461c23111b343348401defd1d05227a75e [diff] |
spl: Add C-based runtime detection of SPL The spl_phase() function indicates whether U-Boot is in SPL and before or after relocation. But sometimes it is useful to check for SPL with zero code-size impact. Since spl_phase() checks the global_data flags, it does add a few bytes. Add a new spl_in_proper() function to check if U-Boot proper is running, regardless of the relocation status. Signed-off-by: Simon Glass <sjg@chromium.org>