Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp78320ybm; Wed, 27 May 2020 19:57:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbTfjYCaA4ZkavUBbugrtvy7sgnXyJO7xiyfsuZa8pNFVQ63/ajqMZ4kL767/mypx7hUi0 X-Received: by 2002:a17:906:4353:: with SMTP id z19mr1188737ejm.371.1590634676186; Wed, 27 May 2020 19:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590634676; cv=none; d=google.com; s=arc-20160816; b=cLnWMWdw4BIw62fKsQROKceCSD+9FYyRlL6qUuATaMjdl0etuizIQaovH41QT8aGp4 nwFGQ+l/b48y6MPvFRRU8pKO+yjoOJSHKRpD5lxvohcV6ABa/As+dxUEb28rrOsFRS5l 8ehpWqC/vJYPWmI03AFss2XoY1Pk9kxlKIrBSK/7ex5/0WZdFcp/tcjFKztyu8KuDuis Ew79ZDhHENUzqldxc2S/svZ8XtfKTvCyY3Mb2SRBf79HgoRdcgymVhIM+ocvTA/Skh1E NcISLePVQ4MXtZ8lkXcluD2zytxoz2u47SrkwixhWTOnsxmy5U6L9tctoNbQa1btLZxv c0hQ== 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=8srZ6sLzmKPVB53AsATwanyFaeiKrp0mRn2Fe0iK9nc=; b=iJmTzNxGmYv5kR83yOPVeW/Wh70ynXElgW5oXZtvuWQTVSGfUAwUOh8C7vJBWU8ubA F7QxLCIX7yeRfr28f+FJrgg4Umm2nakwaXUQw+phrjsQ5wTRFVqxwstTTeMWGQsaxpCW CffZnw5JpusRKJHKzUpzr7PrChdN3X2E0lU82+f0KS6X41KT3jCgq4JUvxQbyk1b9Z0C RU8frA2bGmOMJinHoNOswhnDxvX4tqZwlkPNcHvBi1sOWses/TvQH6JNinpbbasf1R/e zMjPf65bLWcDz1oik/gP9yId0ETMcWA8RwYbrj6D97HQ+i3hshd2dZ0QqSfczdW7D52t /Uwg== 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 r1si3132332ejs.406.2020.05.27.19.57.33; Wed, 27 May 2020 19:57:56 -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 S1726787AbgE1Czx (ORCPT + 99 others); Wed, 27 May 2020 22:55:53 -0400 Received: from smtpbgsg2.qq.com ([54.254.200.128]:42501 "EHLO smtpbgsg2.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbgE1Czw (ORCPT ); Wed, 27 May 2020 22:55:52 -0400 X-QQ-mid: bizesmtp17t1590634531t4kkroiy Received: from localhost.localdomain (unknown [119.145.4.99]) by esmtp6.qq.com (ESMTP) with id ; Thu, 28 May 2020 10:55:05 +0800 (CST) X-QQ-SSF: 01400000008000Z0ZM30B00A0000000 X-QQ-FEAT: uJKlVohL8WrUmw5d04dFFrqzkgAeOWXIToTH7WzM6KcwWQSN0b8y8Nxejvw4W dkt5TuBcZ6dSar9Sn5vl7VTFkOol1StpX7ZF/mnKXyE8OYCcuO8FNNDKwXpab5SbP9gEURx YTgfzdqC8MA4dIM1uYrYzVoVIZQW4Lz33KCTt436b837Ezg9bUPLg9kAoXieHoIo7zOW4ce tqnKj9cCJL/ozufCUTaYtR0waY9RnlQI+B5gtPQOKvy4Me8jOXS1iiIe+w1yvZMVpraJ3k5 XZlUnjviXASmwOoB8zwodEFsH5T/LfIDH43iGpGUjkCOTk27zDOZhxwV8bNi5DyPiqm5OIT nVr1LHYvFEvPCT9wPs= X-QQ-GoodBg: 2 From: wuxy@bitland.com.cn To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, drinkcat@chromium.org, linux-mtd@lists.infradead.org, stlin2@winbond.com Cc: wuxy Subject: [PATCH] [v3]mtd: spi-nor: winbond: add 1.8v SPI NOR Flash IDs Date: Thu, 28 May 2020 10:55:03 +0800 Message-Id: <20200528025503.24003-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 IDs in kukui series,this patch can support the new flash IDs. TEST=boot to shell,get the spi information from 'dmesg'. Signed-off-by: Xingyu Wu Signed-off-by: ST Lin This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, The original patch is invalid,so re-submit a new patch for this. --- 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