cmd/dma: documentation
PATCH v2 1/1 cmd/dma: documentation
This explains how
to use the new U-Boot command 'dmareset'.
Signed-off-by Brian Sune <[email protected]>
--- doc/usage/cmd/dmareset.rst | 55 ++++++++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + 2 files changed, 56 insertions(+) create mode 100644 doc/usage/cmd/dmareset.rst
doc/usage/cmd/dmareset.rst new file +55 -0
@@ -0,0 +1,55 @@ +.. SPDX-License-Identifier: GPL-2.0+: + +.. 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 + +dmareset channel +---------------- + +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 succeds the return PL330 DMA channel $? reset released. +If an error occurs, the return Error: channel must be 0-7.
doc/usage/index.rst +1 -0
@@ -57,6 +57,7 @@ Shell commands cmd/cpu cmd/cpuid cmd/cyclic + cmd/dmareset cmd/dm cmd/ebtupdate cmd/echo
Signature · 1 line
2.47.1.windows.1
Quoted 4 lines · Brian Sune
This explains how
to use the new U-Boot command 'dmareset'.Signed-off-by Brian Sune <[email protected]>
I built this locally and no problems.
Reviewed-by Tom Rini <[email protected]>
Signature · 1 line
Tom
Tom Rini <[email protected]> 於 2025年10月9日 週四 上午4:50寫道:
Quoted 4 lines
Reviewed-by Tom Rini <[email protected]>--
Tom
Aaaaaa, no idea why my env no good.
But at least you checked.
Thank you.
Quoted 3 lines
Aaaaaa, no idea why my env no good.
But at least you checked.
Thank you.
I debugged the caused.
The previous warnings are all introduced due to disk access right. And possible share driver thing that block some tools to run properly. I can also built in in local trunk.
Learnt s.t. =]