From: Fabio Estevam Date: Mon, 1 Sep 2014 12:56:23 +0000 (-0300) Subject: tools: imximage: Fix the maximum DCD size for mx53/mx6 X-Git-Tag: v2014.10-rc3~66^2~3^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=021e79c85371d2d5882f2eb6c58233f016add52d;p=oweals%2Fu-boot.git tools: imximage: Fix the maximum DCD size for mx53/mx6 According to mx53 and mx6 reference manuals: "The maximum size of the DCD limited to 1768 bytes." As each DCD entry consists of 8 bytes, we have a total of 1768 / 8 = 221, and excluding the first entry, which is the header leads to 220 as the maximum number for DCD size. Reported-by: Jonas Karlsson Signed-off-by: Fabio Estevam Acked-by: Nitin Garg Acked-by: Nitin Garg --- diff --git a/tools/imximage.h b/tools/imximage.h index 01f861e7a5..5b5ad0edf4 100644 --- a/tools/imximage.h +++ b/tools/imximage.h @@ -8,7 +8,7 @@ #ifndef _IMXIMAGE_H_ #define _IMXIMAGE_H_ -#define MAX_HW_CFG_SIZE_V2 121 /* Max number of registers imx can set for v2 */ +#define MAX_HW_CFG_SIZE_V2 220 /* Max number of registers imx can set for v2 */ #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