sandbox: dtsi: add rng
authorVincent Stehlé <vincent.stehle@arm.com>
Wed, 10 Mar 2021 14:33:30 +0000 (15:33 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 00:59:36 +0000 (13:59 +1300)
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>
arch/sandbox/dts/sandbox.dtsi

index 69d7d30..31db50d 100644 (file)
                compatible = "sandbox,reset";
        };
 
+       rng {
+               compatible = "sandbox,sandbox-rng";
+       };
+
        sound {
                compatible = "sandbox,sound";
                cpu {