From patchwork Mon Jun 29 03:30:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "L. D. Pinney" X-Patchwork-Id: 489199 X-Patchwork-Delegate: zajec5@gmail.com 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 162AE14076E for ; Mon, 29 Jun 2015 13:31:54 +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=yiS03hIZ; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id BEE9C2806AC; Mon, 29 Jun 2015 05:31:34 +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 1386B280331 for ; Mon, 29 Jun 2015 05:31:29 +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-f180.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 29 Jun 2015 05:31:26 +0200 (CEST) Received: by obbkm3 with SMTP id km3so97046367obb.1 for ; Sun, 28 Jun 2015 20:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=tDfemeujOBRKgfN1sxCnjiU74Kx67insA13+cX+Zrug=; b=yiS03hIZPEY30NkTnWqps4DefIOlU0RpctELYD9gZxgSL08YrNPlgnUEjwNqW14j3s JZe0sOmwRG3MxU2u/ZdlTKrMdEpqLkB7Bcx8uk924P09DBiMYgTt5SHSGp5VeWy9ZQ1p eSFIAVFLGSOnIkuYdgZZayp6nhgeA1UMkUh2+D9h9iwhjVZqoypSui6dfu4McSSE2HfO Skk2haK9c4hqkDm4FOD9VhhBbBT0NUt6Oe4agJZzXlXI8ouh+q5ehzKrZdKKm5XzQ37X bO0XHQMohtAh2dlnm0UTvItEXyPrxPGuF8BOeAwc9OwXuXvKO5MriYgVhg2HnpKHu7ss Kf0A== X-Received: by 10.202.232.78 with SMTP id f75mr11559658oih.18.1435548697042; Sun, 28 Jun 2015 20:31:37 -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 ix8sm324563obc.7.2015.06.28.20.31.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jun 2015 20:31:36 -0700 (PDT) From: "L. D. Pinney" To: OpenWrt Development List Date: Sun, 28 Jun 2015 22:30:58 -0500 Message-Id: <1435548658-1734-1-git-send-email-ldpinney@gmail.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH] mtd: spi-nor: Add support 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: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" It's an 8 MiB flash with 4 KiB erase sectors. Unfortunately this patch from Rafał Miłecki hasn't been picked up. Tested-by: L. D. Pinney --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K b/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K new file mode 100644 index 0000000..6b185b9 --- /dev/null +++ b/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-Spansion_S25FL164K @@ -0,0 +1,10 @@ +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -573,6 +573,7 @@ static const struct spi_device_id spi_nor_ids[] = { + { "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) },