]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/flash.h
cfi-mtd: Add cfi-mtd driver.
[karo-tx-uboot.git] / include / flash.h
index 05fa57240bea1e47f017e928316f5ab0f467c45b..6e2981c5aefe0b207e5c1cf559680c5684e8ccb5 100644 (file)
@@ -86,6 +86,9 @@ typedef unsigned long flash_sect_t;
 
 /* convert between bit value and numeric value */
 #define CFI_FLASH_SHIFT_WIDTH  3
+
+/* cfi-mtd device name */
+#define        CFI_MTD_DEV_NAME        "cfi-mtd"
 /* Prototypes */
 
 extern unsigned long flash_init (void);
@@ -103,6 +106,11 @@ extern int flash_write (char *, ulong, ulong);
 extern flash_info_t *addr2info (ulong);
 extern int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt);
 
+/* drivers/mtd/cfi_mtd.c */
+#ifdef CONFIG_FLASH_CFI_MTD
+extern int cfi_mtd_init(void);
+#endif
+
 /* board/?/flash.c */
 #if defined(CONFIG_SYS_FLASH_PROTECTION)
 extern int flash_real_protect(flash_info_t *info, long sector, int prot);