summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-04-25 10:16:02 +0000
committerStefano Babic <sbabic@denx.de>2013-04-28 11:18:03 +0200
commit6cb83829a013ed2631cba5d5c9bf42eaf2380131 (patch)
treea8b92da2b504a72c7ac7a528602337a831a038e2 /tools/imximage.h
parent7e2173cf82d0bc235b695460c56d46927febdf36 (diff)
downloadu-boot-imx-6cb83829a013ed2631cba5d5c9bf42eaf2380131.zip
u-boot-imx-6cb83829a013ed2631cba5d5c9bf42eaf2380131.tar.gz
u-boot-imx-6cb83829a013ed2631cba5d5c9bf42eaf2380131.tar.bz2
tools: arm: imx: Implement BOOT_OFFSET command for imximage
Implement BOOT_OFFSET command for imximage. This command is parallel to current BOOT_FROM command, but allows more flexibility in configuring arbitrary image header offset. Also add an imximage.cfg with default offset values into arm/arch/imx-common/ so the board-specific imximage.cfg can include this file to avoid magic constants. The syntax of BOOT_OFFSET command is "BOOT_OFFSET <u32 offset>". Signed-off-by: Marek Vasut <marex@denx.de> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Scott Wood <scottwood@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@ti.com> Acked-by: Stefano Babic <sbabic@denx.de> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools/imximage.h')
-rw-r--r--tools/imximage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index 42b6090..1445c1e 100644
--- a/tools/imximage.h
+++ b/tools/imximage.h
@@ -31,6 +31,11 @@
#define HEADER_OFFSET 0x400
+/*
+ * NOTE: This file must be kept in sync with arch/arm/include/asm/\
+ * imx-common/imximage.cfg because tools/imximage.c can not
+ * cross-include headers from arch/arm/ and vice-versa.
+ */
#define CMD_DATA_STR "DATA"
#define FLASH_OFFSET_UNDEFINED 0xFFFFFFFF
#define FLASH_OFFSET_STANDARD 0x400
@@ -52,6 +57,7 @@ enum imximage_cmd {
CMD_INVALID,
CMD_IMAGE_VERSION,
CMD_BOOT_FROM,
+ CMD_BOOT_OFFSET,
CMD_DATA
};