diff options
author | Konstantin Grudnev <grudnevkv@gmail.com> | 2019-07-23 00:48:54 +0300 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-10-04 17:41:01 +0000 |
commit | 3d8868c2b46548be6885198987492d91933c9ff7 (patch) | |
tree | 2277db98f8b19982802f812b2a984a2591009e37 /flashchips.c | |
parent | 4a84ec273a487c27f91bd3df70cbdf8894af70e1 (diff) | |
download | flashrom-3d8868c2b46548be6885198987492d91933c9ff7.tar.gz flashrom-3d8868c2b46548be6885198987492d91933c9ff7.tar.bz2 flashrom-3d8868c2b46548be6885198987492d91933c9ff7.zip |
Add support for M95M02-A125
Automotive 2 Mbit (256KiB) serial SPI bus EEPROM
PREW tested successfully with use of ch341a programmer
on Linux host 5.2.0-1-MANJARO x86_64
Signed-off-by: Konstantin Grudnev <grudnevkv@gmail.com>
Change-Id: Ic29cd9051c7eac4822d620c299834134f987f01b
Reviewed-on: https://review.coreboot.org/c/flashrom/+/34496
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
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 763594284..65110fef4 100644 --- a/flashchips.c +++ b/flashchips.c @@ -14240,6 +14240,33 @@ const struct flashchip flashchips[] = { }, { + .vendor = "ST", + .name = "M95M02", + .bustype = BUS_SPI, + .manufacture_id = ST_ID, + .model_id = ST_M95M02, + .total_size = 256, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, + .tested = TEST_OK_PREW, + .probe = probe_spi_st95, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {256 * 1024, 1} }, + .block_erase = spi_block_erase_emulation, + } + }, + + .printlock = spi_prettyprint_status_register_bp1_srwd, + .unlock = spi_disable_blockprotect_bp1_srwd, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {2500, 5500}, + }, + + { .vendor = "Sanyo", .name = "LE25FU106B", .bustype = BUS_SPI, |