passage: Add docs for spl_handoff

This tag already exists in U-Boot. Add documentation, following the
format set out.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2021-10-31 10:58:14 -06:00
parent 2d29554e18
commit c0b7ea993e
2 changed files with 15 additions and 10 deletions

View File

@@ -6,13 +6,6 @@
* Copyright 2021 Google LLC
*/
/* BLOBLISTT_U_BOOT_SPL_HANDOFF */
#include <handoff.h>
void check_spl_handoff(void)
{
__maybe_unused struct spl_handoff check;
};
/*
* See also doc/develop/std_passage.rst
*
@@ -33,3 +26,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;
};

View File

@@ -8,18 +8,24 @@
#ifndef __HANDOFF_H
#define __HANDOFF_H
#include <linux/types.h>
#if CONFIG_IS_ENABLED(HANDOFF)
#include <linux/types.h>
#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;
@@ -44,5 +50,3 @@ void handoff_load_dram_banks(struct spl_handoff *ho);
int handoff_arch_save(struct spl_handoff *ho);
#endif
#endif