diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 02:20:13 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-11 21:00:54 +0200 |
commit | e7b44eddbef88b1a922f8d82088ba236aad01caf (patch) | |
tree | 4ba07d5e3ed3d4b9992afb6f2a47f556aa3d6741 /drivers/mtd/spi/spi_flash_internal.h | |
parent | 6163045bcd276818d9ad6bdd1bf36ddcd60d014b (diff) | |
download | talos-obmc-uboot-e7b44eddbef88b1a922f8d82088ba236aad01caf.tar.gz talos-obmc-uboot-e7b44eddbef88b1a922f8d82088ba236aad01caf.zip |
sf: unify erase functions
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/spi_flash_internal.h')
-rw-r--r-- | drivers/mtd/spi/spi_flash_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash_internal.h b/drivers/mtd/spi/spi_flash_internal.h index 440c044f76..114b63459a 100644 --- a/drivers/mtd/spi/spi_flash_internal.h +++ b/drivers/mtd/spi/spi_flash_internal.h @@ -20,6 +20,7 @@ #define CMD_READ_ARRAY_LEGACY 0xe8 #define CMD_READ_STATUS 0x05 +#define CMD_WRITE_ENABLE 0x06 /* Common status */ #define STATUS_WIP 0x01 @@ -58,6 +59,10 @@ int spi_flash_cmd_poll_bit(struct spi_flash *flash, unsigned long timeout, */ int spi_flash_cmd_wait_ready(struct spi_flash *flash, unsigned long timeout); +/* Erase sectors. */ +int spi_flash_cmd_erase(struct spi_flash *flash, u8 erase_cmd, + u32 erase_size, u32 offset, size_t len); + /* Manufacturer-specific probe functions */ struct spi_flash *spi_flash_probe_spansion(struct spi_slave *spi, u8 *idcode); struct spi_flash *spi_flash_probe_atmel(struct spi_slave *spi, u8 *idcode); |