]> code.ossystems Code Review - bsp/u-boot.git/commit
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)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 9 Sep 2014 15:30:36 +0000 (12:30 -0300)
commit45108f1c02d39da29748bfd84bdcf3459a5cff37
tree7ede2147f2f0bececc10ca698acab9c63fe480c3
parent9f3f1814ad6d008ed366e8d25ae8017bb211fd1e
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