cmd/dma: fix generic naming, spacing, and Dependencies
PATCH 1/1 cmd/dma: fix generic naming, spacing, and Dependencies
This adds a new U-Boot command 'c5_pl330_dma' for Cyclone V SoCDK boards. It provides access to the Reset Manager's Per2ModRst register to release the reset for ARM PrimeCell PL330 DMA channels. This allows software to initialize and use the PL330 DMA controller properly after reset.
Tested on: Cyclone V SoCDK
--- cmd/Kconfig | 9 +++++++++ cmd/Makefile | 1 + cmd/c5_pl330_dma.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 cmd/c5_pl330_dma.c
cmd/Kconfig +9 -0
@@ -1791,6 +1791,15 @@ endmenu menu "Shell scripting commands" +if TARGET_SOCFPGA_CYCLONE5_SOCDK + +config CMD_C5_PL330_DMA + bool "Release Reset DMA Channels for PL330 Handshake" + help + Provides access to Reset Manager Per2ModRst. Enables DMA + channels for ARM PrimeCell PL330 via reset release. +endif + config CMD_CAT bool "cat" help
cmd/Makefile +1 -0
@@ -42,6 +42,7 @@ obj-$(CONFIG_CMD_BOOTI) += booti.o obj-$(CONFIG_CMD_BTRFS) += btrfs.o obj-$(CONFIG_CMD_BUTTON) += button.o obj-$(CONFIG_CMD_CAT) += cat.o +obj-$(CONFIG_CMD_C5_PL330_DMA) += c5_pl330_dma.o obj-$(CONFIG_CMD_CACHE) += cache.o obj-$(CONFIG_CMD_CBFS) += cbfs.o obj-$(CONFIG_CMD_CEDIT) += cedit.o
cmd/c5_pl330_dma.c new file +50 -0
50 lines not on this page · raw message
Signature · 1 line
2.47.1.windows.1
Quoted 10 lines · briansune
This adds a new U-Boot command '
c5_pl330_dma' for Cyclone V SoCDK boards. It provides access to the Reset Manager's Per2ModRst register to release the reset for ARM PrimeCell PL330 DMA channels. This allows software to initialize and use the PL330 DMA controller properly after reset.Tested-by Sune Brian <[email protected]>Tested on: Cyclone V SoCDK
Signed-off-by briansune <[email protected]>
This is better, yes. The subject should be fixed, your real name used in the Signed-off-by (and you don't give yourself a Tested-by for what you wrote). Also:
Quoted 13 lines
--- cmd/Kconfig | 9 +++++++++ cmd/Makefile | 1 + cmd/c5_pl330_dma.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 cmd/c5_pl330_dma.ccmd/Kconfig +0
-0@@ -1791,6 +1791,15 @@ endmenu
cmd/Kconfig endmenu · line 1801
Quoted 10 lines
cmd/Kconfig +8
-0menu "Shell scripting commands" +if TARGET_SOCFPGA_CYCLONE5_SOCDK + +config CMD_C5_PL330_DMA + bool "Release Reset DMA Channels for PL330 Handshake" + help + Provides access to Reset Manager Per2ModRst. Enables DMA + channels for ARM PrimeCell PL330 via reset release. +endif
This should just be "depends on TARGET_SOCFPGA_CYCLONE5_SOCDK" if it's that specific and not slightly more usable on other SOCFPGA chipsets.
[snip]
cmd/Kconfig endmenu · line 1803
Quoted 2 lines
cmd/Kconfig +2
-0+static int do_dmareset(struct cmd_tbl *cmdtp, int flag, int argc, + char * const argv[])
This spacing is still wrong and what checkpatch.pl notes. Thanks!
Signature · 1 line
Tom