summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2021-07-23 11:14:27 +0200
committerStefan Roese <[email protected]>2021-07-31 09:49:32 +0200
commit5fce2875569d6e859443af7af3477c3aebfee383 (patch)
tree1586a3eabedebae1d5af6d03a474f9a9cef49037 /include
parentabbf2179b251493b09c08d90e46ca0de950b3410 (diff)
SPL: Add support for specifying offset between header and image
Some image types (e.g. kwbimage v1) store the offset to SPL binary and offset to U-Boot proper binary in their headers. To avoid reading SPL binary when loading U-Boot proper, add support for specifying offset in struct spl_image_info, which defines the offset from the beginning of the header and the beginning of the executable data. Initial support is added only for SPI, MMC and SATA code. We can extend it later if needed. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Marek Behún <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 925b6f0cc64..afbf39bef49 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -219,6 +219,7 @@ struct spl_image_info {
void *fdt_addr;
#endif
u32 boot_device;
+ u32 offset;
u32 size;
u32 flags;
void *arg;