Skip to contentSkip to conversation

fix PL330 CMD supported target

PATCH In review Brian Sune 2 participants 6 messages Dec 22, 2025

lore
Share & tools
lore

Brian Sune

author
#0 lore raw

PATCH 1/1 fix PL330 CMD supported target

The config is wrongly written, result
in only support socdk board.

Fixes 92dcb3ad5d98 ("cmd/dma: implement dmareset command")
---
 cmd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/Kconfig +1 -1
index 5b9c13d85e7..5c611fb3016 100644
@@ -1849,7 +1849,7 @@ menu "Shell scripting commands"
 
 config CMD_C5_PL330_DMA
 	bool "Release Reset DMA Channels for PL330 Handshake"
-	depends on TARGET_SOCFPGA_CYCLONE5_SOCDK
+	depends on TARGET_SOCFPGA_CYCLONE5
 	help
 	  Provides access to Reset Manager Per2ModRst. Enables DMA
 	  channels for ARM PrimeCell PL330 via reset release.
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Brian Sune

The config is wrongly written, result
in only support socdk board.

Fixes 92dcb3ad5d98 ("cmd/dma: implement dmareset command")
---
 cmd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/Kconfig +0 -0
index 5b9c13d85e7..5c611fb3016 100644

cmd/Kconfig menu "Shell scripting commands" · line 1855

Quoted 8 lines
cmd/Kconfig +1 -1
@@ -1849,7 +1849,7 @@ menu "Shell scripting commands"
 
 config CMD_C5_PL330_DMA
 	bool "Release Reset DMA Channels for PL330 Handshake"
-	depends on TARGET_SOCFPGA_CYCLONE5_SOCDK
+	depends on TARGET_SOCFPGA_CYCLONE5
 	help
 	  Provides access to Reset Manager Per2ModRst. Enables DMA
 	  channels for ARM PrimeCell PL330 via reset release.

Now that I see how mach-socfpga is abusing the TARGET namespace, I get why this patch is needed, so:

But really TARGET_SOCFPGA_CYCLONE5 should be "SOCFPGA_CYCLONE5" or something as it's not a board to build for.

Signature · 1 line
Tom
author
#2 lore raw

Hi Tom,

Quoted 29 lines · Tom Rini
Quoted 14 lines · Brian Sune

The config is wrongly written, result
in only support socdk board.

Fixes 92dcb3ad5d98 ("cmd/dma: implement dmareset command")
---
 cmd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/Kconfig +0 -0
index 5b9c13d85e7..5c611fb3016 100644

cmd/Kconfig menu "Shell scripting commands" · line 1855

Quoted 8 lines
cmd/Kconfig +1 -1
@@ -1849,7 +1849,7 @@ menu "Shell scripting commands"
 
 config CMD_C5_PL330_DMA
      bool "Release Reset DMA Channels for PL330 Handshake"
-     depends on TARGET_SOCFPGA_CYCLONE5_SOCDK
+     depends on TARGET_SOCFPGA_CYCLONE5
      help
        Provides access to Reset Manager Per2ModRst. Enables DMA
        channels for ARM PrimeCell PL330 via reset release.

Now that I see how mach-socfpga is abusing the TARGET namespace, I get why this patch is needed, so:

Quoted 4 lines

But really TARGET_SOCFPGA_CYCLONE5 should be "SOCFPGA_CYCLONE5" or something as it's not a board to build for.

How to properly improve or fix these TARGET things?

Thanks,
Brian

Quoted 3 lines

--
Tom

#3 lore raw
Quoted 32 lines · Sune Brian

Hi Tom,

Quoted 29 lines · Tom Rini
Quoted 14 lines · Brian Sune

The config is wrongly written, result
in only support socdk board.

Fixes 92dcb3ad5d98 ("cmd/dma: implement dmareset command")
---
 cmd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/Kconfig +0 -0
index 5b9c13d85e7..5c611fb3016 100644

cmd/Kconfig menu "Shell scripting commands" · line 1855

Quoted 8 lines
cmd/Kconfig +1 -1
@@ -1849,7 +1849,7 @@ menu "Shell scripting commands"
 
 config CMD_C5_PL330_DMA
      bool "Release Reset DMA Channels for PL330 Handshake"
-     depends on TARGET_SOCFPGA_CYCLONE5_SOCDK
+     depends on TARGET_SOCFPGA_CYCLONE5
      help
        Provides access to Reset Manager Per2ModRst. Enables DMA
        channels for ARM PrimeCell PL330 via reset release.

Now that I see how mach-socfpga is abusing the TARGET namespace, I get why this patch is needed, so:

Quoted 6 lines
Quoted 4 lines

But really TARGET_SOCFPGA_CYCLONE5 should be "SOCFPGA_CYCLONE5" or something as it's not a board to build for.

How to properly improve or fix these TARGET things?

Well, the TARGET namespace is for machines / boards / what-have-you that we're building U-Boot for. Symbols that designate architecture or SoC generally just say their name, hence my thinking "SOCFPGA_CYCLONE5" for what to me looks like the architecture family of Cyclone V and the things common to all platforms. And TARGET_SOCFPGA_GEN5 should become SOCFPGA_GEN5, or maybe omitted entirely (and it all goes under SOCFPGA_CYCLONE5), I don't know the parts well enough to say what makes sense there.

Signature · 1 line
Tom
author
#4 lore raw

Hi Tom,

Quoted 39 lines · Tom Rini
Quoted 37 lines · Sune Brian

Hi Tom,

Quoted 33 lines · Tom Rini
Quoted 14 lines · Brian Sune

The config is wrongly written, result
in only support socdk board.

Fixes 92dcb3ad5d98 ("cmd/dma: implement dmareset command")
---
 cmd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/Kconfig +0 -0
index 5b9c13d85e7..5c611fb3016 100644

cmd/Kconfig menu "Shell scripting commands" · line 1855

Quoted 8 lines
cmd/Kconfig +1 -1
@@ -1849,7 +1849,7 @@ menu "Shell scripting commands"
 
 config CMD_C5_PL330_DMA
      bool "Release Reset DMA Channels for PL330 Handshake"
-     depends on TARGET_SOCFPGA_CYCLONE5_SOCDK
+     depends on TARGET_SOCFPGA_CYCLONE5
      help
        Provides access to Reset Manager Per2ModRst. Enables DMA
        channels for ARM PrimeCell PL330 via reset release.

Now that I see how mach-socfpga is abusing the TARGET namespace, I get why this patch is needed, so:

But really TARGET_SOCFPGA_CYCLONE5 should be "SOCFPGA_CYCLONE5" or something as it's not a board to build for.

Quoted 7 lines
Quoted 1 line

How to properly improve or fix these TARGET things?

Well, the TARGET namespace is for machines / boards / what-have-you that we're building U-Boot for. Symbols that designate architecture or SoC generally just say their name, hence my thinking "SOCFPGA_CYCLONE5" for what to me looks like the architecture family of Cyclone V and the things common to all platforms. And TARGET_SOCFPGA_GEN5 should become

That is completely correct; it should be grouped as GEN5 - Cyclone V + Arria 5. But I had no power to fully turn those from this situation.

Quoted 6 lines

SOCFPGA_GEN5, or maybe omitted entirely (and it all goes under SOCFPGA_CYCLONE5), I don't know the parts well enough to say what makes sense there.

--
Tom

Brian

#5 lore raw
In reply to Brian Sune
Quoted 4 lines · Brian Sune

The config is wrongly written, result
in only support socdk board.

Applied to u-boot/master, thanks!

[1/1] fix PL330 CMD supported target

      commit: f26db83ca964e81d7f2b3c2c984afdb8bb104678
Signature · 1 line
Tom