From patchwork Fri Jan 20 19:25:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9529345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6AE40601AE for ; Fri, 20 Jan 2017 19:28:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 590CD286D0 for ; Fri, 20 Jan 2017 19:28:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C403286D2; Fri, 20 Jan 2017 19:28:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01786286D0 for ; Fri, 20 Jan 2017 19:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752782AbdATT2V (ORCPT ); Fri, 20 Jan 2017 14:28:21 -0500 Received: from mail-yw0-f194.google.com ([209.85.161.194]:33351 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752689AbdATT2U (ORCPT ); Fri, 20 Jan 2017 14:28:20 -0500 Received: by mail-yw0-f194.google.com with SMTP id u68so12079604ywg.0 for ; Fri, 20 Jan 2017 11:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=HW51ZvxzR9blN1YStSnk+5B9AI1MV1sb8f8F0avyg9s=; b=LKJrS+mFrJsvY9wFVPpZijRANhBiFJKIYahi6EWV+n1wZmT/EbGiT5Z1kcV9vwhqxn ldAkSflXdY5yCmtIrIszOd0OvZdNN/8Sdj859w0qewyHxwWa4V3tv4zuK2qbMMbyf9xz SmXS2e+40lMHLIaq1+HXE4pbyQbpKm074YT0+gnhBLQmhAv7e93QqMIzHjnUOBx7Nrtk D1t14hMxYZb4kYF0sYlHJESFoitnhzAE7q8wvHi659E6YH+XBdiyPEHdvoA1qoFSY+98 3GxFaUKen7JA5OYR2iJWTwtNiiknQss71SYGgEE4AvKBJWm+p8g+tiojSYxlBj2PZ2Ec i4kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HW51ZvxzR9blN1YStSnk+5B9AI1MV1sb8f8F0avyg9s=; b=MF+x9/N7gl+0Xa42tKjrIKmPrSJ4qtiuMJeMM4EMb058OBRhi1ejrQMx6w2pNJxpnc 5JIIfOV6enjX9NfGYkafcgib7DdTUQCgidRHQ7FzPa6KuCY145VPsvzrmV+Yx1+pXjgN T6OhEib80ewzkKQFepvjfn+LM4eVAxQkIHIOznWkRBNQ+Zji1gPcPfBuBESWHQ8PrZOm yaRfaPDh4L2e9nraMz5gHmkaTIBryrtNhrDEfYBSrnRL/+OvXEJtqNLzd9AtY9KA6wSQ zyJnxKl1D6rvLAYANxN62LR1eCLET0vdUpsmoRhAqSF+q6Qw5/j9eZRfqDjUw8Si+Pfl 0gUw== X-Gm-Message-State: AIkVDXJakubWIAotc23jLTBvRU4hRNeBPgL5G6o2Vs9bL+ZHOApOHCnJrkQzwjC12AaJWw== X-Received: by 10.55.16.219 with SMTP id 88mr12949392qkq.29.1484940500135; Fri, 20 Jan 2017 11:28:20 -0800 (PST) Received: from mail.broadcom.com ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id o7sm6620012qte.30.2017.01.20.11.28.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Jan 2017 11:28:19 -0800 (PST) From: Kamal Dasu To: linux-spi@vger.kernel.org, f.fainelli@gmail.com, linux-mtd@lists.infradead.org, computersforpeace@gmail.com Cc: bcm-kernel-feedback-list@broadcom.com, Kamal Dasu Subject: [PATCH, 1/1] mtd: spi-nor: Added support for gd25q16 Date: Fri, 20 Jan 2017 14:25:51 -0500 Message-Id: <1484940351-8145-1-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add GigaDevice GD25Q16 (16M-bit) to supported list. Signed-off-by: Kamal Dasu Acked-by: Marek Vasut --- drivers/mtd/spi-nor/spi-nor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index da7cd69..8530d51 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -833,6 +833,11 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) /* GigaDevice */ { + "gd25q16", INFO(0xc84015, 0, 64 * 1024, 32, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) + }, + { "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)