]> git.sur5r.net Git - u-boot/commitdiff
imx: tools: imximage: fix CLR bit command
authorAdrian Alonso <adrian.alonso@nxp.com>
Mon, 2 May 2016 15:29:14 +0000 (10:29 -0500)
committerStefano Babic <sbabic@denx.de>
Tue, 17 May 2016 15:52:19 +0000 (17:52 +0200)
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>
tools/imximage.c

index 7c219222e9f4cd73e06d57cb69c66bfebeba0f88..092d550002a4030978859f06226059ed2404b4ec 100644 (file)
@@ -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;