From: Brian Sune Date: Wed, 8 Oct 2025 20:41:03 +0000 (+0800) Subject: cmd/dma: documentation X-Git-Tag: v2026.01-rc1~20^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38f60e162150cdf94fdeae64d9a88dc7e34bc68f;p=thirdparty%2Fu-boot.git cmd/dma: documentation This explains how to use the new U-Boot command 'dmareset'. Signed-off-by: Brian Sune Reviewed-by: Tom Rini --- diff --git a/doc/usage/cmd/dmareset.rst b/doc/usage/cmd/dmareset.rst new file mode 100644 index 00000000000..ab06979251b --- /dev/null +++ b/doc/usage/cmd/dmareset.rst @@ -0,0 +1,55 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +.. index:: + single: dmareset (command) + +dmareset command +================ + +Synopsis +-------- + +:: + + Usage: dmareset [ ...] + dmareset - Release PL330 DMA channel reset(s) for SoCFPGA + + Usage: + dmareset [ ...] - release reset for one or more DMA channels + +Description +----------- + +Release the DMA channel reset *channel*. + +Parameters +---------- + +channel + DMA channel number + +Example +------- + +Release DMA channel(s):: + + => dmareset 0 + PL330 DMA channel 0 reset released + => dmareset 1 + PL330 DMA channel 1 reset released + => dmareset 0 1 + PL330 DMA channel 0 reset released + PL330 DMA channel 1 reset released + + +Configuration +------------- + +The dmareset command is only available if CONFIG_CMD_C5_PL330_DMA=y in +"Shell scripting commands". + +Return value +------------ + +If the command succeeds, the return value $? is set to 0 (true). +If an error occurs, the return value $? is set to 1 (false). diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 4b0533c8e69..14daa08ca18 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -57,6 +57,7 @@ Shell commands cmd/cpu cmd/cpuid cmd/cyclic + cmd/dmareset cmd/dm cmd/ebtupdate cmd/echo