[PATCH 28/31] passage: Add docs for spl_handoff
Simon Glass
sjg at chromium.org
Mon Nov 1 02:17:30 CET 2021
This tag already exists in U-Boot. Add documentation, following the
format set out.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
board/sandbox/stdpass_check.c | 8 ++++++++
include/handoff.h | 8 +++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/board/sandbox/stdpass_check.c b/board/sandbox/stdpass_check.c
index 8391c7a4aed..9c015b6783e 100644
--- a/board/sandbox/stdpass_check.c
+++ b/board/sandbox/stdpass_check.c
@@ -28,3 +28,11 @@ void check_struct_name(void)
{
/* __maybe_unused struct struct_name check; */
}
+
+/* BLOBLISTT_U_BOOT_SPL_HANDOFF */
+#include <handoff.h>
+void check_spl_handoff(void)
+{
+ __maybe_unused struct spl_handoff check;
+};
+
diff --git a/include/handoff.h b/include/handoff.h
index 070a79c1b97..30203033ec9 100644
--- a/include/handoff.h
+++ b/include/handoff.h
@@ -9,16 +9,20 @@
#define __HANDOFF_H
#if CONFIG_IS_ENABLED(HANDOFF)
-
#include <asm/handoff.h>
+#endif
/**
* struct spl_handoff - information passed from SPL to U-Boot proper
*
+ * bloblist_tag: BLOBLISTT_U_BOOT_SPL_HANDOFF
+ *
* @ram_size: Value to use for gd->ram_size
*/
struct spl_handoff {
+#if CONFIG_IS_ENABLED(HANDOFF)
struct arch_spl_handoff arch;
+#endif
u64 ram_size;
struct {
u64 start;
@@ -43,5 +47,3 @@ void handoff_load_dram_banks(struct spl_handoff *ho);
int handoff_arch_save(struct spl_handoff *ho);
#endif
-
-#endif
--
2.33.1.1089.g2158813163f-goog
More information about the U-Boot
mailing list