From patchwork Fri May 6 15:37:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 619341 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r1bZR5c1Fz9t0t for ; Sat, 7 May 2016 01:40:15 +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=siLnIlFS; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ayhq3-00028w-5G; Fri, 06 May 2016 15:38:47 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ayhq0-00025C-50 for linux-mtd@lists.infradead.org; Fri, 06 May 2016 15:38:45 +0000 Received: by mail-pf0-x230.google.com with SMTP id 206so51293989pfu.0 for ; Fri, 06 May 2016 08:38:23 -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=Hyc8jrxEy9aIBb6guBHW8CvbkJZFHfmD8FFyne+V5c4=; b=siLnIlFSXmzpI0qRZwWmWlrWZpfkEf6ulXsf12YO5EU82PtJV9Krku2pdwLmxCXYsz Qf6nMEJV2y7pwHW+lGfV6BXPjXVWQgoZyePnNVCsJS2CuWjZmIw7CZNcZezjqy0ZH3SA 5HrwBigXMLSCG8TSZPb858+O59Ok+KZ6Hf83MO53zZ129TdJE60YWkbqZ7Kn9ZRu9VOb 9RslSEPBw+Xb/JQFLzYWphmTF5y862K2ObFQj4dhGUpz33SZoX7lFvhmSqHqG1JPNdbK aHX2uGlQWrwrzwr/0b+dYNyJL6h4YV2QhYASUveBX51uJe5Z+uffAeKIFIIeUH0UXjkd 9R5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Hyc8jrxEy9aIBb6guBHW8CvbkJZFHfmD8FFyne+V5c4=; b=kR7xO5lPDoZZhKtdRjnVYSZPnghn3wPAskKk/5ErIvDCP53XsXFc4zm3cX6jhDO4m8 2QsZmBJ0OedeGZ82jnUqomnJ1lkELYaBP0iY5DbrAQ5Xu2+llVC1zJK732CjTZgc9VSo 6MVoeP8DyKgpZic2lpKjB5YE5ZBV0IjkSSJ/EvzvpB2TlLQI/vMf9WA0+kpsS2jcFBFx DXMc9qVVpHWWwTXnfjmBIcouPGoR8J/daon0DtwwaFO+B2mtr/85PWL0HCaxGQFuod8/ qz9gQ6CE27/bgW3ZUz+tk/rZ2CHnH/9oajScUXR4P4bi5q65TwtkfLrYDxqQGUac2hu8 xlDw== X-Gm-Message-State: AOPr4FV6GCMk7uP4BzrNdfaWOnqE1yDTwDFZ6P9mvb8L7XaAdwwfSmIE9YIELMXMg2oYiA== X-Received: by 10.98.64.79 with SMTP id n76mr29814422pfa.149.1462549103230; Fri, 06 May 2016 08:38:23 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id u2sm21987637pan.45.2016.05.06.08.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 May 2016 08:38:22 -0700 (PDT) From: Brian Norris To: Subject: [PATCH v2] mtd: spi-nor: support GigaDevice gd25lq64c Date: Fri, 6 May 2016 08:37:41 -0700 Message-Id: <1462549061-88356-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160506_083844_234431_2D0C73DE X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Brian Norris , Ezequiel Garcia MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Also note the GigaDevice JEDEC ID. No write-protect support yet, since this flash uses a different status register layout. Cc: Ezequiel Garcia Signed-off-by: Brian Norris Acked-by: Marek Vasut --- v2: fixed duplicate flag drivers/mtd/spi-nor/spi-nor.c | 1 + include/linux/mtd/spi-nor.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 157841dc3e99..c52e45594bfd 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -832,6 +832,7 @@ static const struct flash_info spi_nor_ids[] = { /* GigaDevice */ { "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64, SECT_4K) }, { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) }, + { "gd25lq64c", INFO(0xc86017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) }, /* Intel/Numonyx -- xxxs33b */ diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 3c36113a88e1..7f041bd88b82 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -21,6 +21,7 @@ * Sometimes these are the same as CFI IDs, but sometimes they aren't. */ #define SNOR_MFR_ATMEL CFI_MFR_ATMEL +#define SNOR_MFR_GIGADEVICE 0xc8 #define SNOR_MFR_INTEL CFI_MFR_INTEL #define SNOR_MFR_MICRON CFI_MFR_ST /* ST Micro <--> Micron */ #define SNOR_MFR_MACRONIX CFI_MFR_MACRONIX