summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorVincent Stehlé <vincent.stehle@arm.com>2021-03-10 17:33:30 +0300
committerSimon Glass <sjg@chromium.org>2021-03-27 03:59:36 +0300
commit619a81516d3c05a55f0ce5463dd38993c6e9adc2 (patch)
treecdff986f06bebdac3ce79a12bed718edc614ebcf /arch/sandbox
parent9c7335e4e68355a96bd5a411b2a5f85866823c58 (diff)
downloadu-boot-619a81516d3c05a55f0ce5463dd38993c6e9adc2.tar.xz
sandbox: dtsi: add rng
Having an rng in the sandbox is useful not only for tests but also for e.g. UEFI. Therefore, copy the rng node from test.dts to sandbox.dtsi. In the case of UEFI, it can then be verified with `efidebug dh' that a "Random Number Generator" protocol is indeed present. This also fixes the following `bootefi' error: Missing RNG device for EFI_RNG_PROTOCOL Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com> Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/sandbox.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index 69d7d3019e..31db50db35 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -200,6 +200,10 @@
compatible = "sandbox,reset";
};
+ rng {
+ compatible = "sandbox,sandbox-rng";
+ };
+
sound {
compatible = "sandbox,sound";
cpu {