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 --- sb600spi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sb600spi.c') diff --git a/sb600spi.c b/sb600spi.c index faafd82..937550d 100644 --- a/sb600spi.c +++ b/sb600spi.c @@ -73,10 +73,7 @@ int sb600_spi_write_1(struct flashchip *flash, uint8_t *buf) printf("Programming flash"); for (i = 0; i < total_size; i++, buf++) { spi_disable_blockprotect(); - result = spi_write_enable(); - if (result) - return result; - spi_byte_program(i, *buf); + result = spi_byte_program(i, *buf); /* wait program complete. */ if (i % 0x8000 == 0) printf("."); -- cgit v1.1