mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 07:23:43 +02:00
Add a few FIXME comments to the generic SPI code
Corresponding to flashrom svn r814. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
14e100c933
commit
db53ec5373
2
spi.c
2
spi.c
@ -807,6 +807,7 @@ int spi_write_status_register(int status)
|
|||||||
int result;
|
int result;
|
||||||
struct spi_command cmds[] = {
|
struct spi_command cmds[] = {
|
||||||
{
|
{
|
||||||
|
/* FIXME: WRSR requires either EWSR or WREN depending on chip type. */
|
||||||
.writecnt = JEDEC_EWSR_OUTSIZE,
|
.writecnt = JEDEC_EWSR_OUTSIZE,
|
||||||
.writearr = (const unsigned char[]){ JEDEC_EWSR },
|
.writearr = (const unsigned char[]){ JEDEC_EWSR },
|
||||||
.readcnt = 0,
|
.readcnt = 0,
|
||||||
@ -1059,6 +1060,7 @@ int spi_aai_write(struct flashchip *flash, uint8_t *buf)
|
|||||||
fprintf(stderr, "ERASE FAILED!\n");
|
fprintf(stderr, "ERASE FAILED!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
/* FIXME: This will fail on ICH/VIA SPI. */
|
||||||
result = spi_write_enable();
|
result = spi_write_enable();
|
||||||
if (result)
|
if (result)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user