summaryrefslogtreecommitdiff
path: root/spi25.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-05-01 14:04:19 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-05-01 14:04:19 +0000
commitd787bf85ad2e3bab8441dd25653fb104a1092f57 (patch)
treef9bc3f738776ff40df3d128e7dbc145ac580cb0c /spi25.c
parent053910beba62b545feca328f1c4efc7af449dc5b (diff)
downloadflashrom-d787bf85ad2e3bab8441dd25653fb104a1092f57.tar.gz
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. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1672 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi25.c')
-rw-r--r--spi25.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/spi25.c b/spi25.c
index a818630..4f1452e 100644
--- a/spi25.c
+++ b/spi25.c
@@ -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: