Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/63907 )
Change subject: flashchips: Add Shenzhen First-Rank T25S32 ......................................................................
flashchips: Add Shenzhen First-Rank T25S32
Change-Id: I20b959275dd9b1151dad400a2c7b88c74310a10c Signed-off-by: Charlie Bruce charliebruce@gmail.com Signed-off-by: Felix Singer felixsinger@posteo.net --- M flashchips.c M flashchips.h 2 files changed, 43 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/07/63907/1
diff --git a/flashchips.c b/flashchips.c index 0a1d21d..fe72a6c 100644 --- a/flashchips.c +++ b/flashchips.c @@ -15923,6 +15923,44 @@ },
{ + .vendor = "Shenzhen FirstRank", + .name = "T25S32", + .bustype = BUS_SPI, + .manufacture_id = SHENZHEN_FIRSTRANK_ID, + .model_id = SHENZHEN_FIRSTRANK_T25S32_SPI, + .total_size = 4096, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN, + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {4 * 1024, 1024} }, /* Sector Erase */ + .block_erase = spi_block_erase_20, + }, { + .eraseblocks = { {32 * 1024, 128} }, /* 32 KB Block Erase */ + .block_erase = spi_block_erase_52, + }, { + .eraseblocks = { {64 * 1024, 64} }, /* 64 KB Block Erase */ + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {4 * 1024 * 1024, 1} }, /* Chip erase - option 1 */ + .block_erase = spi_block_erase_60, + }, { + .eraseblocks = { {4 * 1024 * 1024, 1} }, /* Chip erase - option 2 */ + .block_erase = spi_block_erase_c7, + } + }, + .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {2700, 3600}, + }, + + { .vendor = "Spansion", .name = "S25FL004A", .bustype = BUS_SPI, diff --git a/flashchips.h b/flashchips.h index ba97719..2d8660f 100644 --- a/flashchips.h +++ b/flashchips.h @@ -650,6 +650,11 @@ #define SHARP_LHF00L02 0xC9 /* Same as LHF00L06/LHF00L07 */ #define SHARP_LHF00L04 0xCF /* Same as LHF00L03/LHF00L05 */
+/* Shenzhen First-Rank Technology Co Ltd. */ +#define SHENZHEN_FIRSTRANK_ID 0x5E +#define SHENZHEN_FIRSTRANK_T25S32_SPI 0x4016 /* When in SPI mode */ +#define SHENZHEN_FIRSTRANK_T25S32_QPI 0x6016 /* When in QPI mode */ + /* Spansion was previously a joint venture of AMD and Fujitsu. */ #define SPANSION_ID 0x01 /* Spansion, same ID as AMD */ /* S25 chips are SPI. The first device ID byte is memory type and