]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/spi_flash.h
tsec: Fix MDIO on devices with eTSEC2
[karo-tx-uboot.git] / include / spi_flash.h
index 1f8ba2987ef00f10346b15f7cbfdb47fc9798567..a384071fbee4b908eff02cd86db82f15677e0d2d 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;
 
@@ -38,6 +33,8 @@ struct spi_flash {
 
        u32             size;
 
+       u32             sector_size;
+
        int             (*read)(struct spi_flash *flash, u32 offset,
                                size_t len, void *buf);
        int             (*write)(struct spi_flash *flash, u32 offset,