aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/ti/am335x/header.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/ti/am335x/header.c')
-rw-r--r--src/cpu/ti/am335x/header.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cpu/ti/am335x/header.c b/src/cpu/ti/am335x/header.c
index bd2f344fd4..5ed943edeb 100644
--- a/src/cpu/ti/am335x/header.c
+++ b/src/cpu/ti/am335x/header.c
@@ -40,6 +40,9 @@ struct omap_image_headers {
struct gp_device_header image_header;
};
+// A symbol which defines how much of the image the iROM should load.
+extern char header_load_size;
+
struct omap_image_headers headers __attribute__((section(".header"))) = {
.config_headers = {
.toc_chsettings = {
@@ -66,7 +69,7 @@ struct omap_image_headers headers __attribute__((section(".header"))) = {
}
},
.image_header = {
- .size = CONFIG_ROM_SIZE,
+ .size = (uintptr_t)&header_load_size,
.destination = CONFIG_BOOTBLOCK_BASE
}
};