summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-03-08 11:29:13 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 14:56:08 +0800
commit3d9e1681f3a3be57dd9e303a52ac92bd427b29e3 (patch)
treea51290bc14298129b82e19189d121881801ac03f /tools/imximage.h
parent9d40a90876b287370df0a0be1c8297641a1686f4 (diff)
downloadu-boot-imx-3d9e1681f3a3be57dd9e303a52ac92bd427b29e3.zip
u-boot-imx-3d9e1681f3a3be57dd9e303a52ac92bd427b29e3.tar.gz
u-boot-imx-3d9e1681f3a3be57dd9e303a52ac92bd427b29e3.tar.bz2
MLK-10774-25 imx:imximage add plugin support
This patch is from commit 441fd86d055c57b79257943449a8101b83e98c61 Signed-off-by: Nitin Garg <nitin.garg@freescale.com> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'tools/imximage.h')
-rw-r--r--tools/imximage.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index 36fe095..9685d8c 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 220 /* 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
@@ -56,6 +58,7 @@ enum imximage_cmd {
CMD_BOOT_OFFSET,
CMD_DATA,
CMD_CSF,
+ CMD_PLUGIN,
};
enum imximage_fld_types {
@@ -151,7 +154,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 */