From 627975196d0630a137548df631756e656a8139af Mon Sep 17 00:00:00 2001 From: Michael Karcher Date: Wed, 11 May 2011 17:07:02 +0000 Subject: Factor out SPI write/read chunking wrappers Corresponding to flashrom svn r1298. Signed-off-by: Michael Karcher Acked-by: Carl-Daniel Hailfinger --- sb600spi.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sb600spi.c') diff --git a/sb600spi.c b/sb600spi.c index 845cf58..269af8a 100644 --- a/sb600spi.c +++ b/sb600spi.c @@ -43,17 +43,6 @@ static uint8_t *sb600_spibar = NULL; -int sb600_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len) -{ - /* Maximum read length is 8 bytes. */ - return spi_read_chunked(flash, buf, start, len, 8); -} - -int sb600_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len) -{ - return spi_write_chunked(flash, buf, start, len, 5); -} - static void reset_internal_fifo_pointer(void) { mmio_writeb(mmio_readb(sb600_spibar + 2) | 0x10, sb600_spibar + 2); -- cgit v1.1