diff options
author | TsiChung Liew <tsicliew@gmail.com> | 2009-06-30 14:30:19 +0000 |
---|---|---|
committer | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2009-07-14 09:46:39 -0500 |
commit | 6e8d58d36691520f8da74cd948661d28d5a5dc66 (patch) | |
tree | ac1952a9986fb6ad75807b7bf8c339bad21adc10 | |
parent | ee0a8462466dd284968536eb57c6eef4be0d6aad (diff) | |
download | u-boot-imx-6e8d58d36691520f8da74cd948661d28d5a5dc66.zip u-boot-imx-6e8d58d36691520f8da74cd948661d28d5a5dc66.tar.gz u-boot-imx-6e8d58d36691520f8da74cd948661d28d5a5dc66.tar.bz2 |
Command for accessing serial flash update
Change strtoul number base of argv 3 from 0 to 16
Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
-rw-r--r-- | common/cmd_sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 2d463a8..d571f60 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c @@ -48,7 +48,7 @@ static int do_spi_flash_probe(int argc, char *argv[]) goto usage; } if (argc >= 4) { - mode = simple_strtoul(argv[3], &endp, 0); + mode = simple_strtoul(argv[3], &endp, 16); if (*argv[3] == 0 || *endp != 0) goto usage; } |