summaryrefslogtreecommitdiffstats
path: root/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'spi.c')
-rw-r--r--spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spi.c b/spi.c
index a2b26c5..43dc4bf 100644
--- a/spi.c
+++ b/spi.c
@@ -807,6 +807,7 @@ int spi_write_status_register(int status)
int result;
struct spi_command cmds[] = {
{
+ /* FIXME: WRSR requires either EWSR or WREN depending on chip type. */
.writecnt = JEDEC_EWSR_OUTSIZE,
.writearr = (const unsigned char[]){ JEDEC_EWSR },
.readcnt = 0,
@@ -1059,6 +1060,7 @@ int spi_aai_write(struct flashchip *flash, uint8_t *buf)
fprintf(stderr, "ERASE FAILED!\n");
return -1;
}
+ /* FIXME: This will fail on ICH/VIA SPI. */
result = spi_write_enable();
if (result)
return result;
OpenPOWER on IntegriCloud