diff options
author | Alexander Kurz <akurz@blala.de> | 2016-08-21 22:16:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-22 07:59:31 +0200 |
commit | 2af7f2b26b67d8030df7a4a7d957b02bb1a09507 (patch) | |
tree | c5cddeb06145a371d6c2ee5bb5db6e29da448bdb /scripts/imx | |
parent | a6e1dbebd1973944eea15b4122346170eece5767 (diff) | |
download | barebox-2af7f2b26b67d8030df7a4a7d957b02bb1a09507.tar.gz barebox-2af7f2b26b67d8030df7a4a7d957b02bb1a09507.tar.xz |
scripts: imx-image: DCD check command for v2 only
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 <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/imx')
-rw-r--r-- | scripts/imx/imx-image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index c0bf9c004f..d0c4152b81 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; |