From patchwork Fri Mar 4 13:34:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 548116 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp22225mag; Fri, 4 Mar 2022 05:36:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRUiRY+Hgvo41kT9mhxrEMl9gdIed105I2Uowkh0zPs+hu0LZEBj/H9naNKsGjLa6tr+pH X-Received: by 2002:a05:6402:55:b0:413:2822:2928 with SMTP id f21-20020a056402005500b0041328222928mr38807503edu.174.1646400979248; Fri, 04 Mar 2022 05:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646400979; cv=none; d=google.com; s=arc-20160816; b=VIly6G04hj3s8aiaXZQcgjzte+VB+drrCiAAaz7JeNKlsg+BQaT6Z+iyAzBbJ+0/TY DuZdfFCpQ6h8UkSKxTXKKfEIeKJgTOBeaIA7swJjrVTFW9R6s+gS87ENbVqclARlJMKk IwLDb/OLBVyh1PfM5MZ0wo14uKT8DDCDAC8Za1RtKjJa8pP6U7Xm8to3UBfqrTKBpyDY aIPYINSe2CY+uum0y3XOtcAETshweS3fUuitlxdSmUC+odbfmQHgkg59SqH2aUnbsUHt bMNYl8UZdxxeic2SjGZVfm9zsJ7ADjYJdm3TGo6vkrpetknPVCSgcwYtaFV8OZaFC9RG sFtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=M5jLkL1REBj0BUO6BR9istMx4IxNzzuk+GY+eT+vqoU=; b=MGGpcC3FbXFDBFs0ciyH56E9uJDXEMIuuh+d7VuwShfzFqbPtNmqMyItShnnoG8kLh S2CFcIRInyq8OoY+mNtN+nF0v1ARIp6Puko1eORg3v7m0Hlrp8WVq2sx2IO0y0yRXsx5 51aBc43a4LxXTBRa2sPdUoR/HZrsv3Lj0CSDqrR/x6KFDFxeb4KzFVs3QOs2Zqx4Okzg AGL79VldN6HT7I9CZiYBiC4Dt9ce6tMISxUYLuLnvKTUG2qg0ryhf9U5PPS+wDN92BH4 UtsHv/54ICOZtVOUjKLkHhWXRSLLg3X/tBmixIfKud/ylfVQDCBANoj6HwkbaHHYg50c pI1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id gb21-20020a170907961500b006d8fa778e5asi3577295ejc.149.2022.03.04.05.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 05:36:19 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 67CB883D0B; Fri, 4 Mar 2022 14:35:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 7F2EE83CBF; Fri, 4 Mar 2022 14:35:22 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id B1BCF83D45 for ; Fri, 4 Mar 2022 14:35:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 180621396; Fri, 4 Mar 2022 05:35:15 -0800 (PST) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6C9113F70D; Fri, 4 Mar 2022 05:35:13 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Sughosh Ganu Subject: [PATCH v3 7/8] doc: rng: Add documentation for the rng command Date: Fri, 4 Mar 2022 19:04:28 +0530 Message-Id: <20220304133429.1047752-8-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220304133429.1047752-1-sughosh.ganu@linaro.org> References: <20220304133429.1047752-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Add a usage document for the 'rng' u-boot command. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since V2: None doc/usage/index.rst | 1 + doc/usage/rng.rst | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 doc/usage/rng.rst diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 0aacf531b2..5712a924ae 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -45,6 +45,7 @@ Shell commands pstore qfw reset + rng sbi sf scp03 diff --git a/doc/usage/rng.rst b/doc/usage/rng.rst new file mode 100644 index 0000000000..87758f7d66 --- /dev/null +++ b/doc/usage/rng.rst @@ -0,0 +1,25 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +rng command +=========== + +Synopsis +-------- + +:: + + rng [devnum [n]] + +Description +----------- + +The *rng* command reads the random number generator(RNG) device and +prints the random bytes read on the console. + +devnum + The RNG device from which the random bytes are to be + read. Defaults to 0. + +n + Number of random bytes to be read and displayed on the + console. Default value is 0x40.