summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge@foundries.io>2019-12-11 10:42:36 +0100
committerStefano Babic <sbabic@denx.de>2019-12-27 12:55:59 +0100
commite97bdfa5da70600e9755d6f70713744ed25f62c3 (patch)
tree44e723d0c149f8427663785a9fb26780c2d48e0c /tools
parent3b5aefac569dcf53152eebae9cf419ecd9ac76f0 (diff)
tools/imximage: share DCD information via Kconfig
IMX based platforms can have the DCD table located on different addresses due to differences in their memory maps (ie iMX7ULP). This information is required by the user to sign the images for secure boot so continue making it accessible via mkimage. Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/imximage.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/imximage.c b/tools/imximage.c
index d7c0b6e883..d7edd3c52f 100644
--- a/tools/imximage.c
+++ b/tools/imximage.c
@@ -11,9 +11,13 @@
#include "imagetool.h"
#include <image.h>
#include "imximage.h"
+#include <generated/autoconf.h>
#define UNDEFINED 0xFFFFFFFF
+#if !defined(CONFIG_IMX_DCD_ADDR)
+#define CONFIG_IMX_DCD_ADDR 0x00910000
+#endif
/*
* Supported commands for configuration file
*/
@@ -524,8 +528,8 @@ static void print_hdr_v2(struct imx_header *imx_hdr)
printf("HAB Blocks: 0x%08x 0x%08x 0x%08x\n",
(uint32_t)fhdr_v2->self, 0,
(uint32_t)(fhdr_v2->csf - fhdr_v2->self));
- printf("DCD Blocks: 0x00910000 0x%08x 0x%08x\n",
- offs, be16_to_cpu(dcdlen));
+ printf("DCD Blocks: 0x%08x 0x%08x 0x%08x\n",
+ offs, CONFIG_IMX_DCD_ADDR, be16_to_cpu(dcdlen));
}
} else {
imx_header_v2_t *next_hdr_v2;