Received: by 2002:a19:ad09:0:0:0:0:0 with SMTP id t9csp391084lfc; Thu, 27 Aug 2020 02:11:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9lD+9u6XsATTml81OQ3fXuqi6tH/qAkfU+9PJn8um2KBvMx7tmNfjqVbpDGyUrfX6bjpj X-Received: by 2002:a25:c094:: with SMTP id c142mr30146140ybf.477.1598519519739; Thu, 27 Aug 2020 02:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598519519; cv=none; d=google.com; s=arc-20160816; b=osBmrnT+jseJoyv/GhBKg9tnBgEmeOz0f7EWX4Zo7PZ9Y7DIdb0m8LHpiA8Tx9Cr8M xD232YhvBYdmaOLlzjtxya3FgWmrL7wxbKJVR2SLslTpT+3Ljb8RuUdnB9/eizOZOxN1 bbQrvArQqxcfoyqwk8Vby32C901ws48HrlGJwRe679MLN6Gbgzf0E2STOdVYSf4Z3ncZ fmRUhpSUcmJHK99WFIKxhpMfc3KHi0RakYyUbevYs1kzuJ+CfGFlIrDUEtWm8XsJVbwb ORMkV2hMiyV45AURJTUwTxFviipef3r/8yEWXps5KgLKyLq/Sshm1hpjqepqQ+GX0Ubq UC1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from; bh=OEDw5e/cIWmf9GMcbuaVN7pvh9SDCkZcoe1NSn206B0=; b=TT9nayEZ9c1gWCUtAs4kgbAEx3m3t/BLA/tEM6OP1RfsN2RKK67T7IPtbWWsyAJ8ks iryQ7K2cl2zk4LJPRwcyERxNqS7ArdPckhXTWrjamFE6g9K6NIO6/SlMNsdUNMbvrYed QqzvYjvsFMFHBvOvtucrvjf+3ra46Wjj6evYJ8kAS+PtIHGMPPTA9YXnFaLN6Z/9PxcT QHmDg3iHTG5Fzl3coAiRjZDpIw3uNDCvvfSlWXNp/zfvw1LF3CTqs2ggXi7HhLNZJ+el WLXruRcSIo9QadIhwivOGZiYiPhrGhYzGHHuWQ/SNz14lSkmnZKQdUpjQO9i7gI4udQH zidg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y129si1831594ybc.244.2020.08.27.02.11.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Aug 2020 02:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:57420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBDws-0001fi-V5 for alex.bennee@linaro.org; Thu, 27 Aug 2020 05:11:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBDwf-0001ec-S6; Thu, 27 Aug 2020 05:11:45 -0400 Received: from smtpout1.mo529.mail-out.ovh.net ([178.32.125.2]:36913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBDwd-0001zh-P5; Thu, 27 Aug 2020 05:11:45 -0400 Received: from mxplan5.mail.ovh.net (unknown [10.109.156.44]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id A4EBB54810DF; Thu, 27 Aug 2020 11:11:32 +0200 (CEST) Received: from kaod.org (37.59.142.99) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Thu, 27 Aug 2020 11:11:31 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-99G003cc3eeee9-ec49-4800-98bd-d7db1c7de948, 618CF37EF0508A6B3BD090B4D8B11E595DDBE7AA) smtp.auth=clg@kaod.org From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: Subject: [PATCH 0/2] m25p80: Add SFDP support Date: Thu, 27 Aug 2020 11:11:28 +0200 Message-ID: <20200827091130.3525790-1-clg@kaod.org> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.99] X-ClientProxiedBy: DAG7EX2.mxp5.local (172.16.2.62) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: b1c3040f-a86a-4037-a15d-f3ab95d91762 X-Ovh-Tracer-Id: 8702080382252256108 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedruddvgedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffogggtgfhisehtkeertdertdejnecuhfhrohhmpeevrogurhhitgcunfgvucfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepfedvuedtvdeikeekuefhkedujeejgffggffhtefglefgveevfeeghfdvgedtleevnecukfhppedtrddtrddtrddtpdefjedrheelrddugedvrdelleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehmgihplhgrnhehrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhrtghpthhtoheptghlgheskhgrohgurdhorhhg Received-SPF: pass client-ip=178.32.125.2; envelope-from=clg@kaod.org; helo=smtpout1.mo529.mail-out.ovh.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/27 05:11:34 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Andrew Jeffery , Francisco Iglesias , Alistair Francis , qemu-arm@nongnu.org, Joel Stanley , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: a4eMmIWx3Z7H Hello, JEDEC STANDARD JESD216 for Serial Flash Discovery Parameters (SFDP) provides a mean to describe the features of a serial flash device using a set of internal parameter tables. Support in Linux has been added some time ago and the spi-nor driver is using it more often to detect the flash settings and even flash models. This is the initial framework for the RDSFDP command giving access to a private SFDP area under the flash and one example for the n25q256a to check this is a good approach. Thanks, C. Cédric Le Goater (2): m25p80: Add basic support for the SFDP command m25p80: Add the n25q256a SFDP table hw/block/m25p80_sfdp.h | 17 +++++++++++++++ hw/block/m25p80.c | 39 +++++++++++++++++++++++++++++++-- hw/block/m25p80_sfdp.c | 49 ++++++++++++++++++++++++++++++++++++++++++ hw/block/Makefile.objs | 2 +- hw/block/trace-events | 1 + 5 files changed, 105 insertions(+), 3 deletions(-) create mode 100644 hw/block/m25p80_sfdp.h create mode 100644 hw/block/m25p80_sfdp.c -- 2.25.4