To make it easier to add new SPI chips to flashchips.c, rename functions
with multiple possible opcodes from linear numbering at the end (_1, _2) to include the opcode at the end (_60, _c7). That way, you only have to take a short look at the data sheet and choose the right function by appending the opcode listed in the data sheet. No functional changes. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ward Vandewege <ward@gnu.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3009 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -47,7 +47,7 @@ struct flashchip flashchips[] = {
|
||||
{"MX29F002", MX_ID, MX_29F002, 256, 64 * 1024,
|
||||
probe_29f002, erase_29f002, write_29f002},
|
||||
{"MX25L4005", MX_ID, MX_25L4005, 512, 4 * 1024,
|
||||
probe_spi, generic_spi_chip_erase, generic_spi_chip_write},
|
||||
probe_spi, generic_spi_chip_erase_c7, generic_spi_chip_write},
|
||||
{"SST29EE020A", SST_ID, SST_29EE020A, 256, 128,
|
||||
probe_jedec, erase_chip_jedec, write_jedec},
|
||||
{"SST28SF040A", SST_ID, SST_28SF040, 512, 256,
|
||||
@@ -141,7 +141,7 @@ struct flashchip flashchips[] = {
|
||||
{"M29F040B", ST_ID, ST_M29F040B, 512, 64 * 1024,
|
||||
probe_29f040b, erase_29f040b, write_29f040b},
|
||||
{"M25P80", ST_ID, ST_M25P80, 1024, 64 * 1024,
|
||||
probe_spi, generic_spi_chip_erase, generic_spi_chip_write},
|
||||
probe_spi, generic_spi_chip_erase_c7, generic_spi_chip_write},
|
||||
{"82802ab", 137, 173, 512, 64 * 1024,
|
||||
probe_82802ab, erase_82802ab, write_82802ab},
|
||||
{"82802ac", 137, 172, 1024, 64 * 1024,
|
||||
|
Reference in New Issue
Block a user