From patchwork Thu Dec 10 01:59:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Zhang X-Patchwork-Id: 554972 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2E236140C1F for ; Thu, 10 Dec 2015 13:04:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=d0KIVmWI; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a6qWe-00045G-F4; Thu, 10 Dec 2015 02:00:08 +0000 Received: from mail-pa0-x243.google.com ([2607:f8b0:400e:c03::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a6qWV-0003iy-6h for linux-mtd@lists.infradead.org; Thu, 10 Dec 2015 02:00:00 +0000 Received: by pacfl14 with SMTP id fl14so3983584pac.1 for ; Wed, 09 Dec 2015 17:59:39 -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:in-reply-to:references; bh=Qwja5RjM2Wee2xsmQT+9FyPQU2t0NJJRAeUvArFv3Hk=; b=d0KIVmWIm4uhNoUSLV8Dq+mUnvFeV2K2hMSjCbFmC+nm+SSsP8RHO+slQxsUag24bi iOZEXPO7uZ2iL1Xf/cVI2qdRN+fBeIkrgFXcK2E0Ksn/FBNoYr8QydZ76Rxzg7IbpxVk tnA8WF8D8mV8p7dy5Cm59rIrvH55qf9yme1n4OB3poZThHA9O2fi0+1AjWOSi0jpS174 T0Ja51Pe2z7UAtHPHTb5A15+H2izf9yi6fjBTnhRsNqgGyZGku0UnRK3RgOCAUF1Okmp VN+MD0guvqoF9PGqPsJQFDZM0iWbPgwCX/cJEz8eII4wl9GLIGAk0KKpjss+lvqrJgV3 cQsQ== X-Received: by 10.67.5.98 with SMTP id cl2mr12759449pad.157.1449712779383; Wed, 09 Dec 2015 17:59:39 -0800 (PST) Received: from ip-172-31-10-211.us-west-1.compute.internal (ec2-54-183-210-74.us-west-1.compute.amazonaws.com. [54.183.210.74]) by smtp.gmail.com with ESMTPSA id tb8sm14615508pab.22.2015.12.09.17.59.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Dec 2015 17:59:38 -0800 (PST) From: Karl Zhang X-Google-Original-From: Karl Zhang To: computersforpeace@gmail.com, dwmw2@infradead.org, linux-mtd@lists.infradead.org Subject: [PATCH 2/2] mtd: spi-nor: add new device MT35X Date: Thu, 10 Dec 2015 01:59:00 +0000 Message-Id: <1449712740-22900-3-git-send-email-karlzhang@micron.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449712740-22900-1-git-send-email-karlzhang@micron.com> References: <1449712740-22900-1-git-send-email-karlzhang@micron.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151209_175959_392314_ECCD7472 X-CRM114-Status: GOOD ( 10.78 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.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 [2607:f8b0:400e:c03:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuangshuo[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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zszubbocsev@micron.com, beanhuo@micron.com, Karl Zhang , peterpandong@micron.com MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Micron has announced a new SPI NOR device MT35X(XTRMFlash). The device can support x1 or x8 bus I/O for high speed. This patch is purpose to add MT35X into the arch, only extended mode (x1) was enabled. Octal mode I/O will be done in the futrue. Signed-off-by: Karl Zhang --- drivers/mtd/devices/m25p80.c | 1 + drivers/mtd/spi-nor/spi-nor.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index c9c3b7f..e57d391 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -259,6 +259,7 @@ static const struct spi_device_id m25p_ids[] = { {"mx25l4005a"}, {"mx25l1606e"}, {"mx25l6405d"}, {"mx25l12805d"}, {"mx25l25635e"},{"mx66l51235l"}, {"n25q064"}, {"n25q128a11"}, {"n25q128a13"}, {"n25q512a"}, + {"mt35x512"}, {"s25fl256s1"}, {"s25fl512s"}, {"s25sl12801"}, {"s25fl008k"}, {"s25fl064k"}, {"sst25vf040b"},{"sst25vf016b"},{"sst25vf032b"},{"sst25wf040"}, diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 3b2460e..34686b5 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -192,6 +192,7 @@ static inline int set_4byte(struct spi_nor *nor, const struct flash_info *info, switch (JEDEC_MFR(info)) { case SNOR_MFR_MICRON: + case SNOR_MFR_MICRON_JEDEC: /* Some Micron need WREN command; all will accept it */ need_wren = true; case SNOR_MFR_MACRONIX: @@ -756,6 +757,7 @@ static const struct flash_info spi_nor_ids[] = { { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) }, { "n25q512ax3", INFO(0x20ba20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) }, { "n25q00", INFO(0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) }, + { "mt35x512", INFO(0x2c5b1a, 0, 128 * 1024, 512, SECT_4K | USE_FSR) }, /* PMC */ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },