#define _SPI_FLASH_H_
#include <spi.h>
-
-struct spi_flash_region {
- unsigned int count;
- unsigned int size;
-};
+#include <linux/types.h>
struct spi_flash {
struct spi_slave *spi;
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,