]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_sf.c
smc911x: update SMC911X related configuration description
[u-boot] / common / cmd_sf.c
index 6a60b16805b261013bd21722d1821cb92d174524..d69ae6a1ba90a2247446b1096b1f39618622d588 100644 (file)
@@ -2,7 +2,9 @@
  * Command for accessing SPI flash.
  *
  * Copyright (C) 2008 Atmel Corporation
+ * Licensed under the GPL-2 or later.
  */
+
 #include <common.h>
 #include <spi_flash.h>
 
@@ -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'"
+);