diff options
author | Nitin Garg <nitin.garg@freescale.com> | 2014-05-27 08:30:30 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-05-27 09:39:37 -0500 |
commit | 441fd86d055c57b79257943449a8101b83e98c61 (patch) | |
tree | 26621a33b00f8b3c2b346a53384b38b99f27a268 /tools/imximage.h | |
parent | 0802947cfb94789cdb6b8a402a7c4523549c2a12 (diff) | |
download | u-boot-imx-441fd86d055c57b79257943449a8101b83e98c61.zip u-boot-imx-441fd86d055c57b79257943449a8101b83e98c61.tar.gz u-boot-imx-441fd86d055c57b79257943449a8101b83e98c61.tar.bz2 |
ENGR00315499-4: Add support for i.MX6 Plugin images
Support generating plugin images. Make sure not to effect the size
of DCD images.
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Diffstat (limited to 'tools/imximage.h')
-rw-r--r-- | tools/imximage.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/imximage.h b/tools/imximage.h index 01f861e..28ce671 100644 --- a/tools/imximage.h +++ b/tools/imximage.h @@ -8,7 +8,9 @@ #ifndef _IMXIMAGE_H_ #define _IMXIMAGE_H_ +#include <config.h> #define MAX_HW_CFG_SIZE_V2 121 /* Max number of registers imx can set for v2 */ +#define MAX_PLUGIN_CODE_SIZE (16*1024) #define MAX_HW_CFG_SIZE_V1 60 /* Max number of registers imx can set for v1 */ #define APP_CODE_BARKER 0xB1 #define DCD_BARKER 0xB17219E9 @@ -54,6 +56,7 @@ enum imximage_cmd { CMD_BOOT_OFFSET, CMD_DATA, CMD_CSF, + CMD_PLUGIN, }; enum imximage_fld_types { @@ -149,7 +152,12 @@ typedef struct { typedef struct { flash_header_v2_t fhdr; boot_data_t boot_data; - dcd_v2_t dcd_table; + union { + dcd_v2_t dcd_table; +#ifdef CONFIG_USE_PLUGIN + char plugin_code[MAX_PLUGIN_CODE_SIZE]; +#endif + } data; } imx_header_v2_t; /* The header must be aligned to 4k on MX53 for NAND boot */ |