arm64: zynqmp: enable u-boot itb generation via binman if SPL is enabled
authorPrasad Kummari <prasad.kummari@amd.com>
Tue, 21 Jan 2025 12:24:59 +0000 (13:24 +0100)
committerMichal Simek <michal.simek@amd.com>
Wed, 5 Feb 2025 15:22:55 +0000 (16:22 +0100)
commit0184f3eead8e7454b077ac92148b47d180b01a1e
treeb088165ce4819b481a32cc59c27bf11ea0cc1f53
parent5f87bc16d43c05a2bc5e0e551a758fb350417a96
arm64: zynqmp: enable u-boot itb generation via binman if SPL is enabled

Output images are generated via Binman only if SPL is enabled, as
there is no consumer for them otherwise. An #ifdef check ensures that
when SPL is enabled, Binman generates the U-Boot ITB. If SPL is disabled,
ITB generation is skipped since the ITB format is supported only by SPL.
Without SPL, generating such an image is unnecessary, as it would not be
used

The second reason is that when a DTB is passed, the current logic cannot
handle it without an additional step in U-Boot to parse an appended FIT
image and enable board-specific code to select the correct DTB config.
The MULTI_DTB_FIT configuration should be used if support for multiple
DTBs is required, but SPL is not being used.

Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/7cba738ae36dacf7d1b0cfbaf13e0c9b3a0df225.1737462296.git.michal.simek@amd.com
arch/arm/dts/zynqmp-binman-som.dts
arch/arm/dts/zynqmp-binman.dts