]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/spi_flash.h
USB: MX5: add generic USB EHCI support for mx51 and mx53
[karo-tx-uboot.git] / include / spi_flash.h
index 1f8ba2987ef00f10346b15f7cbfdb47fc9798567..2671ab55398aed94c97a2893a44b1b6dac06a1a9 100644 (file)
 #include <spi.h>
 #include <linux/types.h>
 
-struct spi_flash_region {
-       unsigned int    count;
-       unsigned int    size;
-};
-
 struct spi_flash {
        struct spi_slave *spi;
 
        const char      *name;
 
+       /* Total flash size */
        u32             size;
+       /* Write (page) size */
+       u32             page_size;
+       /* Erase (sector) size */
+       u32             sector_size;
 
        int             (*read)(struct spi_flash *flash, u32 offset,
                                size_t len, void *buf);