summaryrefslogtreecommitdiff
path: root/cmd
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 /cmd
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 'cmd')
-rw-r--r--cmd/sb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/sb.c b/cmd/sb.c
index 1aa5921f03e..db485fddfca 100644
--- a/cmd/sb.c
+++ b/cmd/sb.c
@@ -14,8 +14,10 @@ static int do_sb_handoff(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
#if CONFIG_IS_ENABLED(HANDOFF)
- if (gd->spl_handoff)
- printf("SPL handoff magic %lx\n", gd->spl_handoff->arch.magic);
+ struct spl_handoff *handoff = handoff_get();
+
+ if (handoff)
+ printf("SPL handoff magic %lx\n", handoff->arch.magic);
else
printf("SPL handoff info not received\n");