1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 07:53:44 +02:00

Add Generic SPI RDID detection for Sanyo chips

Corresponding to flashrom svn r774.

Signed-off-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
Sean Nelson 2009-11-24 02:08:11 +00:00 committed by Carl-Daniel Hailfinger
parent b2ecf6c9eb
commit 118e1d6d04
2 changed files with 24 additions and 0 deletions

View File

@ -3340,6 +3340,22 @@ struct flashchip flashchips[] = {
.read = NULL, .read = NULL,
}, },
{
.vendor = "Sanyo",
.name = "unknown Sanyo SPI chip",
.bustype = CHIP_BUSTYPE_SPI,
.manufacture_id = SANYO_ID,
.model_id = GENERIC_DEVICE_ID,
.total_size = 0,
.page_size = 256,
.tested = TEST_BAD_PREW,
.probe = probe_spi_rdid,
.probe_timing = TIMING_ZERO,
.erase = NULL,
.write = NULL,
.read = NULL,
},
{ {
.vendor = "Generic", .vendor = "Generic",
.name = "unknown SPI chip (RDID)", .name = "unknown SPI chip (RDID)",

View File

@ -326,6 +326,14 @@
#define PMC_49FL002 0x6D #define PMC_49FL002 0x6D
#define PMC_49FL004 0x6E #define PMC_49FL004 0x6E
/*
* The Sanyo chip found so far uses SPI, first byte is manufacture code,
* second byte is the device code,
* third byte is a dummy byte.
*/
#define SANYO_ID 0x62
#define SANYO_LE25FW203A 0x1600
#define SHARP_ID 0xB0 /* Sharp */ #define SHARP_ID 0xB0 /* Sharp */
#define SHARP_LH28F008BJxxPT 0xEC #define SHARP_LH28F008BJxxPT 0xEC
#define SHARP_LH28F008BJxxPB 0xED #define SHARP_LH28F008BJxxPB 0xED