imx: imximage: add new CHECK/CLR BIT command
authorAdrian Alonso <aalonso@freescale.com>
Tue, 21 Jul 2015 00:04:55 +0000 (19:04 -0500)
committerStefano Babic <sbabic@denx.de>
Sun, 26 Jul 2015 10:07:14 +0000 (12:07 +0200)
commit0b7f7c339c13256a2d6f39c0323b0224cb6d46d4
tree5943f4986caf0cd740001f462f16f3f3b6c238fc
parent452308c02bb5f4066c8d8650e9f012e17dbb2f95
imx: imximage: add new CHECK/CLR BIT command

* Extend imximage DCD version 2 to support DCD commands
  CMD_WRITE_CLR_BIT 4 [address] [mask bit] means:
    while ((*address & ~mask) != 0);
  CMD_CHECK_BITS_SET 4 [address] [mask bit] means:
    while ((*address & mask) != mask);
  CMD_CHECK_BITS_CLR 4 [address] [mask bit] means:
    *address = *address & ~mask;
* Add set_dcd_param_v2 helper function to set DCD
  command parameters

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
tools/imximage.c
tools/imximage.h