Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1473297ybz; Sat, 25 Apr 2020 20:28:12 -0700 (PDT) X-Google-Smtp-Source: APiQypILdRRDa4aYn7A3/st2Wb20YcQy72+w5GDgc2d6ONgySFVmjcIz6Qj0aZFae0AI+23CKACU X-Received: by 2002:a05:6402:1713:: with SMTP id y19mr14221290edu.40.1587871692824; Sat, 25 Apr 2020 20:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587871692; cv=none; d=google.com; s=arc-20160816; b=CdXxcNKajp+SDJpczpb7zuf9PrMdgpS3s2du75Sqle5ZGhugV+Qxe2lPopLKEFoQs5 F4OdXno+Ilmw3YLjAqSrF4xEwkwQm/JaJYpevsTf1roF8jyPWeCzChqtTjpwTIL75PKd U0f5WWYUImqjLa7zLdq2qR31Yct/UqHGMZrpdX1CHKq56SZ65EsnDaGjhpFCsgocJEFG YYkgkyi+xB8CXZBT/qa9WGm7iqkn6Y2arc28nrkwH9VJctMpAMTD7ZSXu6JpsqovFFyf gkoByKU44Lew8ygbzXvHRmtv76cMtCLbJiLt0CVIi2IulzTmCjG8MoPalk0i3URDtu8l KRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=U10FFgqhHFbMHzyNHNq8lBYZQUHoQVHwwQyjpQ713zM=; b=Gx3XVsmitCjQtr+AQPtOPvmByGtBDFbiQwcxwYHoKc11RQ4AEwbjcvNMnJfFvwW7aB rjmZYaMzG99hbcTdcCW7MXL3/2nxhgWK0ezRh40BHYuvS7phWkZyY7kVXVk3Y1jaANSG /tAryk82Sf7nXAz+zzcwVepJ3yJxjjyheeXzZpOuja9lIZkrwwb4g6kL+fsosxmV75V3 MRNLKw+jS3xcLEcRU/UvNhVxODG8/r51Sn1/meaWqmsVBZl6O415jEDqIGxGfFE6bDMa NlxwP1En9DQlqAmPEmJZGPY1NMjZpNZkmgJ5pI9PKjl93sPfAuewNJImjjujRwY6vDGk xFbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bitland.com.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si5652438edp.599.2020.04.25.20.27.33; Sat, 25 Apr 2020 20:28:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bitland.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726112AbgDZDYl (ORCPT + 99 others); Sat, 25 Apr 2020 23:24:41 -0400 Received: from smtpbguseast2.qq.com ([54.204.34.130]:44348 "EHLO smtpbguseast2.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbgDZDYl (ORCPT ); Sat, 25 Apr 2020 23:24:41 -0400 X-QQ-mid: bizesmtp11t1587871473t879fh72 Received: from wuxy.bitland.com.cn (unknown [103.100.115.75]) by esmtp6.qq.com (ESMTP) with id ; Sun, 26 Apr 2020 11:24:12 +0800 (CST) X-QQ-SSF: 01400000002000Z0ZM30B00A0000000 X-QQ-FEAT: STDtK/lFkpah7mmZ8kZTATOOmbwdzlpfhSmcEuCzt/BbX3eeyOMrgDyxhhU7n gWY2i5mzls1hckLHM71jlLv6CniFhddgwh5D6xVYoJlBcJeKzWa58GhiqC7XIBf/LJtxBl1 yv61qHVM21FUNeWQHRxY8/TTz/brNpDbHV7GtxKNItzof5I7iJM0b1hMhPs2AV6FGHQrphK cjFWcT5qBJFxgk3fXoM1Dei35q4SZ9vPPUFxhwOhxhC7eftus2RGkFBKYV84WbMtm5SXasg dI1StDpyD2d268ONRPo8FJbbyZiPIXz20FR/x5q2veZlSLhghjYHKjsILDjTfj/kXQYtv4T IUQyy0q X-QQ-GoodBg: 2 From: wuxy@bitland.com.cn To: drinkcat@chromium.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: wuxy Subject: [PATCH] [v3]mtd: spi-nor: winbond: add 1.8v SPI NOR Flash IDs Date: Sun, 26 Apr 2020 11:24:10 +0800 Message-Id: <20200426032410.10425-1-wuxy@bitland.com.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:bitland.com.cn:qybgforeign:qybgforeign7 X-QQ-Bgrelay: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: wuxy Winbond has new 1.8V SPI NOR Flash IDs,we need to use the SPI flash ID in kukui series,this patch can support the new flash IDs. This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, The original patch is invalid,so re-submit a new patch for this. TEST=boot to shell,get the spi information from 'dmesg'. Signed-off-by: Xingyu Wu --- drivers/mtd/spi-nor/winbond.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 17deabad57e1..cda4f8847bd6 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -61,6 +61,15 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q64jwxxIM", INFO(0xef8017, 0, 64 * 1024, 128, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, + { "w25q128jwxxIM", INFO(0xef8018, 0, 64 * 1024, 256, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, + { "w25q256jwxxIM", INFO(0xef8019, 0, 64 * 1024, 512, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, }; /** -- 2.20.1