bloblist: kconfig for mandatory incoming standard passage

In previous commit, incoming standard passage is used by default
when initializing the bloblist, so explicitly BLOBLIST_PASSAGE is
no more needed.
Rename it as BLOBLIST_PASSAGE_MANDATORY to determine the behaviors
when an incoming transfer list does not exist or is invalid.
When it is selected, incoming standard passage is mandatory and
U-Boot will report an error when a valid incoming transfer list is
missing.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
This commit is contained in:
Raymond Mao 2025-02-19 16:02:20 -08:00 committed by Tom Rini
parent 6799f09069
commit 03a76b1a73
5 changed files with 21 additions and 11 deletions

View file

@ -513,6 +513,13 @@ int bloblist_init(void)
*/
bool from_addr = fixed && !xpl_is_first_phase();
/*
* If Firmware Handoff is mandatory but no transfer list is
* observed, report it as an error.
*/
if (IS_ENABLED(CONFIG_BLOBLIST_PASSAGE_MANDATORY))
return -ENOENT;
ret = -ENOENT;
if (xpl_prev_phase() == PHASE_TPL &&