mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Convert SPI chips to partial write
However, wrap the write functions in a compat layer to allow converting the rest of flashrom later. Tested on Intel NM10 by David Hendricks. Corresponding to flashrom svn r1080. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
@ -43,6 +43,8 @@ int spi_block_erase_60(struct flashchip *flash, unsigned int addr, unsigned int
|
||||
int spi_block_erase_c7(struct flashchip *flash, unsigned int addr, unsigned int blocklen);
|
||||
int spi_chip_write_1(struct flashchip *flash, uint8_t *buf);
|
||||
int spi_chip_write_256(struct flashchip *flash, uint8_t *buf);
|
||||
int spi_chip_write_1_new(struct flashchip *flash, uint8_t *buf, int start, int len);
|
||||
int spi_chip_write_256_new(struct flashchip *flash, uint8_t *buf, int start, int len);
|
||||
int spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int len);
|
||||
uint8_t spi_read_status_register(void);
|
||||
int spi_disable_blockprotect(void);
|
||||
@ -51,7 +53,7 @@ int spi_nbyte_program(int addr, uint8_t *bytes, int len);
|
||||
int spi_nbyte_read(int addr, uint8_t *bytes, int len);
|
||||
int spi_read_chunked(struct flashchip *flash, uint8_t *buf, int start, int len, int chunksize);
|
||||
int spi_write_chunked(struct flashchip *flash, uint8_t *buf, int start, int len, int chunksize);
|
||||
int spi_aai_write(struct flashchip *flash, uint8_t *buf);
|
||||
int spi_aai_write(struct flashchip *flash, uint8_t *buf, int start, int len);
|
||||
|
||||
/* 82802ab.c */
|
||||
uint8_t wait_82802ab(chipaddr bios);
|
||||
|
Reference in New Issue
Block a user