tools: imximage: Fix the maximum DCD size for mx53/mx6
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 1 Sep 2014 12:56:23 +0000 (09:56 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 9 Sep 2014 14:23:00 +0000 (16:23 +0200)
commit021e79c85371d2d5882f2eb6c58233f016add52d
treed81b9289a12c8892d9f6454b141006b67f96fcda
parentdad08286eaa84779349fe4cec427e1e29beaffac
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 <jonas.d.karlsson@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Nitin Garg <nitin.garg@freescale.com>
Acked-by: Nitin Garg <nitin.garg@freescale.com>
tools/imximage.h