summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kurz <akurz@blala.de>2016-06-30 11:10:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-04 09:30:56 +0200
commitc8608f07720a0bd2cc0da57dcfc1c6e21816b587 (patch)
tree710584331d430485a75a649954e236a20415e3a0 /scripts
parent22247f0976b797fc4a667858a93e25b0c0f18436 (diff)
downloadbarebox-c8608f07720a0bd2cc0da57dcfc1c6e21816b587.tar.gz
barebox-c8608f07720a0bd2cc0da57dcfc1c6e21816b587.tar.xz
scripts: imx-image: super_root_key command depends on header_version 1
The Super Root Key pointer exclusively exists in flash header version 1 which is used for i.MX25, i.MX35 and i.MX51 SOC as described in freescales AN4547 document. Simplify the code a little bit. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/imx/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index 70936babfd..f1accc4708 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -327,7 +327,7 @@ static int do_super_root_key(struct config_data *data, int argc, char *argv[])
return -EINVAL;
}
- if (data->cpu_type != 35 && data->cpu_type != 25) {
+ if (data->header_version != 1) {
fprintf(stderr, "Warning: The super_root_key command is meaningless "
"on non HABv3 based SoCs\n");
return 0;