From patchwork Tue Jun 30 05:07:05 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: 489510 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 B1D5B140284 for ; Tue, 30 Jun 2015 15:07:52 +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=U34o3Nuc; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 272EC28741D; Tue, 30 Jun 2015 07:07:29 +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 127A3284249 for ; Tue, 30 Jun 2015 07:07:25 +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-oi0-f51.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 30 Jun 2015 07:07:24 +0200 (CEST) Received: by oiyy130 with SMTP id y130so133328916oiy.0 for ; Mon, 29 Jun 2015 22:07:36 -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=Jbz6g4t+xryHd1nr6TmRazmkpYaY0O5XctAByH87fmA=; b=U34o3NucyalGY7Dm4Qgj0pXyFdS+Z13u9MP9WDXOAKUiLeaCrfh3vd6pPZgck2R077 qF0XNMdjO88IEufQ0eFwFDajo7mqMt3VSQfXnpyhoAplNGIcvd8kX035HaIsVl/aY/Xp iR1VYEkoYaMc0sSH1zyfmZ0AopSSjP1aJEi0aZEro0Ndew/IaZpoE6psCxIzJDIQZ0/q V/8a4tduaOIzHHzTttngbPnChhnhlh/k1J9uAt5EoUdy5Kpd6pGGh1OV2ey1dpPYwkDg vrHupBwzfYdQgdHS+XhlA3SzNk5ISLbj/neHdheaGHwh6Y8F9uiMCcRQ/h2nlpkfw4sT 1hyw== X-Received: by 10.182.240.135 with SMTP id wa7mr15691619obc.63.1435640856334; Mon, 29 Jun 2015 22:07:36 -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 y131sm23817661oig.28.2015.06.29.22.07.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jun 2015 22:07:35 -0700 (PDT) From: "L. D. Pinney" To: OpenWrt Development List Date: Tue, 30 Jun 2015 00:07:05 -0500 Message-Id: <1435640825-17867-1-git-send-email-ldpinney@gmail.com> X-Mailer: git-send-email 2.1.4 Subject: [OpenWrt-Devel] [PATCH V4] 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 an 8 MiB flash with 4 KiB erase sectors. Signed-off-by: L. D. Pinney --- target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K | 12 ++++++++++++ target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K | 12 ++++++++++++ target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K | 12 ++++++++++++ 3 files changed, 36 insertions(+)Backport for the Spansion S25FL164K diff --git a/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K b/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K new file mode 100644 index 0000000..c58269d --- /dev/null +++ b/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K @@ -0,0 +1,12 @@ +Index: linux-3.18.16/drivers/mtd/spi-nor/spi-nor.c +=================================================================== +--- linux-3.18.16.orig/drivers/mtd/spi-nor/spi-nor.c ++++ linux-3.18.16/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-for-the-Spansion_S25FL164K b/target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K new file mode 100644 index 0000000..d0fa02e --- /dev/null +++ b/target/linux/generic/patches-4.0/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K @@ -0,0 +1,12 @@ +Index: linux-4.0.5/drivers/mtd/spi-nor/spi-nor.c +=================================================================== +--- linux-4.0.5.orig/drivers/mtd/spi-nor/spi-nor.c ++++ linux-4.0.5/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-for-the-Spansion_S25FL164K b/target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K new file mode 100644 index 0000000..1f541a9 --- /dev/null +++ b/target/linux/generic/patches-4.1/091-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K @@ -0,0 +1,12 @@ +Index: linux-4.1/drivers/mtd/spi-nor/spi-nor.c +=================================================================== +--- linux-4.1.orig/drivers/mtd/spi-nor/spi-nor.c ++++ linux-4.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) },