Skip to contentSkip to conversation

crypto: aspeed: Tighten some dependencies for the aspeed platforms

PATCH In review Tom Rini 1 participant 2 messages Jul 2, 2025 – Jul 10, 2025

Subsystems (3)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 crypto: aspeed: Tighten some dependencies for the aspeed platforms

Some of the aspeed platform drivers cannot build without platform specific headers being available. Express those requirements in Kconfig as well.

---
 drivers/crypto/aspeed/Kconfig | 4 ++++
 drivers/crypto/hash/Kconfig   | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/crypto/aspeed/Kconfig +4 -0
index 6efcd7da7382..401225b8528d 100644
@@ -1,3 +1,5 @@
+if ARCH_ASPEED
+
 config ASPEED_HACE
 	bool "ASPEED Hash and Crypto Engine"
 	depends on DM_HASH
@@ -38,3 +40,5 @@ config ASPEED_CPTRA_ECDSA
 
 	  Enabling this allows the use of ECDSA384 signature verification in hardware.
 	  Note that only ECDSA384 is supported by Caliptra.
+
+endif
drivers/crypto/hash/Kconfig +1 -1
index aa355c44be85..72b955ac791a 100644
@@ -18,7 +18,7 @@ config HASH_SOFTWARE
 
 config HASH_ASPEED
 	bool "Enable Hash with ASPEED hash accelerator"
-	depends on DM_HASH
+	depends on DM_HASH && ARCH_ASPEED
 	select ASPEED_HACE
 	help
 	  Enable this to support HW-assisted hashing operations using ASPEED Hash
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

Some of the aspeed platform drivers cannot build without platform specific headers being available. Express those requirements in Kconfig as well.

Applied to u-boot/master, thanks!

[1/1] crypto: aspeed: Tighten some dependencies for the aspeed platforms

      commit: dbe1fa4d260fffd094d936c27d17bf4910bf2472
Signature · 1 line
Tom