Add generic SPI flash erase and write support to flashrom. The first
chip the code was tested and verified with is the Macronix MX25L4005, but other chips should work as well. Timeouts are still hardcoded to data sheet maxima, but the status register checking code is already there. Thanks to Harald Gutmann for the initial code on which this is loosely based. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2874 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -210,6 +210,11 @@ extern char *lb_part, *lb_vendor;
|
||||
/* spi.c */
|
||||
int probe_spi(struct flashchip *flash);
|
||||
int it87xx_probe_spi_flash(const char *name);
|
||||
int generic_spi_command(unsigned char writecnt, unsigned char 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_write(struct flashchip *flash, uint8_t *buf);
|
||||
|
||||
/* 82802ab.c */
|
||||
int probe_82802ab(struct flashchip *flash);
|
||||
|
Reference in New Issue
Block a user