]> git.sur5r.net Git - u-boot/commit
SPL: Add option to skip copying of the mkimage header
authorStefan Roese <sr@denx.de>
Mon, 27 Aug 2012 10:50:58 +0000 (12:50 +0200)
committerTom Rini <trini@ti.com>
Thu, 27 Sep 2012 18:20:27 +0000 (11:20 -0700)
commit022b4975c8dd304fa9f949594784f78601ae07c2
tree680432c4f03492bbc801550721e4205e424e959b
parent33d346464adb8dc206d1f9adf73bdfe2ed959502
SPL: Add option to skip copying of the mkimage header

On some system (e.g. powerpc), the load-address and entry-point is
located at address 0. So the current approach to load the image
(payload) including the header to the address "load-address - 64"
can't work here.

This patch adds an flag to skip this copying including header to
the SPL framework. By setting SPL_COPY_PAYLOAD_ONLY, only the
playload will be copied. This will be used by the SPL NOR flash
driver on powerpc.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Tom Rini <trini@ti.com>
common/spl/spl.c
include/spl.h