]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/flash.c
mx23evk: Enable USB support
[karo-tx-uboot.git] / common / flash.c
index 683978e473c79303b26143304bd19128144d4c39..8244ba2ddde65b029cb5b5f8af9f8236129ddcb7 100644 (file)
@@ -27,6 +27,7 @@
 #include <flash.h>
 
 #if !defined(CONFIG_SYS_NO_FLASH)
+#include <mtd/cfi_flash.h>
 
 extern flash_info_t  flash_info[]; /* info for FLASH chips */
 
@@ -220,6 +221,9 @@ void flash_perror (int err)
        case ERR_PROG_ERROR:
                puts ("General Flash Programming Error\n");
                break;
+       case ERR_ABORTED:
+               puts("Flash Programming Aborted\n");
+               break;
        default:
                printf ("%s[%d] FIXME: rc=%d\n", __FILE__, __LINE__, err);
                break;