From ae4294fa000be2484e74f4d863348890bc1d1736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Sat, 14 Apr 2012 21:04:03 +0000 Subject: Add support for the Numonyx N25Q064 chip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All operations were successfully tested. http://www.flashrom.org/pipermail/flashrom/2012-April/009048.html Corresponding to flashrom svn r1518. Signed-off-by: Niklas Söderlund Acked-by: Idwer Vollering Acked-by: Uwe Hermann --- flashchips.c | 29 +++++++++++++++++++++++++++++ flashchips.h | 1 + 2 files changed, 30 insertions(+) diff --git a/flashchips.c b/flashchips.c index b6296c586..114bcf21f 100644 --- a/flashchips.c +++ b/flashchips.c @@ -5009,6 +5009,35 @@ const struct flashchip flashchips[] = { .voltage = {2700, 3600}, }, + { + .vendor = "Numonyx", + .name = "N25Q064", + .bustype = BUS_SPI, + .manufacture_id = ST_ID, + .model_id = ST_N25Q064, + .total_size = 8192, + .page_size = 256, + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {4 * 1024, 2048 } }, + .block_erase = spi_block_erase_20, + }, { + .eraseblocks = { {64 * 1024, 128} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {8 * 1024 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + }, + { .vendor = "PMC", .name = "Pm25LV010", diff --git a/flashchips.h b/flashchips.h index de3c79dd7..89d20bb34 100644 --- a/flashchips.h +++ b/flashchips.h @@ -574,6 +574,7 @@ #define ST_M29W010B 0x23 #define ST_M29W040B 0xE3 #define ST_M29W512B 0x27 +#define ST_N25Q064 0xBA17 #define SYNCMOS_MVC_ID 0x40 /* SyncMOS (SM) and Mosel Vitelic Corporation (MVC) */ #define MVC_V29C51000T 0x00 -- cgit v1.2.3