[edk2,edk2-platforms,2/2] Platform/RaspberryPi3: add RNG driver

Message ID 20190216103422.10907-3-ard.biesheuvel@linaro.org
State New
Headers show
Series
  • Platform/RaspberryPi3: add RNG support
Related show

Commit Message

Ard Biesheuvel Feb. 16, 2019, 10:34 a.m.
Expose the on-SoC RNG via the EFI_RNG_PROTOCOL, so that OS loaders that
need true entropy very early (such as the EFI stub in the arm64 Linux
kernel) can invoke it while still at boot time.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 Platform/RaspberryPi/RPi3/RPi3.dsc | 5 +++++
 Platform/RaspberryPi/RPi3/RPi3.fdf | 5 +++++
 2 files changed, 10 insertions(+)

-- 
2.20.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Patch

diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3/RPi3.dsc
index 86f9d2e5e925..26c8a0d0400f 100644
--- a/Platform/RaspberryPi/RPi3/RPi3.dsc
+++ b/Platform/RaspberryPi/RPi3/RPi3.dsc
@@ -604,6 +604,11 @@  [Components.common]
   NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
   NetworkPkg/TcpDxe/TcpDxe.inf
 
+  #
+  # RNG
+  #
+  Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf
+
   #
   # UEFI application (Shell Embedded Boot Loader)
   #
diff --git a/Platform/RaspberryPi/RPi3/RPi3.fdf b/Platform/RaspberryPi/RPi3/RPi3.fdf
index 7dcbdfbd31a6..22813d453c22 100644
--- a/Platform/RaspberryPi/RPi3/RPi3.fdf
+++ b/Platform/RaspberryPi/RPi3/RPi3.fdf
@@ -278,6 +278,11 @@  [FV.FvMain]
   INF NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
   INF NetworkPkg/TcpDxe/TcpDxe.inf
 
+  #
+  # RNG
+  #
+  INF Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf
+
   #
   # SCSI Bus and Disk Driver
   #