mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-16 03:44:41 +02:00
Factor out SPI write/read chunking wrappers
Corresponding to flashrom svn r1298. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
@@ -326,13 +326,3 @@ int buspirate_spi_send_command(unsigned int writecnt, unsigned int readcnt,
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int buspirate_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len)
|
||||
{
|
||||
return spi_read_chunked(flash, buf, start, len, 12);
|
||||
}
|
||||
|
||||
int buspirate_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len)
|
||||
{
|
||||
return spi_write_chunked(flash, buf, start, len, 12);
|
||||
}
|
||||
|
Reference in New Issue
Block a user