diff options
| author | Thomas Bourgoin <[email protected]> | 2026-02-04 11:20:48 +0100 |
|---|---|---|
| committer | Patrice Chotard <[email protected]> | 2026-02-24 17:47:46 +0100 |
| commit | d8a0db45367acd94c022f2d1380857e98959c7b2 (patch) | |
| tree | 7dacf49998bb0aef72b79a4f687c52fab6ca100e | |
| parent | cbd3977207f3844ce640f57e31eca73a1c8ddae0 (diff) | |
stm32mp: cmd_stm32key: add support of remoteproc firmware encryption key
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]>
Reviewed-by: Patrick Delaunay <[email protected]>
| -rw-r--r-- | arch/arm/mach-stm32mp/cmd_stm32key.c | 16 |
1 files changed, 15 insertions, 1 deletions
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 @@ -94,6 +94,13 @@ const struct stm32key stm32mp21_list[] = { .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", .start = 356, @@ -142,6 +149,13 @@ const struct stm32key stm32mp2x_list[] = { .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", .start = 364, @@ -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); } |
