summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-09-14 13:46:22 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-09-29 06:03:45 +0200
commit11824819d53f37913b404eaca2977f0c9c5964ff (patch)
tree2f0f9a7c2f741cd0d2a281bf0c6a8b381af38240 /arch
parent44368eb7f6f9408e67f6b97570204fd084638996 (diff)
cmd_writebcb_mx7: parse first firmware offset too
Use the correct array element for the first firmware offset argument. Due to that bug, so far only the second firmware has been used and set as the offset of the first firmware in the FCB. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/imx-common/cmd_writebcb_mx7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/imx-common/cmd_writebcb_mx7.c b/arch/arm/imx-common/cmd_writebcb_mx7.c
index 83becf7e539..326ed6ec7d4 100644
--- a/arch/arm/imx-common/cmd_writebcb_mx7.c
+++ b/arch/arm/imx-common/cmd_writebcb_mx7.c
@@ -406,9 +406,9 @@ static int do_write_bcb(cmd_tbl_t *cmdtp, int flag, int argc,
if (argc < 2)
return -1;
- fw1_off = simple_strtoul(argv[2], NULL, 16);
+ fw1_off = simple_strtoul(argv[1], NULL, 16);
if (argc > 2)
- fw2_off = simple_strtoul(argv[3], NULL, 16);
+ fw2_off = simple_strtoul(argv[2], NULL, 16);
else
fw2_off = 0;