]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: Add support for Android DT image
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 16 Aug 2018 20:34:12 +0000 (23:34 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 20 Aug 2018 11:21:29 +0000 (07:21 -0400)
commitc04473345712ddb5484000c04d76218f258542df
treee94ac7c15056044a5641dd7715bbd67f46935b1a
parent287c04e11a7371a9f8f902abef2bb39faf5aaa4c
common: Add support for Android DT image

Android documentation recommends new image format for storing DTB/DTBO
files: [1]. To support that format, this patch adds helper functions for
Android DTB/DTBO format. In image-android-dt.* files you can find helper
functions to work with Android DT image format, such us routines for:
    - printing the dump of image structure
    - getting the address and size of desired dtb/dtbo file

This patch uses dt_table.h file, that was added in commit 643cefa4d848
("Import Android's dt_table.h for DT image format") by Alex Deymo.

[1] https://source.android.com/devices/architecture/dto/partitions

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/image-android-dt.c [new file with mode: 0644]
include/image-android-dt.h [new file with mode: 0644]