]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
stm32mp: cmd_stm32key: add support of remoteproc firmware encryption key
authorThomas Bourgoin <thomas.bourgoin@foss.st.com>
Wed, 4 Feb 2026 10:20:48 +0000 (11:20 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 24 Feb 2026 16:47:46 +0000 (17:47 +0100)
Add support of RPROC-FW-KEY for STM32MP25, STM32MP23 and STM32MP21.

Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/cmd_stm32key.c

index cd539a626d1fc4bd54382da764f6ba4e8d07c730..7a82152faf35b35bfda4f8f5745223b8bc3e0611 100644 (file)
@@ -93,6 +93,13 @@ const struct stm32key stm32mp21_list[] = {
                .start = 260,
                .size = 8,
        },
+       {
+               .name = "RPROC-FW-ENC-KEY",
+               .desc = "Encryption/Decryption Key for remote processor firmware",
+               .start = 332,
+               .size = 8,
+               .key_format = format2,
+       },
        {
                .name = "EDMK1-128b",
                .desc = "Encryption/Decryption Master 128b Key for FSBLA or M",
@@ -141,6 +148,13 @@ const struct stm32key stm32mp2x_list[] = {
                .start = 260,
                .size = 8,
        },
+       {
+               .name = "RPROC-FW-ENC-KEY",
+               .desc = "Encryption/Decryption Key for remote processor firmware",
+               .start = 336,
+               .size = 8,
+               .key_format = format2,
+       },
        {
                .name = "EDMK1",
                .desc = "Encryption/Decryption Master Key for FSBLA or M",
@@ -284,7 +298,7 @@ static u32 format1(u32 value)
        return __be32_to_cpu(value);
 }
 
-static u32 __maybe_unused format2(u32 value)
+static u32 format2(u32 value)
 {
        return __le32_to_cpu(value);
 }