]> git.ipfire.org Git - thirdparty/u-boot.git/commit - tools/kwbimage.c
tools: kwbimage: Add support for XIP SPI/NOR images
authorPali Rohár <pali@kernel.org>
Wed, 18 Jan 2023 20:42:40 +0000 (21:42 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commitcccc5b4f3d06dd2b021eaf690f8f828c3d4c9af5
tree500d4728328393cc385fe93a3ee88e9f6c67499f
parent27670acaac82f370b635f1af103594a335322bcf
tools: kwbimage: Add support for XIP SPI/NOR images

Marvell BootROM can execute SPI images directly from NOR (either SPI/serial
or parallel) without copying them to DDR RAM. This is know at XIP - execute
in place. To achieve that, destination address in kwbimage must be set to
0xFFFFFFFF and execute address to the offset in bytes from the beginning of
NOR memory.

Kirkwood and Dove which use kwbimage v0 format and have SPI address space
mapped to physical memory at 0xE8000000-0xEFFFFFFF by BootROM.

Armada SoCs use kwbimage v1 format and have SPI address space mapped to
physical memory at 0xD4000000-0xD7FFFFFF and Device bus address space (used
for parallel NOR) at 0xD8000000-0xDFFFFFFF.

Add support for generating XIP kwbimages by mkimage -x flag and mark xflag
as valid option in kwbimage.c.

Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c