From: Thomas Bourgoin <[email protected]>

Add support of RPROC-FW-KEY for STM32MP25, STM32MP23 and STM32MP21.

Signed-off-by: Thomas Bourgoin <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
---
 arch/arm/mach-stm32mp/cmd_stm32key.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-stm32mp/cmd_stm32key.c 
b/arch/arm/mach-stm32mp/cmd_stm32key.c
index cd539a626d1..7a82152faf3 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32key.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32key.c
@@ -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);
 }

-- 
2.43.0

Reply via email to