From patchwork Thu Nov 22 06:58:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: walimis X-Patchwork-Id: 201022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8B0732C0086 for ; Thu, 22 Nov 2012 17:59:33 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbQkH-0006KX-3Z; Thu, 22 Nov 2012 06:58:45 +0000 Received: from mail-da0-f49.google.com ([209.85.210.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TbQkD-0006JY-HM for linux-mtd@lists.infradead.org; Thu, 22 Nov 2012 06:58:42 +0000 Received: by mail-da0-f49.google.com with SMTP id v40so2306725dad.36 for ; Wed, 21 Nov 2012 22:58:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=CMlANb3HMMcwxqGBjNAJxVJ989rfeOnO/XbcOsTDEjY=; b=LUawKYqwWs9Ul+c1C69XczXqBN3S+MHhA2zcEO0O8bRCgPzag7sFTbmOA6VhGUC2D+ zil66wWn1+Atc80s3t+goGPiHoTj6HviMfzkHnU7qOcHcXztx8zeF4sPL79O4fb/YrHL m9A9lHS7s2i/poZtSb6R7H/vY5dhm02wFeooX/6uO1TsW4HmtrejN6zUU+7WdjyvCS/T MqMb680SHapFLLeXkebNcSCrsP2nTCRVu/+dURGy5w1So44X2EhTw+1RrxW8o8vlfQLZ PZJmcTCcA+R3COmJE6jrVtGs8cVOzhBVkGb9ZEk5Fr8zUtefzMUQH+YWAhwYrhGddDQ3 Wc6Q== Received: by 10.68.252.40 with SMTP id zp8mr2087436pbc.66.1353567520082; Wed, 21 Nov 2012 22:58:40 -0800 (PST) Received: from localhost ([61.148.56.138]) by mx.google.com with ESMTPS id tm8sm1569663pbc.48.2012.11.21.22.58.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 22:58:38 -0800 (PST) From: Liming Wang To: Artem Bityutskiy Subject: [resend] [PATCH] mtd: m25p80: modify info for Micron N25Q128 Date: Thu, 22 Nov 2012 14:58:09 +0800 Message-Id: <1353567489-29220-1-git-send-email-walimisdev@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121122_015841_778058_C4731C5C X-CRM114-Status: GOOD ( 12.09 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (walimisdev[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: linux-mtd@lists.infradead.org, Jan Luebbe X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Micron N25Q128 has two types of flash: - One is for 1.8v supply voltage, prefixed with "n25q128a11" and the jedec code is 0x20bb18. - Another is for 3v supply voltage, prefixed with "n25q128a13" and the jedec code is 0x20ba18. So modify the original type info and add another type for Micron N25Q128. Signed-off-by: Liming Wang --- drivers/mtd/devices/m25p80.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 03838ba..9945a2a 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -664,7 +664,8 @@ static const struct spi_device_id m25p_ids[] = { { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) }, /* Micron */ - { "n25q128", INFO(0x20ba18, 0, 64 * 1024, 256, 0) }, + { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, 0) }, + { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, 0) }, { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K) }, /* Spansion -- single (large) sector size only, at least