[PATCH 0/5] HWRNG: add support for HW Random Number Generators

Steffen Trumtrar s.trumtrar at pengutronix.de
Fri Feb 26 04:04:42 PST 2016


Hi!

This series adds support for registering a /dev/hwrng like in a
linux system.

Tested with the i.MX25 RNG, that is also added.

Regards,
Steffen

Steffen Trumtrar (5):
  drivers: add simple hw_random implementation
  lib: random: get_random_bytes from HWRNG if present
  ARM: imx25: clk: add rngb clock
  ARM: i.MX25: dtsi: add rng node
  hw_random: add driver for Freescale RNGC

 arch/arm/dts/imx25.dtsi       |  11 ++
 arch/arm/mach-imx/clk-imx25.c |   5 +-
 drivers/Kconfig               |   1 +
 drivers/Makefile              |   1 +
 drivers/hw_random/Kconfig     |  17 +++
 drivers/hw_random/Makefile    |   2 +
 drivers/hw_random/core.c      | 110 +++++++++++++++
 drivers/hw_random/mxc-rngc.c  | 311 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/hw_random.h     |  44 ++++++
 lib/random.c                  |  19 +++
 10 files changed, 519 insertions(+), 2 deletions(-)
 create mode 100644 drivers/hw_random/Kconfig
 create mode 100644 drivers/hw_random/Makefile
 create mode 100644 drivers/hw_random/core.c
 create mode 100644 drivers/hw_random/mxc-rngc.c
 create mode 100644 include/linux/hw_random.h

-- 
2.7.0




More information about the barebox mailing list