summaryrefslogtreecommitdiff
path: root/common/init
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-08-21 10:19:13 -0600
committerTom Rini <[email protected]>2024-08-26 14:05:38 -0600
commit2e9313179a846b581c0fc3f6a49e19f3d343efa8 (patch)
tree9385f80b73eb00be50c23cab00c9d4e0e5473ce1 /common/init
parente821897622a13d41c80993510be56e7011d1c43a (diff)
global_data: Drop spl_handoff
Provide a function to locate this information, rather than doing it automatically on startup, to save space in global_data. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'common/init')
-rw-r--r--common/init/handoff.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/init/handoff.c b/common/init/handoff.c
index a7cd065fb38..86c020ee0b9 100644
--- a/common/init/handoff.c
+++ b/common/init/handoff.c
@@ -5,6 +5,7 @@
* Copyright 2018 Google, Inc
*/
+#include <bloblist.h>
#include <handoff.h>
#include <asm/global_data.h>
@@ -38,3 +39,14 @@ void handoff_load_dram_banks(struct spl_handoff *ho)
bd->bi_dram[i].size = ho->ram_bank[i].size;
}
}
+
+struct spl_handoff *handoff_get(void)
+{
+ struct spl_handoff *handoff;
+
+ handoff = bloblist_find(BLOBLISTT_U_BOOT_SPL_HANDOFF,
+ sizeof(struct spl_handoff));
+ debug("Found SPL hand-off info %p\n", handoff);
+
+ return handoff;
+}