From patchwork Tue Sep 4 15:33:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 965979 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=198.137.202.133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="syKx0s3f"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="PU68ggkX"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 424WBw1fPcz9s3C for ; Wed, 5 Sep 2018 01:36:08 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=yb7OcjL2CY/oESqHmkNj79+XWFxmLdcdoFniD8paSds=; b=syKx0s3fbE+YDFiENnR6KvMLNP bSajH9wZHFw9Gm7dMY5tWe8fTFK/5XO7PIedTwAU3OqG0MGFG+6d2hw8gCKRmbI14KoNQODWVYAMh SFOyodnO7Hdh/zbHWeGLVQahSf+yHbLFRjt8wzXiC8hKJZ56TnWJA7NHibBzqk+QLYzhIIvG3QeIs vf5PD2jstlfkGhgZGyyipR9oa8IXt0CyLkgheUDR6b0Z9gPMwikGLCARhEJx2/Ig8gCmVhU0FfqB0 pkX7C94UgdZM0ejUEpbHqvRxoEGx5eJAHeXT2GJt8tTUaDji+6B6ZRPKakMducgkS5BhW5n6kYFdL gOTTT4Sg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxDN5-0004Q0-TW; Tue, 04 Sep 2018 15:36:03 +0000 Received: from smtprelay2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxDLM-0002D4-NH; Tue, 04 Sep 2018 15:34:18 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 947D410C16F4; Tue, 4 Sep 2018 08:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1536075246; bh=KBZoYz1nqJFhpFbwDAGhiJ0e5SnVmTKMzmwXLLnWOJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PU68ggkXIULs92FSGQQj9oD/x+meNktMcue87MsQz7og0TDXc3Mc8u18njUPflmuJ XowkeZmClJiddXwawkpFv0tWBE505RtB4v/Pw4Qma2EMuKf40hARferi3OouhQIhbw xRAL1e1nR3rVYGdYU4Ub/0PcImuWGSEN+kwCtdVZT1NKp19HYPTie79h09rZV+r0EH azgvzw5HUpUIgvXxggzSQnuVxY5A2xz1pxiD+iRNHe+1032waoWTr29ohTFxCsTaiz CujCm/oNe5dK/n4LYW3we5V1zH33jKDjDJjykgZ3Dulw8KHe2MOh1ZZxd84tPEETqA bqOkdTLxLVddQ== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.36]) by mailhost.synopsys.com (Postfix) with ESMTP id 8D14E3D41; Tue, 4 Sep 2018 08:34:02 -0700 (PDT) From: Eugeniy Paltsev To: linux-mtd@lists.infradead.org Subject: [PATCH 2/2] mtd: spi-nor: add support for sst26wf016, sst26wf032 Date: Tue, 4 Sep 2018 18:33:42 +0300 Message-Id: <20180904153342.16742-3-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180904153342.16742-1-Eugeniy.Paltsev@synopsys.com> References: <20180904153342.16742-1-Eugeniy.Paltsev@synopsys.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180904_083416_820583_6026BE0B X-CRM114-Status: GOOD ( 12.22 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Brian Norris , Boris Brezillon , Richard Weinberger , Vineet Gupta , Alexey Brodkin , linux-kernel@vger.kernel.org, Eugeniy Paltsev , Marek Vasut , linux-snps-arc@lists.infradead.org, David Woodhouse MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This commit adds support for the SST sst26wf016 and sst26wf032 flash IC. NOTE: this patch is basically following mine u-boot commit port: http://git.denx.de/?p=u-boot.git;a=commitdiff;h=a19e97157c3721ef9c4b15c68c1773467a3b4a98 Signed-off-by: Eugeniy Paltsev --- drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 6f74c75c9ddc..e1562363862a 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1333,6 +1333,8 @@ static const struct flash_info spi_nor_ids[] = { { "sst25wf040b", INFO(0x621613, 0, 64 * 1024, 8, SECT_4K) }, { "sst25wf040", INFO(0xbf2504, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) }, { "sst25wf080", INFO(0xbf2505, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) }, + { "sst26wf016", INFO(0xbf2651, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, + { "sst26wf032", INFO(0xbf2622, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "sst26vf064b", INFO(0xbf2643, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, /* ST Microelectronics -- newer production may have feature updates */