diff options
author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2011-05-11 17:07:02 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2011-05-11 17:07:02 +0000 |
commit | 627975196d0630a137548df631756e656a8139af (patch) | |
tree | 9a01302678ba2ba642040e928b89c8877c080412 /bitbang_spi.c | |
parent | b713d2e35c5336da81f5fbc83393961d1d8aa7bd (diff) | |
download | flashrom-627975196d0630a137548df631756e656a8139af.tar.gz flashrom-627975196d0630a137548df631756e656a8139af.tar.bz2 flashrom-627975196d0630a137548df631756e656a8139af.zip |
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>
Diffstat (limited to 'bitbang_spi.c')
-rw-r--r-- | bitbang_spi.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bitbang_spi.c b/bitbang_spi.c index fb404acc2..d63c76982 100644 --- a/bitbang_spi.c +++ b/bitbang_spi.c @@ -151,14 +151,3 @@ int bitbang_spi_send_command(unsigned int writecnt, unsigned int readcnt, return 0; } - -int bitbang_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len) -{ - /* Maximum read length is unlimited, use 64k bytes. */ - return spi_read_chunked(flash, buf, start, len, 64 * 1024); -} - -int bitbang_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len) -{ - return spi_write_chunked(flash, buf, start, len, 256); -} |