From: Adrian Alonso <adrian.alonso@nxp.com>
Date: Mon, 2 May 2016 15:29:14 +0000 (-0500)
Subject: imx: tools: imximage: fix CLR bit command
X-Git-Tag: v2025.01-rc5-pxa1908~9459^2~8
X-Git-Url: http://git.dujemihanovic.xyz/projects?a=commitdiff_plain;h=0782a8803d555d80f1a68887a18cc32fc7185627;p=u-boot.git

imx: tools: imximage: fix CLR bit command

Fix incorrect parametr in CMD_CHECK_BITS_CLR command
Pass CLR parameter to DCD header for CMD_CHECK_BITS_CLR

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
---

diff --git a/tools/imximage.c b/tools/imximage.c
index 7c219222e9..092d550002 100644
--- a/tools/imximage.c
+++ b/tools/imximage.c
@@ -209,7 +209,7 @@ static void set_dcd_param_v2(struct imx_header *imxhdr, uint32_t dcd_len,
 		d = d2;
 		d->write_dcd_command.tag = DCD_CHECK_DATA_COMMAND_TAG;
 		d->write_dcd_command.length = cpu_to_be16(4);
-		d->write_dcd_command.param = DCD_CHECK_BITS_SET_PARAM;
+		d->write_dcd_command.param = DCD_CHECK_BITS_CLR_PARAM;
 		break;
 	default:
 		break;