upl: Add support for reading a upl handoff

Universal Payload provides a standard way of handing off control between
two firmware phases. Add support for reading the handoff information into
a structure.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2024-08-07 16:47:27 -06:00
committed by Tom Rini
parent 16b9c64caf
commit 90469da3da
8 changed files with 1075 additions and 0 deletions

24
boot/upl_common.h Normal file
View File

@@ -0,0 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* UPL handoff command functions
*
* Copyright 2024 Google LLC
* Written by Simon Glass <sjg@chromium.org>
*/
#ifndef __UPL_COMMON_H
#define __UPL_COMMON_H
/* Names of bootmodes */
extern const char *const bootmode_names[UPLBM_COUNT];
/* Names of memory usages */
extern const char *const usage_names[UPLUS_COUNT];
/* Names of access types */
extern const char *const access_types[UPLUS_COUNT];
/* Names of graphics formats */
extern const char *const graphics_formats[UPLUS_COUNT];
#endif /* __UPL_COMMON_H */