Patch for W25Q64JVSM
diff mbox series

Message ID 12B7D7D4-F3D9-4F14-9632-4F6610A96584@kfu.com
State New
Headers show
Series
  • Patch for W25Q64JVSM
Related show

Commit Message

Nick Sayer via flashrom Aug. 16, 2019, 6:10 p.m. UTC
This is just a copy of the W25Q128 with the sizes all cut in half and a different chip ID.

It works fine for me.

Patch
diff mbox series

--- ./flashchips.c      2018-11-01 09:37:32.000000000 -0700
+++ ../flashrom-v1.1/flashchips.c       2019-08-07 18:48:54.000000000 -0700
@@ -15671,6 +15671,42 @@ 
 
        {
                .vendor         = "Winbond",
+               .name           = "W25Q64.V.M",
+               .bustype        = BUS_SPI,
+               .manufacture_id = WINBOND_NEX_ID,
+               .model_id       = WINBOND_NEX_W25Q64_V_M,
+               .total_size     = 8192,
+               .page_size      = 256,
+               .feature_bits   = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+               .tested         = TEST_OK_PREW,
+               .probe          = probe_spi_rdid,
+               .probe_timing   = TIMING_ZERO,
+               .block_erasers  =
+               {
+                       {
+                               .eraseblocks = { {2 * 1024, 4096} },
+                               .block_erase = spi_block_erase_20,
+                       }, {
+                               .eraseblocks = { {16 * 1024, 512} },
+                               .block_erase = spi_block_erase_52,
+                       }, {
+                               .eraseblocks = { {32 * 1024, 256} },
+                               .block_erase = spi_block_erase_d8,
+                       }, {
+                               .eraseblocks = { {8 * 1024 * 1024, 1} },
+                               .block_erase = spi_block_erase_60,
+                       }, {
+                               .eraseblocks = { {8 * 1024 * 1024, 1} },
+                               .block_erase = spi_block_erase_c7,
+                       }
+               },
+               .unlock         = spi_disable_blockprotect,
+               .write          = spi_chip_write_256,
+               .read           = spi_chip_read,
+               .voltage        = {2700, 3600},
+       },
+       {
+               .vendor         = "Winbond",
                .name           = "W25Q128.V..M",
                .bustype        = BUS_SPI,
                .manufacture_id = WINBOND_NEX_ID,
--- ./flashchips.h      2018-11-01 09:37:32.000000000 -0700
+++ ../flashrom-v1.1/flashchips.h       2019-08-07 18:48:54.000000000 -0700
@@ -931,6 +931,7 @@ 
 #define WINBOND_NEX_W25Q32_W   0x6016  /* W25Q32DW; W25Q32FV in QPI mode */
 #define WINBOND_NEX_W25Q64_W   0x6017  /* W25Q64DW; W25Q64FV in QPI mode */
 #define WINBOND_NEX_W25Q128_W  0x6018  /* W25Q128FW; W25Q128FV in QPI mode */
+#define WINBOND_NEX_W25Q64_V_M 0x7017  /* W25Q64JVSM */
 #define WINBOND_NEX_W25Q128_V_M        0x7018  /* W25Q128JVSM */
 #define WINBOND_NEX_W25Q256JV_M        0x7019  /* W25Q256JV_M (QE=0) */