From patchwork Fri Aug 16 18:10:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "g.dudzik--- via flashrom" X-Patchwork-Id: 1148392 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (helo) smtp.helo=coreboot.org (client-ip=78.46.105.101; helo=coreboot.org; envelope-from=flashrom-bounces@flashrom.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=flashrom.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kfu.com header.i=@kfu.com header.b="YwFfseSf"; dkim-atps=neutral Received: from coreboot.org (coreboot.org [78.46.105.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 469BFQ0Wrjz9sND for ; Sat, 17 Aug 2019 04:10:33 +1000 (AEST) Received: from [192.168.203.99] (mailu_mailman-core_1.mailu_default [192.168.203.99]) by coreboot.org (Postfix) with ESMTP id 5985A12A1D98; Fri, 16 Aug 2019 18:10:28 +0000 (UTC) Received: from quack.kfu.com (quack.kfu.com [204.109.60.138]) by coreboot.org (Postfix) with ESMTP id 47E0712A1D6B for ; Fri, 16 Aug 2019 18:10:20 +0000 (UTC) Received: from nsayer1-osx.silverspringnet.com (edge-gw-rwc.silverspringnet.com [74.121.22.10]) (authenticated bits=0) by quack.kfu.com (8.15.2/8.15.2) with ESMTPSA id x7GIAFWY004310 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 16 Aug 2019 11:10:18 -0700 (PDT) (envelope-from nsayer@kfu.com) DKIM-Filter: OpenDKIM Filter v2.10.3 quack.kfu.com x7GIAFWY004310 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kfu.com; s=KFU; t=1565979018; bh=nUuhDHuETO+h5O94HH1pXmt/GBId/griMHxlndCrtjM=; h=From:Subject:Date:To; b=YwFfseSfU8tv7T9GVW9PaeYrRnsVIdmXf4uiPdNOMM+nig7Aa68wyvQ2Dwftmi89e GOMPhn4SWFjGGUy37BZLX95BQ51GCBMRey+Tc7U5sdKbINBgTUj3iDAx5QI3lXY9LF yLQK/99gX+2coPhliDMscD7oHXxixBhp4vfsjfLU= X-Authentication-Warning: quack.kfu.com: Host edge-gw-rwc.silverspringnet.com [74.121.22.10] claimed to be nsayer1-osx.silverspringnet.com Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <12B7D7D4-F3D9-4F14-9632-4F6610A96584@kfu.com> Date: Fri, 16 Aug 2019 11:10:09 -0700 To: flashrom X-Mailer: Apple Mail (2.3445.104.11) Message-ID-Hash: JNZTNJKVYZOFIBS44I4RK26OQWWRLA4R X-Message-ID-Hash: JNZTNJKVYZOFIBS44I4RK26OQWWRLA4R X-MailFrom: nsayer@kfu.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-flashrom.flashrom.org-0; header-match-flashrom.flashrom.org-1; header-match-flashrom.flashrom.org-2; header-match-flashrom.flashrom.org-3; header-match-flashrom.flashrom.org-4; header-match-flashrom.flashrom.org-5; header-match-flashrom.flashrom.org-6; header-match-flashrom.flashrom.org-7; header-match-flashrom.flashrom.org-8; header-match-flashrom.flashrom.org-9; header-match-flashrom.flashrom.org-10; header-match-flashrom.flashrom.org-11; header-match-flashrom.flashrom.org-12; header-match-flashrom.flashrom.org-13; header-match-flashrom.flashrom.org-14; header-match-flashrom.flashrom.org-15; header-match-flashrom.flashrom.org-16; header-match-flashrom.flashrom.org-17; header-match-flashrom.flashrom.org-18; header-match-flashrom.flashrom.org-19; header-match-flashrom.flashrom.org-20; header-match-flashrom.flashrom.org-21; header-match-flashrom.flashrom.org- 22; header-match-flashrom.flashrom.org-23; header-match-flashrom.flashrom.org-24; header-match-flashrom.flashrom.org-25; header-match-flashrom.flashrom.org-26; header-match-flashrom.flashrom.org-27; header-match-flashrom.flashrom.org-28; header-match-flashrom.flashrom.org-29; header-match-flashrom.flashrom.org-30; header-match-flashrom.flashrom.org-31; header-match-flashrom.flashrom.org-32; header-match-flashrom.flashrom.org-33; header-match-flashrom.flashrom.org-34; header-match-flashrom.flashrom.org-35; header-match-flashrom.flashrom.org-36; header-match-flashrom.flashrom.org-37; header-match-flashrom.flashrom.org-38; header-match-flashrom.flashrom.org-39; header-match-flashrom.flashrom.org-40; header-match-flashrom.flashrom.org-41; header-match-flashrom.flashrom.org-42; header-match-flashrom.flashrom.org-43; header-match-flashrom.flashrom.org-44; header-match-flashrom.flashrom.org-45; header-match-flashrom.flashrom.org-46; header-match-flashrom.flashrom.org-47; header-match-flash rom.flashrom.org-48; header-match-flashrom.flashrom.org-49; header-match-flashrom.flashrom.org-50; header-match-flashrom.flashrom.org-51; header-match-flashrom.flashrom.org-52; header-match-flashrom.flashrom.org-53; header-match-flashrom.flashrom.org-54; header-match-flashrom.flashrom.org-55; header-match-flashrom.flashrom.org-56; header-match-flashrom.flashrom.org-57; header-match-flashrom.flashrom.org-58; header-match-flashrom.flashrom.org-59; header-match-flashrom.flashrom.org-60; header-match-flashrom.flashrom.org-61; header-match-flashrom.flashrom.org-62; header-match-flashrom.flashrom.org-63; header-match-flashrom.flashrom.org-64; header-match-flashrom.flashrom.org-65; header-match-flashrom.flashrom.org-66; header-match-flashrom.flashrom.org-67; header-match-flashrom.flashrom.org-68; header-match-flashrom.flashrom.org-69; header-match-flashrom.flashrom.org-70; header-match-flashrom.flashrom.org-71; header-match-flashrom.flashrom.org-72; header-match-flashrom.flashrom.org-73; n onmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list Subject: [flashrom] Patch for W25Q64JVSM List-Id: flashrom discussion and development mailing list Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-Patchwork-Original-From: Nick Sayer via flashrom From: "g.dudzik--- via flashrom" Reply-To: Nick Sayer X-Spamd-Bar: +++ X-Spam-Level: *** Authentication-Results: coreboot.org 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. --- ./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) */