From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83CF9C4338F for ; Sun, 1 Aug 2021 18:03:00 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9F29461054 for ; Sun, 1 Aug 2021 18:02:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F29461054 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE75682E3F; Sun, 1 Aug 2021 20:02:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Q4YiKU0k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5AA9282E3F; Sun, 1 Aug 2021 20:02:54 +0200 (CEST) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 05E198290A for ; Sun, 1 Aug 2021 20:02:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22a.google.com with SMTP id y18so21438880oiv.3 for ; Sun, 01 Aug 2021 11:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IOB8Ffid2PFg8uE1yqQ9T0N8KaDMuBlN8xHT/GeXmak=; b=Q4YiKU0k0ORROW2pcQlVEkbFtCFCbG5Jx0G6+Ponzh2DQ2XgiaYOPWSbXGwOZvDH/h Qj3ao/OYXCNWvc5IXFLDv+M2WvIx9DlEi4uCh5Hqq0fPGseOKRGKt8xPa7vSJrXnbnPt oNftuFVDHUDb2NbuJtIU/3EUgDsmbSDM+Fkjs= 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:mime-version :content-transfer-encoding; bh=IOB8Ffid2PFg8uE1yqQ9T0N8KaDMuBlN8xHT/GeXmak=; b=BSHHAbxqNhFe0OsoCY64TEW0hMLpkGSt2w/GATYroiix9EDB3CNaaOW6UftvKpVNUO b7CnPOOYs5peoEdoYmp+PVRGU7Ovbrog1ilrjb9pioWKl/P91s66uyO7Tl10SJuOiVwt 8zLkgN7g2NNzmuEPHWZVSE78y3ABm/fg53ovVDGz6RcH7QUgsXEKLwX0Q/GX4QBHrHdV tQgF/UviwHpMlAq1Aq+v+Dk5SjrsDGQlXReEivc/7oEBkyXgzoDUoawdoAcuMnA/mHH9 w5arPK9WrxGHTYbIqx0J/NkLoRFWIUOuYlv7Ev+VbYS4lbx1Iy5fkPtupMv4dAwC9VxR 2hkg== X-Gm-Message-State: AOAM530CiI+mb0PNEaVsXDvMxZ26kuWQq2sSztgEHr2ZCFCG0loo6Lu5 7bigjAY9zhhhk5VKn2lRUINESoi5DyWW5OIc X-Google-Smtp-Source: ABdhPJxOMTqpzMlBXUsaB7HgqfcZYDC/qaS+naN9216TYxQFLn5LUfBGTRZBL5DOiaozQ1jwIJ4w3g== X-Received: by 2002:aca:f15:: with SMTP id 21mr8243226oip.24.1627840968649; Sun, 01 Aug 2021 11:02:48 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s184sm1386744oig.25.2021.08.01.11.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 11:02:48 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Jagan Teki , Simon Glass , Bin Meng , =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= , Kory Maincent , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Michal Simek , Mike Frysinger , Ovidiu Panait , Patrick Delaunay , Peng Fan , Pragnesh Patel , Pratyush Yadav , Priyanka Jain , Sean Anderson , Sean Anderson , Wasim Khan Subject: [PATCH v2 0/4] sf: Add documentation and an 'sf mmap' command Date: Sun, 1 Aug 2021 12:02:39 -0600 Message-Id: <20210801180243.2166525-1-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean This little series adds documentation and a few other tidy-ups to the 'sf' command. It also provides a way to access memory-mapped SPI via the command line. Changes in v2: - Explain why 'usage' cannot be const - Many fixes as suggested by Heinrich Simon Glass (4): command: Use a constant pointer for the help sf: Tidy up code to avoid #ifdef sf: doc: Add documentation for the 'sf' command sf: Provide a command to access memory-mapped SPI arch/Kconfig | 2 + cmd/Kconfig | 8 ++ cmd/sf.c | 67 +++++++--- doc/usage/index.rst | 1 + doc/usage/sf.rst | 291 ++++++++++++++++++++++++++++++++++++++++++++ include/command.h | 2 +- 6 files changed, 352 insertions(+), 19 deletions(-) create mode 100644 doc/usage/sf.rst -- 2.32.0.554.ge1b32706d8-goog