Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp743292rwd; Mon, 12 Jun 2023 22:53:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OLOptc+WtSi1bvgVRKugwgEXkgN+AEfpGcaOKmUvbXqNKxGqZauNJqkbqGnxc/ybG48+p X-Received: by 2002:a05:6402:b38:b0:516:a005:14d with SMTP id bo24-20020a0564020b3800b00516a005014dmr6383186edb.17.1686635591071; Mon, 12 Jun 2023 22:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686635591; cv=none; d=google.com; s=arc-20160816; b=Dy/yA0kvXP5Fy901z89tF2VqppS7lQvhTCpGIVuJZRkzdSoQiSOvbMDfNhs7JHom9j ReHePTt/6umS4c+HXmi5eiZa0BNVNFYsPL6dRREU6tCO1zLjLafth27vlIcl6ovotntP hQANvrsel4LvOvdEByw//Nf/8RXM6m8U9/yN5gKDEaF7BqRvN4N0xoJ3T+aZ/lrIR7+G k1ewSKJNw/+MPJe7JhdMU0VTI/99L2KJQaThRBLGbuIE1Kjip5znwyKGID4p85+9S7hq ifCJ/3RpFQ/T5c92C2k/Y6QW34X8TrQPSjLjr8C6cvPzFa/3bYsU51ezI/k60HUREwdg Hj0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0PN7hJCuUUDFKpd9njVlh6j3+pWsU7V1v+y69893q/A=; b=j3kXIrDGwvRt8elF6Frq5tfVnEAaZQg48TNQAJRNyOSaPoB+NCBU9pnFpQ5aM8OBkA 8EIt31uGs/jx7rfzjllPh+0M40C9RiF/kEBuusSo2QKcMWG2O7Vc5usQRaGaasuv20cC aoY1u5BSmRcF4C4UwQKtyzWwVklJUVmhhJPdFRD8R5QE7iN+ZW7P/Re86UACXLkRI7TJ 10VdZNVmLiOJf57xkCCqlZzXGc78CKkpryHI1FNhxx+deEPzL2bTA1CXz0SDfdQnnt4O aqmotEdQDRiu6xBHAKZ3OXcQwenDklxDAHUu4Xkm8xRg//OkQpMRxMsmmNtXlH2PlFNN 0jAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CksqoXAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a1709061b0800b009746375dc3esi5172205ejg.485.2023.06.12.22.52.46; Mon, 12 Jun 2023 22:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CksqoXAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239633AbjFME6h (ORCPT + 99 others); Tue, 13 Jun 2023 00:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232700AbjFME6g (ORCPT ); Tue, 13 Jun 2023 00:58:36 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FAF48E for ; Mon, 12 Jun 2023 21:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686632314; x=1718168314; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dKWqNItNhnl2qzeK3LTkxa2K/X8UQHIfaIfPLs0gLNM=; b=CksqoXARYx89ZHaVMxCTy4a9DnG+zkdHmZHLuc5+Qk+Kf7Tph8UH61RW qJCELSbF/FZUShmt7G/l96X+ufR+Zqrmy1Qayf9ls8meOvWuCWyveU+Qd WPW2NHr3M0JtD1w4EF8S6f6Y1tbrx0yvymGTfQ4p+N3yNPKmCcjv3/U/S 2HNYqnPspWj0892Yc3mGLmLHWEKQC4yVJY9tlEWC/iZAZAXnf922nCJQy atxJjNHouy128t/Na2qoBUHzJw9DiWOTbXrGqDWu6wpWph4kuD9ncnOaf 7DwixNZPVo/tGE5UrevCc9TJqBxhXpohXEleGaOUmNWBF1Ecasl1aBcGM g==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="421819089" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="421819089" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 21:58:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="1041614066" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="1041614066" Received: from haoyao-desk.bj.intel.com ([10.238.232.41]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 21:58:31 -0700 From: Hao Yao To: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Hao Yao , Md Sadre Alam Subject: [PATCH v2] mtd: spi-nor: gigadevice: Add support for gd25lb256 Date: Tue, 13 Jun 2023 12:53:13 +0800 Message-Id: <20230613045313.2690342-1-hao.yao@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <1612869079-19593-1-git-send-email-mdalam@codeaurora.org> References: <1612869079-19593-1-git-send-email-mdalam@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Md Sadre Alam Signed-off-by: Hao Yao --- drivers/mtd/spi-nor/gigadevice.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c index d57ddaf1525b..d56c1876549f 100644 --- a/drivers/mtd/spi-nor/gigadevice.c +++ b/drivers/mtd/spi-nor/gigadevice.c @@ -62,6 +62,10 @@ static const struct flash_info gigadevice_nor_parts[] = { FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, + { "gd25lb256", INFO(0xc86719, 0, 64 * 1024, 512) + PARSE_SFDP + FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6) + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, { "gd25q256", INFO(0xc84019, 0, 64 * 1024, 512) PARSE_SFDP FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6) -- 2.34.1