summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-03-16 06:35:06 (GMT)
committerStefano Babic <sbabic@denx.de>2017-03-19 16:30:15 (GMT)
commit3e0a71c157951c0f88a31182a6f3159cd3e12e23 (patch)
tree829cd00ecde4818fc3d3e4c381ff2d9db16eedce /tools/imximage.h
parent7966b43778f2556ecbda2275f1296934071224b2 (diff)
downloadu-boot-3e0a71c157951c0f88a31182a6f3159cd3e12e23.tar.xz
tools: imximage: add set bit command
Add set bit command support. Usage: SET_BIT 4 [address] [bitmask] Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools/imximage.h')
-rw-r--r--tools/imximage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index db8b9a3..78d48bb 100644
--- a/tools/imximage.h
+++ b/tools/imximage.h
@@ -50,7 +50,8 @@
#define DCD_VERSION 0x40
#define DCD_WRITE_DATA_COMMAND_TAG 0xCC
#define DCD_WRITE_DATA_PARAM 0x4
-#define DCD_WRITE_CLR_BIT_PARAM 0xC
+#define DCD_WRITE_CLR_BIT_PARAM 0xC
+#define DCD_WRITE_SET_BIT_PARAM 0x1C
#define DCD_CHECK_DATA_COMMAND_TAG 0xCF
#define DCD_CHECK_BITS_SET_PARAM 0x14
#define DCD_CHECK_BITS_CLR_PARAM 0x04
@@ -62,6 +63,7 @@ enum imximage_cmd {
CMD_BOOT_OFFSET,
CMD_WRITE_DATA,
CMD_WRITE_CLR_BIT,
+ CMD_WRITE_SET_BIT,
CMD_CHECK_BITS_SET,
CMD_CHECK_BITS_CLR,
CMD_CSF,