summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/tqma53
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-03-23 08:50:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-03-23 08:58:18 +0100
commit04b9b0d5374ae681f34e498f26a88ab80dd36f57 (patch)
tree076201b3bac00b8edd88fd4e608ae80f72a47b6f /arch/arm/boards/tqma53
parent36bfa7b2a71fc343fbe673fb263371ec70865bd5 (diff)
downloadbarebox-04b9b0d5374ae681f34e498f26a88ab80dd36f57.tar.gz
barebox-04b9b0d5374ae681f34e498f26a88ab80dd36f57.tar.xz
ARM i.MX flash header: Fix barebox image sizes
The image sizes have been hardcoded to 256K. This is inefficient for smaller images and nonfunctional for bigger images. Calculate the image size during compile time and use it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/tqma53')
-rw-r--r--arch/arm/boards/tqma53/flash_header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/tqma53/flash_header.c b/arch/arm/boards/tqma53/flash_header.c
index 73ea0c3270..f5e817c8c7 100644
--- a/arch/arm/boards/tqma53/flash_header.c
+++ b/arch/arm/boards/tqma53/flash_header.c
@@ -97,7 +97,7 @@ struct imx_flash_header_v2 __flash_header_section flash_header = {
.self = APP_DEST + 0x400,
.boot_data.start = APP_DEST,
- .boot_data.size = 0x40000,
+ .boot_data.size = DCD_BAREBOX_SIZE,
.dcd.header.tag = DCD_HEADER_TAG,
.dcd.header.length = cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),