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 20AE1C4338F for ; Sun, 1 Aug 2021 21:12:57 +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 8595560241 for ; Sun, 1 Aug 2021 21:12:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8595560241 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 9BB4B832E4; Sun, 1 Aug 2021 23:12:54 +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="SIioSvJN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F5C4832DA; Sun, 1 Aug 2021 23:12:53 +0200 (CEST) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 E62A18311A for ; Sun, 1 Aug 2021 23:12:50 +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-ot1-x32d.google.com with SMTP id c2-20020a0568303482b029048bcf4c6bd9so15681701otu.8 for ; Sun, 01 Aug 2021 14:12: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=v1C+l1oV87qG5THooDBVa8D8DzCKPd0IfboVEPEksZY=; b=SIioSvJN1dZYWI+6p6y4izxLrmOZ59/6oM17IIDwjxh/qgQsV7UaHtkx2kyR+sCZR5 MjgJHAPp6gzHZwbJzHgov50e9tpw+OEU9nAj4AWBa6m2MDQMv6EiYl9xANgXTZZjGycS hdP9Ll04wyrtY/TFdeIq4a94JGTiSIyo734V0= 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=v1C+l1oV87qG5THooDBVa8D8DzCKPd0IfboVEPEksZY=; b=CLTrXChsdkZ2vna8ztQgaypbWzhRouuSnt91LGLbX2rDV5j4nOT11rSYa71XvFNsLI cuB1jA+IKwqzO28zGKQue+pZ6j4o5kEdgJJIgUFGQQRPCKFA75BRu1Myg9r8fn4PepTZ tFc4EsrZyLn3hSa35dUo7lteRw4w4gg0D+9glZDUj1a8ZnKYWu0r+s+j8c2gayQcdCao utxZC5OCjxWwa4QG+h5ucs0vfjSGzKcafiBLPAnhEZMzKtdQjm+uViH5bjawJHbBKd0t MS2VW09Vehx02/UAHK8RqJj/S5BEB6EK1pPo0KNWLv8A838Gk/Da0iB5Dou+qlwjkIKh 5xDA== X-Gm-Message-State: AOAM533x8Lls4tAHrqMYORlth3xUlD9pMG0DqWh8lmeaKscFS2vG8zSQ QEHwJgTdZvJzO7tr3J3ZEYZMgGqQ6XEGUnyh X-Google-Smtp-Source: ABdhPJygnAX/H0uyRtF6noW+i08mTqqwLLpG6XCZIVfUNBm4CI+f4FKnGv0Iy4v3S1mkGGmRe6LAQQ== X-Received: by 2002:a05:6830:2a08:: with SMTP id y8mr9894030otu.61.1627852369413; Sun, 01 Aug 2021 14:12:49 -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 i188sm1446105oih.7.2021.08.01.14.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 14:12:49 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Jagan Teki , Simon Glass , Mike Frysinger Subject: [PATCH v3 0/4] sf: Add documentation and an 'sf mmap' command Date: Sun, 1 Aug 2021 15:12:41 -0600 Message-Id: <20210801211245.2208037-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 v3: - Add configuration and return value also 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 | 304 ++++++++++++++++++++++++++++++++++++++++++++ include/command.h | 2 +- 6 files changed, 365 insertions(+), 19 deletions(-) create mode 100644 doc/usage/sf.rst -- 2.32.0.554.ge1b32706d8-goog