From 2f1b36fb35873c599442e1828756c1993524cd5e Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sun, 12 Jul 2009 12:06:18 +0000 Subject: Convert SPI byte program to use the multicommand infrastructure Tested-by: Jakob Bornecrantz Corresponding to flashrom svn r651. Signed-off-by: Carl-Daniel Hailfinger Tested it on Epia-m700 worked okay. Acked-by: Jakob Bornecrantz --- wbsio_spi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'wbsio_spi.c') diff --git a/wbsio_spi.c b/wbsio_spi.c index cbdddd2e..7876198f 100644 --- a/wbsio_spi.c +++ b/wbsio_spi.c @@ -200,11 +200,8 @@ int wbsio_spi_write_1(struct flashchip *flash, uint8_t *buf) fprintf(stderr, "ERASE FAILED!\n"); return -1; } - result = spi_write_enable(); - if (result) - return result; for (pos = 0; pos < size; pos++) { - spi_byte_program(pos, buf[pos]); + result = spi_byte_program(pos, buf[pos]); while (spi_read_status_register() & JEDEC_RDSR_BIT_WIP) programmer_delay(10); } -- cgit v1.2.3