From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bbiHH-00082Z-7W for barebox@lists.infradead.org; Mon, 22 Aug 2016 06:00:07 +0000 Date: Mon, 22 Aug 2016 07:59:45 +0200 From: Sascha Hauer Message-ID: <20160822055945.GA20657@pengutronix.de> References: <1471810573-1306-1-git-send-email-akurz@blala.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1471810573-1306-1-git-send-email-akurz@blala.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] scripts: imx-image: DCD check command for v2 only To: Alexander Kurz Cc: barebox@lists.infradead.org On Sun, Aug 21, 2016 at 10:16:13PM +0200, Alexander Kurz wrote: > DCD check command is currently implemented for imximg v2 only. > This command may also be available for v1 as mentioned in IMX35RM as > DCD-address-type "wait/read", but due to the lack of further details > it will be not supported. > > Signed-off-by: Alexander Kurz > --- > scripts/imx/imx-image.c | 5 +++++ > 1 file changed, 5 insertions(+) Applied, thanks Sascha > > diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c > index c0bf9c0..d0c4152 100644 > --- a/scripts/imx/imx-image.c > +++ b/scripts/imx/imx-image.c > @@ -450,6 +450,11 @@ static int write_dcd(const char *outfile) > static int check(const struct config_data *data, uint32_t cmd, uint32_t addr, > uint32_t mask) > { > + if (data->header_version != 2) { > + fprintf(stderr, "DCD check command is not available or " > + "not yet implemented for this SOC\n"); > + return -EINVAL; > + } > if (curdcd > MAX_DCD - 3) { > fprintf(stderr, "At maximum %d dcd entried are allowed\n", MAX_DCD); > return -ENOMEM; > -- > 2.1.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox