summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-12-17 14:33:32 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-12-17 14:33:32 +0000
commit21c7890701dd30977e46091bc101678bc729a746 (patch)
tree6895418c105a8159edb5b35440b77ad76aeed9bd /flash.h
parentf5df46f6c697b7b79faec25c5b2919b328f67fc0 (diff)
downloadflashrom-21c7890701dd30977e46091bc101678bc729a746.tar.gz
flashrom-21c7890701dd30977e46091bc101678bc729a746.tar.bz2
flashrom-21c7890701dd30977e46091bc101678bc729a746.zip
Rename SPI erase functions to include opcode
To make it easier to add new SPI chips to flashchips.c, rename functions with multiple possible opcodes from linear numbering at the end (_1, _2) to include the opcode at the end (_60, _c7). That way, you only have to take a short look at the data sheet and choose the right function by appending the opcode listed in the data sheet. No functional changes. Corresponding to flashrom svn r165 and coreboot v2 svn r3009. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ward Vandewege <ward@gnu.org>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index 09e239ea0..e03638727 100644
--- a/flash.h
+++ b/flash.h
@@ -257,7 +257,7 @@ int it87xx_probe_spi_flash(const char *name);
int generic_spi_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr);
void generic_spi_write_enable();
void generic_spi_write_disable();
-int generic_spi_chip_erase(struct flashchip *flash);
+int generic_spi_chip_erase_c7(struct flashchip *flash);
int generic_spi_chip_write(struct flashchip *flash, uint8_t *buf);
/* 82802ab.c */