1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 14:11:15 +02:00

Update spi_get_erasefn_from_opcode()

We forgot to add a few SPI erase functions to the helper function that is
used for SFDP. Also, sort the declarations in the header.

Corresponding to flashrom svn r1672.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner
2013-05-01 14:04:19 +00:00
parent f44516121a
commit 730e7e74eb
2 changed files with 9 additions and 3 deletions

View File

@ -729,10 +729,16 @@ erasefunc_t *spi_get_erasefn_from_opcode(uint8_t opcode)
return NULL;
case 0x20:
return &spi_block_erase_20;
case 0x50:
return &spi_block_erase_50;
case 0x52:
return &spi_block_erase_52;
case 0x60:
return &spi_block_erase_60;
case 0x62:
return &spi_block_erase_62;
case 0x81:
return &spi_block_erase_81;
case 0xc7:
return &spi_block_erase_c7;
case 0xd7: