diff options
| author | Tom Rini <trini@konsulko.com> | 2024-12-27 15:16:39 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-12-27 15:16:39 -0600 |
| commit | d580a013cca67a8115fb88d260498bde181709a1 (patch) | |
| tree | 019afe54c586b325164e10a12149bcc74815ef78 /include/image.h | |
| parent | aa233d26bdc3eee90146f0581f7b84a97cf9e729 (diff) | |
| parent | 6f1b27a724b0d75bf89cc0f8be95fc3bcb4d4fe8 (diff) | |
Merge patch series "vbe: Series part E"
Simon Glass <sjg@chromium.org> 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/20241219182907.2609704-1-sjg@chromium.org
Diffstat (limited to 'include/image.h')
| -rw-r--r-- | include/image.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h index cfe3c971a36..0a61dfd556c 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); |
