summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-12-12 16:35:47 -0600
committerTom Rini <[email protected]>2024-12-12 16:35:47 -0600
commit1fdf53ace13f745fe8ad4d2d4e79eed98088d555 (patch)
tree94f48a0eb15db6ce3da3953ae4e6d98623d6edae /include/image.h
parente5aef1bbf11412eebd4c242b46adff5301353c30 (diff)
parentf0315babfb43c6d1f5d4ff0ea7554ec2c27bf7b1 (diff)
Merge patch series "vbe: Series part E"
Simon Glass <[email protected]> says: This includes various patches towards implementing the VBE abrec bootmeth in U-Boot. It mostly focuses on SPL tweaks and adjusting what fatures are available in VPL. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 9be5acd8158..ab96510f62c 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1172,6 +1172,18 @@ int fit_image_get_data_and_size(const void *fit, int noffset,
const void **data, size_t *size);
/**
+ * fit_image_get_phase() - Get the phase from a FIT image
+ *
+ * @fit: FIT to read from
+ * @offset: offset node to read
+ * @phasep: Returns phase, if any
+ * Return: 0 if read OK and *phasep is value, -ENOENT if there was no phase
+ * property in the node, other -ve value on other error
+ */
+int fit_image_get_phase(const void *fit, int offset,
+ enum image_phase_t *phasep);
+
+/**
* fit_get_data_node() - Get verified image data for an image
* @fit: Pointer to the FIT format image header
* @image_uname: The name of the image node
@@ -1399,7 +1411,9 @@ int fit_check_format(const void *fit, ulong size);
* copied into the configuration node in the FIT image. This is required to
* match configurations with compressed FDTs.
*
- * Returns: offset to the configuration to use if one was found, -1 otherwise
+ * Returns: offset to the configuration to use if one was found, -EINVAL if
+ * there a /configurations or /images node is missing, -ENOENT if no match was
+ * found, -ENXIO if the FDT node has no compatible string
*/
int fit_conf_find_compat(const void *fit, const void *fdt);