diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-11-20 01:12:45 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-11-20 01:12:45 +0000 |
commit | 01d49ed39db2c182c1788d73f4b50e4af3513679 (patch) | |
tree | bf814fbd7d2cccd943299f00e2ef5277b16e36ae /flashchips.c | |
parent | f52920581d07df19e1ef7c00aa7d1a1dc2a83b8f (diff) | |
download | flashrom-01d49ed39db2c182c1788d73f4b50e4af3513679.tar.gz flashrom-01d49ed39db2c182c1788d73f4b50e4af3513679.tar.bz2 flashrom-01d49ed39db2c182c1788d73f4b50e4af3513679.zip |
Add support for generic RDID and REMS matching of unknown chips
If a chip is not on the RDID generic vendor list nor on the REMS
specific ID list, flashrom will claim that no chip is there.
Handle these cases gracefully. flashrom will ignore generic matches if a
specific chip was found, so this will have no impact on supported chips,
but help a lot for a first quick analysis by the user or developer. The
only drawback is that unknown chips may be recognized multiple times
until they are added to flashchips.[ch].
Corresponding to flashrom svn r767.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c index 65eb7f0a..e97786fe 100644 --- a/flashchips.c +++ b/flashchips.c @@ -3340,5 +3340,32 @@ struct flashchip flashchips[] = { .read = NULL, }, + { + .vendor = "Generic", + .name = "unknown SPI chip (RDID)", + .bustype = CHIP_BUSTYPE_SPI, + .manufacture_id = GENERIC_MANUF_ID, + .model_id = GENERIC_DEVICE_ID, + .total_size = 0, + .page_size = 256, + .tested = TEST_BAD_PREW, + .probe = probe_spi_rdid, + .erase = NULL, + .write = NULL, + }, + { + .vendor = "Generic", + .name = "unknown SPI chip (REMS)", + .bustype = CHIP_BUSTYPE_SPI, + .manufacture_id = GENERIC_MANUF_ID, + .model_id = GENERIC_DEVICE_ID, + .total_size = 0, + .page_size = 256, + .tested = TEST_BAD_PREW, + .probe = probe_spi_rems, + .erase = NULL, + .write = NULL, + }, + { NULL } }; |