Skip to content
Commit 87ab234c authored by Sughosh Ganu's avatar Sughosh Ganu Committed by Ilias Apalodimas
Browse files

cmd: rng: Add support for selecting RNG device



The 'rng' u-boot command is used for printing a select number of
random bytes on the console. Currently, the RNG device from which the
random bytes are read is fixed. However, a platform can have multiple
RNG devices, one example being qemu, which has a virtio RNG device and
the RNG pseudo device through the TPM chip.

Extend the 'rng' command so that the user can provide the RNG device
number from which the random bytes are to be read. This will be the
device index under the RNG uclass.

Signed-off-by: default avatarSughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent aedd4513
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment