summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-02-23 18:46:23 +0800
committerYe Li <ye.li@nxp.com>2016-03-25 13:43:17 +0800
commitbaeb9cf125f8c8c494fdb8e3683d61eb1b5fc107 (patch)
treef454b650d7c8bae0a3276749521c10a4c6550bb1 /tools/imximage.h
parentd58a3d2a621b7d4d713e83922ece7acb63d10c10 (diff)
downloadu-boot-imx-baeb9cf125f8c8c494fdb8e3683d61eb1b5fc107.zip
u-boot-imx-baeb9cf125f8c8c494fdb8e3683d61eb1b5fc107.tar.gz
u-boot-imx-baeb9cf125f8c8c494fdb8e3683d61eb1b5fc107.tar.bz2
MLK-12440-3 mkimage: Update imximage tool to support plugin
Update imximage for parsing and adding plugin codes to IVT. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'tools/imximage.h')
-rw-r--r--tools/imximage.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index c7b9b5c..d5917ce 100644
--- a/tools/imximage.h
+++ b/tools/imximage.h
@@ -2,13 +2,17 @@
* (C) Copyright 2009
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
*
+ * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
+ *
* SPDX-License-Identifier: GPL-2.0+
*/
#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
@@ -64,6 +68,7 @@ enum imximage_cmd {
CMD_CHECK_BITS_SET,
CMD_CHECK_BITS_CLR,
CMD_CSF,
+ CMD_PLUGIN,
};
enum imximage_fld_types {
@@ -164,7 +169,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 */