X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_sf.c;h=d69ae6a1ba90a2247446b1096b1f39618622d588;hb=65d342541e78ab9a22bf480cc4fe2f659f94bad4;hp=6a60b16805b261013bd21722d1821cb92d174524;hpb=c1b7c70083fc8d0bb77db20dd47bb6c988f3dc67;p=u-boot diff --git a/common/cmd_sf.c b/common/cmd_sf.c index 6a60b16805..d69ae6a1ba 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c @@ -2,7 +2,9 @@ * Command for accessing SPI flash. * * Copyright (C) 2008 Atmel Corporation + * Licensed under the GPL-2 or later. */ + #include #include @@ -48,7 +50,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; } @@ -188,4 +190,5 @@ U_BOOT_CMD( " `offset' to memory at `addr'\n" "sf write addr offset len - write `len' bytes from memory\n" " at `addr' to flash at `offset'\n" - "sf erase offset len - erase `len' bytes from `offset'\n"); + "sf erase offset len - erase `len' bytes from `offset'" +);