diff options
| author | Brian Sune <[email protected]> | 2025-10-09 04:41:03 +0800 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2025-10-18 11:48:58 +0200 |
| commit | 38f60e162150cdf94fdeae64d9a88dc7e34bc68f (patch) | |
| tree | eb12e4690f079f83c25af6faa951399232e9adb6 /doc/usage | |
| parent | 163f9d04fbd19cd1c39f2adad92e770b0a94a3a4 (diff) | |
cmd/dma: documentation
This explains how
to use the new U-Boot command 'dmareset'.
Signed-off-by: Brian Sune <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'doc/usage')
| -rw-r--r-- | doc/usage/cmd/dmareset.rst | 55 | ||||
| -rw-r--r-- | doc/usage/index.rst | 1 |
2 files changed, 56 insertions, 0 deletions
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 <channel 0-7> [<channel 0-7> ...] + dmareset - Release PL330 DMA channel reset(s) for SoCFPGA + + Usage: + dmareset <channel 0-7> [<channel 0-7> ...] - 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 |
