[PATCH edk2-platforms v1 2/2] Platform/ARM/Juno: Add RNG support using FW-TRNG interface


Sami Mujawar
 

TF-A for Juno has been updated to implement the Arm FW-TRNG interface
that can be used to access entropy from the TRNG hardware on Juno.

Similarly, the EFI_RNG_PROTOCOL in RngDxe has been updated to add
EFI_RNG_ALGORITHM_RAW support using the FW-TRNG interface.

Therefore, enable the EFI_RNG_PROTOCOL for Juno platform.

Signed-off-by: Sami Mujawar <sami.mujawar@...>
---
Platform/ARM/JunoPkg/ArmJuno.dsc | 10 +++++++++-
Platform/ARM/JunoPkg/ArmJuno.fdf | 7 ++++++-
2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Platform/ARM/JunoPkg/ArmJuno.dsc b/Platform/ARM/JunoPkg/ArmJuno.dsc
index fdfc8cd9e20f57e4d56fc7e2712bdc9afbc7148e..47a3fab333cdc3896df789407267e2fa81cf8055 100644
--- a/Platform/ARM/JunoPkg/ArmJuno.dsc
+++ b/Platform/ARM/JunoPkg/ArmJuno.dsc
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2013-2018, ARM Limited. All rights reserved.
+# Copyright (c) 2013-2021, ARM Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -55,6 +55,9 @@ [LibraryClasses.common]
LcdHwLib|ArmPlatformPkg/Library/HdLcd/HdLcd.inf
!endif

+ TrngLib|ArmPkg/Library/ArmFwTrngLib/ArmFwTrngLib.inf
+ ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
+
[LibraryClasses.common.SEC]
PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
@@ -383,6 +386,11 @@ [Components.common]
# SCMI Driver
ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf

+ #
+ # Rng Support
+ #
+ SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
+
[Components.AARCH64]
#
# EBC
diff --git a/Platform/ARM/JunoPkg/ArmJuno.fdf b/Platform/ARM/JunoPkg/ArmJuno.fdf
index f70d30c6a9d9d6eb73087dc673f0c9287d23d666..f4b38da8f9e634743395fd6a2a8d30360b2710a7 100644
--- a/Platform/ARM/JunoPkg/ArmJuno.fdf
+++ b/Platform/ARM/JunoPkg/ArmJuno.fdf
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2013-2019, Arm Limited. All rights reserved.<BR>
+# Copyright (c) 2013-2021, Arm Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -237,6 +237,11 @@ [FV.FvMain]
# SCMI Driver
INF ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf

+ #
+ # Rng Support
+ #
+ INF SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
+
!if $(ARCH) == AARCH64
#
# EBC
--
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'

Join devel@edk2.groups.io to automatically receive all group messages.