From patchwork Wed Jul 1 06:29:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "L. D. Pinney" X-Patchwork-Id: 489881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CDB5C1402C9 for ; Wed, 1 Jul 2015 16:30:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=zNiDYrZT; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3C91028156E; Wed, 1 Jul 2015 08:29:53 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D9B6228091F for ; Wed, 1 Jul 2015 08:29:44 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-ob0-f178.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 1 Jul 2015 08:29:41 +0200 (CEST) Received: by obpn3 with SMTP id n3so22076699obp.0 for ; Tue, 30 Jun 2015 23:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=n/V+3upsTxmyb9obKfnZP002/hNXZ5uArfbTOR/X3dg=; b=zNiDYrZTD6BQJQLVSpGIB7XN8TCPa2DA5nKbHrL+gBFBYNhut4KW8KqBa4OpzIQ7Fz xJPCIkUjAB4838LZjcswTa7YXyJWdVjW9jFDYjUYP/Wzo3Qkytt113o1LESmEIR2Swmd m+r9nsUJ1wGgLJzUPGlKukSvgR44UkKyqpUV5W+NkYH5pQsm3fIekhCBFF2PESWtF7Vs GwbGBUJV/cVt7Y+Tj1Tnd4sYVNYX23G6tfbPuzn2j/aNAiJqHL3z7O+C4szETYR+/Tcu 2j+/Y3EdNCosGnTkriThdfMCesejyzyOz3VEVM4JltjwF43GdU/nFHQo1msG9WyunAhp znJw== X-Received: by 10.202.72.4 with SMTP id v4mr21081236oia.82.1435732192233; Tue, 30 Jun 2015 23:29:52 -0700 (PDT) Received: from black.lan (ip70-185-197-240.ok.ok.cox.net. [70.185.197.240]) by mx.google.com with ESMTPSA id a131sm574453oib.24.2015.06.30.23.29.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 23:29:51 -0700 (PDT) From: "L. D. Pinney" To: OpenWrt Development List Date: Wed, 1 Jul 2015 01:29:18 -0500 Message-Id: <1435732158-29773-1-git-send-email-ldpinney@gmail.com> X-Mailer: git-send-email 2.1.4 Subject: [OpenWrt-Devel] [PATCH V5] linux:generic: mtd backport for Spansion S25FL164K X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Backport for the Spansion S25FL164K It's a 8 MiB flash chip with 4 KiB erase sectors. Signed-off-by: L. D. Pinney --- target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K | 12 ++++++++++++ target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-Spansion_S25FL164K | 12 ++++++++++++ target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-Spansion_S25FL164K | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K b/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K new file mode 100644 index 0000000..354bd78 --- /dev/null +++ b/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K @@ -0,0 +1,12 @@ +Index: linux-3.18.17/drivers/mtd/spi-nor/spi-nor.c +=================================================================== +--- linux-3.18.17.orig/drivers/mtd/spi-nor/spi-nor.c ++++ linux-3.18.17/drivers/mtd/spi-nor/spi-nor.c +@@ -570,6 +570,7 @@ static const struct spi_device_id spi_no + { "s25fl008k", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) }, + { "s25fl016k", INFO(0xef4015, 0, 64 * 1024, 32, SECT_4K) }, + { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) }, ++ { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) }, + + /* SST -- large erase sizes are "overlays", "sectors" are 4K */ + { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) }, diff --git a/target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-Spansion_S25FL164K b/target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-Spansion_S25FL164K new file mode 100644 index 0000000..83e4303 --- /dev/null +++ b/target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-Spansion_S25FL164K @@ -0,0 +1,12 @@ +Index: linux-4.0.7/drivers/mtd/spi-nor/spi-nor.c +=================================================================== +--- linux-4.0.7.orig/drivers/mtd/spi-nor/spi-nor.c ++++ linux-4.0.7/drivers/mtd/spi-nor/spi-nor.c +@@ -602,6 +602,7 @@ static const struct spi_device_id spi_no + { "s25fl016k", INFO(0xef4015, 0, 64 * 1024, 32, SECT_4K) }, + { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) }, + { "s25fl132k", INFO(0x014016, 0, 64 * 1024, 64, 0) }, ++ { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) }, + + /* SST -- large erase sizes are "overlays", "sectors" are 4K */ + { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) }, diff --git a/target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-Spansion_S25FL164K b/target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-Spansion_S25FL164K new file mode 100644 index 0000000..d28fbc6 --- /dev/null +++ b/target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-Spansion_S25FL164K @@ -0,0 +1,12 @@ +Index: linux-4.1.1/drivers/mtd/spi-nor/spi-nor.c +=================================================================== +--- linux-4.1.1.orig/drivers/mtd/spi-nor/spi-nor.c ++++ linux-4.1.1/drivers/mtd/spi-nor/spi-nor.c +@@ -618,6 +618,7 @@ static const struct spi_device_id spi_no + { "s25fl016k", INFO(0xef4015, 0, 64 * 1024, 32, SECT_4K) }, + { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) }, + { "s25fl132k", INFO(0x014016, 0, 64 * 1024, 64, 0) }, ++ { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) }, + + /* SST -- large erase sizes are "overlays", "sectors" are 4K */ + { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },