summaryrefslogtreecommitdiff
path: root/include/android_image.h
diff options
context:
space:
mode:
authorSafae Ouajih <[email protected]>2023-02-06 00:50:12 +0100
committerTom Rini <[email protected]>2023-04-04 14:50:47 -0400
commit1115027d2f75ade805f0d4d44a6a2c21e74ea6b2 (patch)
tree11ceb4ab2e89966431db20868b43dc272d9b8a03 /include/android_image.h
parente058176be32b09ca4f787442fd99d29e44079519 (diff)
android: boot: update android_image_get_data to support v3, v4
Since boot image header version 3 and 4 introduced vendor boot image, use the following functions to fill the generic android structure : andr_image_data: - android_boot_image_v3_v4_parse_hdr() - android_vendor_boot_image_v3_v4_parse_hdr() Update android_image_get_data() to support v3 and v4 Signed-off-by: Safae Ouajih <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Tested-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/android_image.h')
-rw-r--r--include/android_image.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/android_image.h b/include/android_image.h
index fb3a9d9858b..99e78035082 100644
--- a/include/android_image.h
+++ b/include/android_image.h
@@ -323,6 +323,8 @@ struct andr_image_data {
ulong kernel_ptr; /* kernel address */
u32 kernel_size; /* size in bytes */
u32 ramdisk_size; /* size in bytes */
+ ulong vendor_ramdisk_ptr; /* vendor ramdisk address */
+ u32 vendor_ramdisk_size; /* vendor ramdisk size*/
u32 boot_ramdisk_size; /* size in bytes */
ulong second_ptr; /* secondary bootloader address */
u32 second_size; /* secondary bootloader size */
@@ -342,6 +344,7 @@ struct andr_image_data {
ulong tags_addr; /* physical addr for kernel tags */
u32 header_version; /* version of the boot image header */
u32 boot_img_total_size; /* boot image size */
+ u32 vendor_boot_img_total_size; /* vendor boot image size */
};
#endif