summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-11-16 16:38:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-30 08:31:10 +0100
commit38a995509863505b1b13995d9ba318fc1224929e (patch)
treead6ee0b5c225dd5e551ee426d372590beaf2e565 /arch
parent363ffc7f48073a16df82e02703141fe95235c7e9 (diff)
downloadbarebox-38a995509863505b1b13995d9ba318fc1224929e.tar.gz
barebox-38a995509863505b1b13995d9ba318fc1224929e.tar.xz
scripts: imx-image: Add support for max_load_size option
When an image is loaded to SRAM we can normally only load a part of the full image, limited by the available space in SRAM. We currently load the pblb image which is the executable part of the PBL without the compressed barebox payload. We are going to link the compressed barebox image into the pbl image though, so we can't see the desired load size from outside the image anymore. This adds a max_load_size option to set this size explicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/include/mach/imx-header.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/imx-header.h b/arch/arm/mach-imx/include/mach/imx-header.h
index 05f1669318..50584bb24b 100644
--- a/arch/arm/mach-imx/include/mach/imx-header.h
+++ b/arch/arm/mach-imx/include/mach/imx-header.h
@@ -96,6 +96,7 @@ struct config_data {
uint32_t image_load_addr;
uint32_t image_dcd_offset;
uint32_t image_size;
+ uint32_t max_load_size;
uint32_t load_size;
char *outfile;
char *srkfile;