mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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 <thomas.bourgoin@foss.st.com> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
cbd3977207
commit
d8a0db4536
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user