Commit 118e1d6d authored by Sean Nelson's avatar Sean Nelson Committed by Carl-Daniel Hailfinger
Browse files

Add Generic SPI RDID detection for Sanyo chips


Corresponding to flashrom svn r774.
Signed-off-by: default avatarSean Nelson <audiohacked@gmail.com>
Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
parent b2ecf6c9
......@@ -3340,6 +3340,22 @@ struct flashchip flashchips[] = {
.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",
.name = "unknown SPI chip (RDID)",
......
......@@ -326,6 +326,14 @@
#define PMC_49FL002 0x6D
#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_LH28F008BJxxPT 0xEC
#define SHARP_LH28F008BJxxPB 0xED
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment