From: Sughosh Ganu <sughosh.ganu@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH v3 0/8] Add a random number generator uclass
Date: Fri, 13 Dec 2019 12:44:19 +0530 [thread overview]
Message-ID: <1576221267-5948-1-git-send-email-sughosh.ganu@linaro.org> (raw)
Add a random number generator(rng) uclass to facilitate adding drivers
for rng devices. I plan to add an implementation of the
EFI_RNG_PROTOCOL, which would get the random number from the rng
uclass -- the protocol would be used by the efi stub for getting a
random number for the kaslr feature.
The patch series also adds a driver for the rng device found on the
stm32mp1 and qemu platforms. A dummy rng driver for sandbox has also
been added, along with the unit test for the rng uclass.
Changes since V2:
* Add a driver for the virtio-rng device on qemu platform
Changes since V1:
* Add a SPDX header in rng.h
* Change the UCLASS_DRIVER name from hwrng to rng, consistent with the
rest of the naming convention
* Handle review comment from Patrice Chotard
Sughosh Ganu (8):
dm: rng: Add random number generator(rng) uclass
clk: stm32mp1: Add a clock entry for RNG1 device
stm32mp1: rng: Add a driver for random number generator(rng) device
configs: stm32mp15: Enable random number generator(rng) device
sandbox: rng: Add a random number generator(rng) driver
configs: sandbox: Enable random number generator(rng) device
test: rng: Add basic test for random number generator(rng) uclass
virtio: rng: Add a random number generator(rng) driver
arch/sandbox/dts/test.dts | 4 +
configs/sandbox64_defconfig | 2 +
configs/sandbox_defconfig | 2 +
configs/stm32mp15_basic_defconfig | 2 +
configs/stm32mp15_optee_defconfig | 2 +
configs/stm32mp15_trusted_defconfig | 2 +
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/clk/clk_stm32mp1.c | 1 +
drivers/rng/Kconfig | 21 +++++
drivers/rng/Makefile | 8 ++
drivers/rng/rng-uclass.c | 23 ++++++
drivers/rng/sandbox_rng.c | 36 ++++++++
drivers/rng/stm32mp1_rng.c | 158 ++++++++++++++++++++++++++++++++++++
drivers/virtio/Kconfig | 6 ++
drivers/virtio/Makefile | 1 +
drivers/virtio/virtio-uclass.c | 1 +
drivers/virtio/virtio_rng.c | 72 ++++++++++++++++
include/dm/uclass-id.h | 1 +
include/rng.h | 30 +++++++
include/virtio.h | 4 +-
test/dm/Makefile | 1 +
test/dm/rng.c | 26 ++++++
23 files changed, 405 insertions(+), 1 deletion(-)
create mode 100644 drivers/rng/Kconfig
create mode 100644 drivers/rng/Makefile
create mode 100644 drivers/rng/rng-uclass.c
create mode 100644 drivers/rng/sandbox_rng.c
create mode 100644 drivers/rng/stm32mp1_rng.c
create mode 100644 drivers/virtio/virtio_rng.c
create mode 100644 include/rng.h
create mode 100644 test/dm/rng.c
--
2.7.4
next reply other threads:[~2019-12-13 7:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-13 7:14 Sughosh Ganu [this message]
2019-12-13 7:14 ` [PATCH v3 1/8] dm: rng: Add random number generator(rng) uclass Sughosh Ganu
2019-12-13 12:21 ` Ilias Apalodimas
2019-12-16 11:59 ` Patrick DELAUNAY
2019-12-16 12:13 ` Patrick DELAUNAY
2019-12-16 18:55 ` Sughosh Ganu
2019-12-13 7:14 ` [PATCH v3 2/8] clk: stm32mp1: Add a clock entry for RNG1 device Sughosh Ganu
2019-12-16 8:55 ` Patrick DELAUNAY
2019-12-13 7:14 ` [PATCH v3 3/8] stm32mp1: rng: Add a driver for random number generator(rng) device Sughosh Ganu
2019-12-16 11:58 ` Patrick DELAUNAY
2019-12-13 7:14 ` [PATCH v3 4/8] configs: stm32mp15: Enable " Sughosh Ganu
2019-12-16 12:00 ` Patrick DELAUNAY
2019-12-13 7:14 ` [PATCH v3 5/8] sandbox: rng: Add a random number generator(rng) driver Sughosh Ganu
2019-12-16 12:30 ` Patrick DELAUNAY
2019-12-16 18:59 ` Sughosh Ganu
2019-12-13 7:14 ` [PATCH v3 6/8] configs: sandbox: Enable random number generator(rng) device Sughosh Ganu
2019-12-16 12:07 ` Patrick DELAUNAY
2019-12-13 7:14 ` [PATCH v3 7/8] test: rng: Add basic test for random number generator(rng) uclass Sughosh Ganu
2019-12-16 12:42 ` Patrick DELAUNAY
2019-12-16 19:01 ` Sughosh Ganu
2019-12-13 7:14 ` [PATCH v3 8/8] virtio: rng: Add a random number generator(rng) driver Sughosh Ganu
2019-12-13 12:21 ` Ilias Apalodimas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1576221267-5948-1-git-send-email-sughosh.ganu@linaro.org \
--to=sughosh.ganu@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.