[PATCH 2/9] crypto: aes: allow DM AES in SPL

James Hilliard james.hilliard1 at gmail.com
Thu Jul 2 03:46:52 CEST 2026


The AES uclass Makefile is already keyed by CONFIG_$(PHASE_)DM_AES,
but there is no SPL_DM_AES symbol to build it for SPL.

Add the SPL variant so SPL code can use UCLASS_AES providers, for example
when decrypting FIT images before loading U-Boot proper.

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
 drivers/crypto/aes/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/crypto/aes/Kconfig b/drivers/crypto/aes/Kconfig
index 7e1b1b2875d..19988b05271 100644
--- a/drivers/crypto/aes/Kconfig
+++ b/drivers/crypto/aes/Kconfig
@@ -4,6 +4,13 @@ config DM_AES
 	help
 	  If you want to use driver model for AES crypto operations, say Y.
 
+config SPL_DM_AES
+	bool "Enable Driver Model for AES crypto operations in SPL"
+	depends on SPL_DM
+	help
+	  If you want to use driver model for AES crypto operations in SPL,
+	  say Y.
+
 config AES_SOFTWARE
 	bool "Enable driver for AES in software"
 	depends on DM_AES && AES
-- 
2.53.0



More information about the U-Boot mailing list