From patchwork Wed Jun 3 12:28:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kejia Hu X-Patchwork-Id: 479934 X-Patchwork-Delegate: jogo@openwrt.org 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 81FFB140187 for ; Wed, 3 Jun 2015 22:30:45 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D7E6D28C057; Wed, 3 Jun 2015 14:28:01 +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, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 763BD28BE08 for ; Wed, 3 Jun 2015 14:27:45 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from ducie-dc1.codethink.co.uk (ducie-dc1.codethink.co.uk [185.25.241.215]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 3 Jun 2015 14:27:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTP id 51B62460E38; Wed, 3 Jun 2015 13:29:17 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at ducie-dc1.codethink.co.uk Received: from ducie-dc1.codethink.co.uk ([127.0.0.1]) by localhost (ducie-dc1.codethink.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qU1BLO7dV77k; Wed, 3 Jun 2015 13:29:15 +0100 (BST) Received: from localhost.localdomain (unknown [172.16.20.64]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPA id 170184616CD; Wed, 3 Jun 2015 13:29:15 +0100 (BST) From: "Kejia Hu (Terry)" To: openwrt-devel@lists.openwrt.org Date: Wed, 3 Jun 2015 13:28:43 +0100 Message-Id: <1433334525-4052-3-git-send-email-kejia.hu@codethink.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433334525-4052-1-git-send-email-kejia.hu@codethink.co.uk> References: <1433334525-4052-1-git-send-email-kejia.hu@codethink.co.uk> Subject: [OpenWrt-Devel] [PATCH 1/3] Add support for EON EN25Q128 flash chip. 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" From: Kejia Hu This is part of the work to add support for Thomson TG582n router. There are 2 variants for the board, namely DANT-T and DANT-1, EN25Q128 is used on DANT-1 only. --- .../475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch diff --git a/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch b/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch new file mode 100644 index 0000000..7bb550d --- /dev/null +++ b/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch @@ -0,0 +1,12 @@ +diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c +index c51ee52..09a1a12 100644 +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -497,6 +497,7 @@ static const struct spi_device_id spi_nor_ids[] = { + { "en25q32b", INFO(0x1c3016, 0, 64 * 1024, 64, 0) }, + { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) }, + { "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) }, ++ { "en25q128", INFO(0x1c3018, 0, 64 * 1024, 256, 0) }, + { "en25qh128", INFO(0x1c7018, 0, 64 * 1024, 256, 0) }, + { "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) }, +