android: boot: update android_image_get_dtb_img_addr to support v3, v4
authorSafae Ouajih <souajih@baylibre.com>
Sun, 5 Feb 2023 23:50:15 +0000 (00:50 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 4 Apr 2023 18:50:47 +0000 (14:50 -0400)
commit2d0da1972ded075ba783f3ea705662349e77fa61
treeba1be2d79e5b1945d1bd5783cb51b5b201033c73
parentb36b227b6a37695ab39306341c3a977cf9b081b6
android: boot: update android_image_get_dtb_img_addr to support v3, v4

Add support for boot image version 3 and 4 in
android_image_get_dtb_img_addr().
Since the dtb is now included in vendor_boot image
instead of boot image, extract the dtb address from
vendor_boot image when a v3 or v4 is used.

Signed-off-by: Safae Ouajih <souajih@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/image-android.c