summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2012-08-27 12:50:58 +0200
committerTom Rini <trini@ti.com>2012-09-27 11:20:27 -0700
commit022b4975c8dd304fa9f949594784f78601ae07c2 (patch)
tree680432c4f03492bbc801550721e4205e424e959b /include
parent33d346464adb8dc206d1f9adf73bdfe2ed959502 (diff)
downloadu-boot-imx-022b4975c8dd304fa9f949594784f78601ae07c2.zip
u-boot-imx-022b4975c8dd304fa9f949594784f78601ae07c2.tar.gz
u-boot-imx-022b4975c8dd304fa9f949594784f78601ae07c2.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index e405386..cf441a1 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -38,8 +38,11 @@ struct spl_image_info {
u32 load_addr;
u32 entry_point;
u32 size;
+ u32 flags;
};
+#define SPL_COPY_PAYLOAD_ONLY 1
+
extern struct spl_image_info spl_image;
extern u32 *boot_params_ptr;