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=-15.2 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 DF284C433EF for ; Sun, 19 Sep 2021 21:49:51 +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 F405060F9B for ; Sun, 19 Sep 2021 21:49:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F405060F9B 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 627228324A; Sun, 19 Sep 2021 23:49:48 +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="Vl2MJJXo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5639B83248; Sun, 19 Sep 2021 23:49:46 +0200 (CEST) Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) (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 947C180202 for ; Sun, 19 Sep 2021 23:49:42 +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-oo1-xc2a.google.com with SMTP id u15-20020a4a970f000000b0029aed4b0e4eso3233651ooi.9 for ; Sun, 19 Sep 2021 14:49:42 -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=D4uE+KK9tpJWJIQC0Wvg8taFEbTiGXfUj0jQzmmISzE=; b=Vl2MJJXokGow2nAufRTbaTwQU7AqjLj6BxpkxayfnZGvrOf5XHWVpgCJ49JFOSFap0 UJjm5IFfHUv734eqzHMHTqMODFsDYDAbMDxfBnccYZgd4BnoiH4Lz4vwpe4NMntGyyzJ DP4PnGN6Ay/GrTTRhJep8iyXN6OmMjY3yjBy4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D4uE+KK9tpJWJIQC0Wvg8taFEbTiGXfUj0jQzmmISzE=; b=mrGa4YMVaZjm6O2LcoE5QDpakxIkKY+d7mC0vRL4MPFAZVOJBi/XbTSKBBaga1jOul 7HKXWyoNamJ+kIbVm50/cZjPECcBf7pXb6iWk/v4SdfqLM2kfsm+iu3GY3RGpfeN/Pr/ wnM4Y9doe81DeWxQre3v5BSfcE/VLO/n1prDU2XhjZ1GVZnAJGWpKVNvE0W92Bh6P4jL xx7VVkdqtH3A2bQsUWZldkcJdNFCWiwMIV9vtpLbf9KCWLnrlELi9sue35/v007VI1Cq QnmzJ2VR0qgPdbvBhQD4tgTOJa3zo9OKpeCp7txLUcV27Qn15Rd3bi/OqUUya8gKI4oA dHlQ== X-Gm-Message-State: AOAM5315HptE1vEx5k0NUtvCBmy9HRaNjvEzxfsVpFVMKMvXkwjlNn+R uzjVvrGi+NTqtTb+Wbz5Wmmsu+/AN0b5Zg== X-Google-Smtp-Source: ABdhPJxltv80mfz4f1UNH2ZEDEdk+ToUvMe/oyN7biTXwdWQxSoP3xeBQg9yANMSqfZEtnxWPA1caQ== X-Received: by 2002:a4a:ae0c:: with SMTP id z12mr14615105oom.17.1632088180804; Sun, 19 Sep 2021 14:49:40 -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 q25sm519897oof.33.2021.09.19.14.49.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 14:49:40 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Jagan Teki , Heinrich Schuchardt , Simon Glass , Mike Frysinger Subject: [PATCH v4 0/5] sf: Add documentation and an 'sf mmap' command Date: Sun, 19 Sep 2021 15:49:31 -0600 Message-Id: <20210919214937.3829422-1-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-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 v4: - Split out the 'const' change into a separate patch - Show the 'sf probe' output in the examples 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 (5): command: Use a constant pointer for the help sf: Use const for the stage name 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 | 308 ++++++++++++++++++++++++++++++++++++++++++++ include/command.h | 2 +- 6 files changed, 369 insertions(+), 19 deletions(-) create mode 100644 doc/usage/sf.rst -- 2.33.0.464.g1972c5931b-goog