]> git.baikalelectronics.ru Git - uboot.git/commit
spl: fit: Load devicetree when a Linux payload is found
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 20 Jan 2021 16:46:56 +0000 (10:46 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 18 Feb 2021 00:46:43 +0000 (19:46 -0500)
commita5051b3ae65e74331da112912745ff7018de6be4
treef7ad336c0902976347d1de48fa47149c6e48e399
parent385c18ddd980eeb4f6ec9e5e413e1722de32446a
spl: fit: Load devicetree when a Linux payload is found

When a FIT config specifies a devicetree, we should load it, no
questions asked. In the case of the "simple" FIT loading path, a
difficulty arises in selecting the load address of the FDT.

The default FDT location is right after the "kernel" or "firmware"
image. However, if that is an OP-TEE image, then the FDT may end up in
secure DRAM, and not be accessible to normal world kernels.

Although the best solution is to be more careful about the FDT
address, a viable workaround is to only append the FDT after a u-boot
or Linux image. This is identical to the previous logic, except that
FDT loading is extended to IH_OS_LINUX images.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
common/spl/spl_fit.c