From patchwork Mon Dec 16 09:05:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mauro Condarelli X-Patchwork-Id: 1210159 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mclink.it Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47bwNv0tQYz9s4Y for ; Mon, 16 Dec 2019 20:06:07 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C6A2980A01; Mon, 16 Dec 2019 10:06:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mclink.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 5EE4780A05; Mon, 16 Dec 2019 10:05:59 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from relaygw4-2.mclink.it (relaygw4-2.mclink.it [213.21.178.145]) by phobos.denx.de (Postfix) with ESMTP id 9DCDB807F8 for ; Mon, 16 Dec 2019 10:05:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mclink.it Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=mc5686@mclink.it Received: from [172.24.30.43] (HELO smtpoutgw3.mclink.it) by relaygw4-2.mclink.it (CommuniGate Pro SMTP 6.0.6) with ESMTP id 165964814 for u-boot@lists.denx.de; Mon, 16 Dec 2019 10:05:56 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CEAgD7R/dd/5tP918NWB4BCxyCAIg/kRGEEYV+kUUJAQEBAQEBAQEBNwEBhnc5BQ0CEAEBBQEBAQEBBQSMOA8BXxwCJgJfDQgBAYMeglORWpp/dYEyhU+DNIFIgQ4pjHCBQYE4DIIyiEWCXgSBPAEBAa06AQYCgV9XlX8GG5pIqyeBeYJegU9PJZtZkRkBAQ Received: from host155-79-dynamic.247-95-r.retail.telecomitalia.it (HELO [192.168.7.106]) ([95.247.79.155]) by smtpoutgw3.mclink.it with ESMTP; 16 Dec 2019 10:05:55 +0100 To: U-Boot Mailing List From: Mauro Condarelli Subject: [Patch] Add support for GD25Q128C SPI NOR chip Message-ID: <92b21481-106a-ae4a-3175-2540a9cfce10@mclink.it> Date: Mon, 16 Dec 2019 10:05:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean Trivial patch to add Support for GigaDevice GD25Q128C: Regards Mauro Condarelli diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index d3b84574ac..fbb7dca30c 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -107,6 +107,11 @@ const struct flash_info spi_nor_ids[] = {                         SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |                         SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)         }, +       { +               INFO("gd25q128", 0xc84018, 0, 64 * 1024, 256, +                       SECT_4K | SPI_NOR_DUAL_READ | +                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) +       },         {                 INFO("gd25lq128", 0xc86018, 0, 64 * 1024, 256,                         SECT_4K | SPI_NOR_DUAL_READ |