Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp398525pxb; Tue, 9 Feb 2021 03:20:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxt4ID6E1ttIwBY1U+70skaFholXzBCNH4WiVRc6bW6d8dahiuO+LN0I37qXxOKiNlBFpF+ X-Received: by 2002:a17:906:cf86:: with SMTP id um6mr22483443ejb.426.1612869640561; Tue, 09 Feb 2021 03:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612869640; cv=none; d=google.com; s=arc-20160816; b=NzMClffYVtOUWZmH/ZB72lGhfpj3Z2JuITj11PPNdCishNM+uNDbv8zs/nr6cP7J/o D3p97bXl8exbvTvqJjFpF4yd4W2cNdf4dDRzCg6fLX/5FuDTxoBFn+TCeyvK+RuMZ29n 5lcko0j3mAbUG9wshGT5aascnxF18iqAT3kWohHx8MVBuGANfuGOnr+pbF4DDeETpLLL GIrMeDZwptO13UKvhC64jlcOrJkE8t0FCVtRyAxHglLW7n9Y2w9FQK1Y3aImS3pnUh1F vqEfHpUNc8/+1T9jVYJTMMFWa6ml1Nr7KUfMCClDL+hApQT2uMyieL81RlBlsybvH16K TDjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=oSkZcrmyNo9P1jYShKJkZOy8pw3dgAQBEBLthq6CKYQ=; b=T3ILl3XB9/LJUYY9z+xpyu40QQrIt0t8gtDuBro40HD0GqbPzCI0JC8qGUXhq10XQa BQAtBbiREibdzsuor1JzS03oFFhQW0YBuktIE9zX80P6UbX1ZkzQHMlT7I7xM5pd917V c2Tq1Hq3ISeJPUj1l++aOTzmrd4Pb9iJPUdIq2odGPEqHVO9tLCjqzdxMQRBCWW0UpTA Be3Z4ZFGzdCodxh/pw4N5C/XFLneVweKDl2KjHNLHUC9B1XLPnOJ3k99+TwTnNIexZ8R Kpi0RGtQ+MUoQOEg2ZuwLn6z22vH0iSwKgyTc9zJiQnkKAgbMXpNEneAY7/0i4iDimOQ sVkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si12159340edy.472.2021.02.09.03.20.11; Tue, 09 Feb 2021 03:20:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbhBILRd (ORCPT + 99 others); Tue, 9 Feb 2021 06:17:33 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:24071 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbhBILM0 (ORCPT ); Tue, 9 Feb 2021 06:12:26 -0500 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 09 Feb 2021 03:11:42 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 09 Feb 2021 03:11:40 -0800 X-QCInternal: smtphost Received: from mdalam-linux.qualcomm.com ([10.201.2.71]) by ironmsg01-blr.qualcomm.com with ESMTP; 09 Feb 2021 16:41:23 +0530 Received: by mdalam-linux.qualcomm.com (Postfix, from userid 466583) id 85D0E211AC; Tue, 9 Feb 2021 16:41:22 +0530 (IST) From: Md Sadre Alam To: tudor.ambarus@microchip.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mdalam@codeaurora.org, sricharan@codeaurora.org Subject: [PATCH] mtd: spi-nor: gigadevice: Add support for gd25lb256e Date: Tue, 9 Feb 2021 16:41:19 +0530 Message-Id: <1612869079-19593-1-git-send-email-mdalam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for gd25lb256e. This device tested on IPQ5018 platform with dd from/to the flash for read/write respectly, and mtd erase for erasing the flash. Signed-off-by: Md Sadre Alam --- drivers/mtd/spi-nor/gigadevice.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c index 447d84b..8f1e7ec 100644 --- a/drivers/mtd/spi-nor/gigadevice.c +++ b/drivers/mtd/spi-nor/gigadevice.c @@ -50,6 +50,9 @@ static const struct flash_info gigadevice_parts[] = { SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6) .fixups = &gd25q256_fixups }, + { "gd25lb256e", INFO(0xc86719, 0, 64 * 1024, 512, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_4B_OPCODES) }, }; const struct spi_nor_manufacturer spi_nor_gigadevice = { -- 2.7.4