From patchwork Tue Sep 3 23:25:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Fl=C3=A1vio_Silveira?= X-Patchwork-Id: 272438 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8323E2C00A9 for ; Wed, 4 Sep 2013 09:26:56 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VGzzj-0001Lq-GR; Tue, 03 Sep 2013 23:26:47 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VGzzh-0006OU-UX; Tue, 03 Sep 2013 23:26:45 +0000 Received: from if05-mail-sr03-mia.mta.terra.com ([208.84.243.60]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VGzzc-0006O8-Gu for linux-mtd@lists.infradead.org; Tue, 03 Sep 2013 23:26:44 +0000 Received: from 155.tpn.terra.com (unknown [10.235.200.47]) by mail-sr03-mia.tpn.terra.com (Postfix) with ESMTP id 03F922002194 for ; Tue, 3 Sep 2013 23:26:16 +0000 (UTC) X-Terra-Karma: -2% X-Terra-Hash: 852244880c7f2ebfe2531438409409cd Received: from localhost.localdomain (unknown [186.214.111.40]) (authenticated user fggs) by 155.tpn.terra.com (Postfix) with ESMTPA id 4A422400001EC; Tue, 3 Sep 2013 23:26:13 +0000 (UTC) From: Flavio Silveira To: linux-mtd@lists.infradead.org Subject: [PATCH v2] mtd: m25p80: Add support for ESMT F25L32PA Date: Tue, 3 Sep 2013 20:25:54 -0300 Message-Id: <1378250755-2674-1-git-send-email-fggs@terra.com.br> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Milter-Version: master.39-g1fd3ecd+ X-CLX-Rate-Response: fh=155; fi=10.235.200.248:2001; rg=B; GT=0; fs=1011; sc=; st=IIS; id=a133GLF8l7dZ0VH-832326F2; rv=master.90-g31d4ebe/208.84.242.248:14051; ts=JXBSy; fl=FAA; ip=186.214.111.40; nr=2; nc=1; hl=JyD4i3YMrlL; ho=VqYQGE4dBk; hd=C7Kebad4cDT; hf=FjnyuNiuGWu; hF=IWGs8ybje5p; hj=No76BbF55bX; ZM=P2FUJ8fcqd3; ZB=HsqtWi7tb70; ZB=Pn9fg4EIAG/; ZB=CZKoCO+Dh64; ZB=ElbG8IwWc+8; ZB=DWk2m/k7eLq; ZU=FF0mRIf8wn; Zu=Ni5ASTGMi7s; ZF=PcnhGDuGp34; X-CLX-ID: a133GLF8l7dZ0VH-832326F2 X-Abaca-Score-Saida: 0 X-CMAE-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130903_192640_632607_647A546F X-CRM114-Status: GOOD ( 10.44 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fggs[at]terra.com.br) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [208.84.243.60 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Flavio Silveira X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 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" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This flashchip is used in D-Link DIR-610 A1 router board and maybe several others, yet is not kernel upstream. So add support for it according to datasheet [0], making it easier to support other boards using this flashchip in the future. Changelog v2: - Better description - Datasheet link at the bottom, similar to other patches. [0] http://www.esmt.com.tw/DB/manager/upload/F25L32PA.pdf Signed-off-by: Flavio Silveira --- drivers/mtd/devices/m25p80.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 2f3d2a5..3a3cf2d 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -731,6 +731,9 @@ static const struct spi_device_id m25p_ids[] = { { "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) }, { "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) }, + /* ESMT */ + { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) }, + /* Everspin */ { "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2) },