All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Add a random number generator uclass
@ 2019-12-05  8:42 Sughosh Ganu
  2019-12-05  8:42 ` [PATCH v2 1/7] dm: rng: Add random number generator(rng) uclass Sughosh Ganu
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Sughosh Ganu @ 2019-12-05  8:42 UTC (permalink / raw)
  To: u-boot

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 platforms. A dummy rng driver for sandbox has also been
added, along with the unit test for the rng uclass.

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 (7):
  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

 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 ++++++++++++++++++++++++++++++++++++
 include/dm/uclass-id.h              |   1 +
 include/rng.h                       |  30 +++++++
 test/dm/Makefile                    |   1 +
 test/dm/rng.c                       |  26 ++++++
 18 files changed, 322 insertions(+)
 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 include/rng.h
 create mode 100644 test/dm/rng.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-12-05 10:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05  8:42 [PATCH v2 0/7] Add a random number generator uclass Sughosh Ganu
2019-12-05  8:42 ` [PATCH v2 1/7] dm: rng: Add random number generator(rng) uclass Sughosh Ganu
2019-12-05  8:42 ` [PATCH v2 2/7] clk: stm32mp1: Add a clock entry for RNG1 device Sughosh Ganu
2019-12-05  8:42 ` [PATCH v2 3/7] stm32mp1: rng: Add a driver for random number generator(rng) device Sughosh Ganu
2019-12-05 10:43   ` Patrice CHOTARD
2019-12-05  8:42 ` [PATCH v2 4/7] configs: stm32mp15: Enable " Sughosh Ganu
2019-12-05  8:42 ` [PATCH v2 5/7] sandbox: rng: Add a random number generator(rng) driver Sughosh Ganu
2019-12-05  8:42 ` [PATCH v2 6/7] configs: sandbox: Enable random number generator(rng) device Sughosh Ganu
2019-12-05  8:43 ` [PATCH v2 7/7] test: rng: Add basic test for random number generator(rng) uclass Sughosh Ganu

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.