diff options
author | Nitin Garg <nitin.garg@freescale.com> | 2015-04-02 21:40:39 -0500 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-09 14:42:22 +0100 |
commit | 164e1d59c736ac233b817fa43f9c2d12b8a2b9de (patch) | |
tree | d9fa77a59c16d633063a8caf29b7db3cbd71a020 /tools/imximage.h | |
parent | 6c0b1859cc52ff929365560c1fefdf2e849d423f (diff) |
MLK-10567: Extend u-boot imximage to support check bits set/clr
Add support for HAB "Check data" all bits set and clear
check functionality. Rename CHECK_DATA to CHECK_BITS_SET.
Flag=0 -> (*address & mask) == 0 | All bits clear
Flag=2 -> (*address & mask) == mask | All bits set
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
(cherry picked from commit 0836912ef7a53d1f3d65f95556a34d03b8d65399)
Diffstat (limited to 'tools/imximage.h')
-rw-r--r-- | tools/imximage.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/imximage.h b/tools/imximage.h index 2d33f8f5e1..68602a93df 100644 --- a/tools/imximage.h +++ b/tools/imximage.h @@ -66,7 +66,8 @@ #define DCD_WRITE_DATA_PARAM 0x4 #define DCD_CLR_BIT_PARAM 0xC #define DCD_CHECK_DATA_COMMAND_TAG 0xCF -#define DCD_CHECK_DATA_PARAM 0x14 +#define DCD_CHECK_BITS_SET_PARAM 0x14 +#define DCD_CHECK_BITS_CLR_PARAM 0x04 enum imximage_cmd { CMD_INVALID, @@ -75,7 +76,8 @@ enum imximage_cmd { CMD_BOOT_OFFSET, CMD_DATA, CMD_CLR_BIT, - CMD_CHECK_DATA, + CMD_CHECK_BITS_SET, + CMD_CHECK_BITS_CLR, CMD_CSF, CMD_PLUGIN, }; |