2019-05-19 15:07:45 +03:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2006-06-26 11:24:59 +04:00
|
|
|
#
|
|
|
|
# Hardware Random Number Generator (RNG) configuration
|
|
|
|
#
|
|
|
|
|
2014-04-08 16:33:04 +04:00
|
|
|
menuconfig HW_RANDOM
|
2006-12-07 07:38:20 +03:00
|
|
|
tristate "Hardware Random Number Generator Core support"
|
|
|
|
default m
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2006-06-26 11:24:59 +04:00
|
|
|
Hardware Random Number Generator Core infrastructure.
|
|
|
|
|
2006-12-07 07:38:20 +03:00
|
|
|
To compile this driver as a module, choose M here: the
|
2008-03-24 22:29:51 +03:00
|
|
|
module will be called rng-core. This provides a device
|
2015-09-17 16:45:52 +03:00
|
|
|
that's usually called /dev/hwrng, and which exposes one
|
2008-03-24 22:29:51 +03:00
|
|
|
of possibly several hardware random number generators.
|
|
|
|
|
2017-07-21 20:25:56 +03:00
|
|
|
These hardware random number generators do feed into the
|
|
|
|
kernel's random number generator entropy pool.
|
2006-12-07 07:38:20 +03:00
|
|
|
|
2006-06-26 11:24:59 +04:00
|
|
|
If unsure, say Y.
|
2006-06-26 11:24:59 +04:00
|
|
|
|
2014-04-08 16:33:04 +04:00
|
|
|
if HW_RANDOM
|
|
|
|
|
hwrng: timeriomem - New driver
Some hardware platforms, the TS-7800[1] is one for example, can
supply the kernel with an entropy source, albeit a slow one for
TS-7800 users, by just reading a particular IO address. This
source must not be read above a certain rate otherwise the quality
suffers.
The driver is then hooked into by calling
platform_device_(register|add|del) passing a structure similar to:
------
static struct timeriomem_rng_data ts78xx_ts_rng_data = {
.address = (u32 *__iomem) TS_RNG,
.period = 1000000, /* one second */
};
static struct platform_device ts78xx_ts_rng_device = {
.name = "timeriomem_rng",
.id = -1,
.dev = {
.platform_data = &ts78xx_ts_rng_data,
},
.num_resources = 0,
};
------
[1] http://www.embeddedarm.com/products/board-detail.php?product=TS-7800
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2009-02-22 07:03:56 +03:00
|
|
|
config HW_RANDOM_TIMERIOMEM
|
|
|
|
tristate "Timer IOMEM HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on HAS_IOMEM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
hwrng: timeriomem - New driver
Some hardware platforms, the TS-7800[1] is one for example, can
supply the kernel with an entropy source, albeit a slow one for
TS-7800 users, by just reading a particular IO address. This
source must not be read above a certain rate otherwise the quality
suffers.
The driver is then hooked into by calling
platform_device_(register|add|del) passing a structure similar to:
------
static struct timeriomem_rng_data ts78xx_ts_rng_data = {
.address = (u32 *__iomem) TS_RNG,
.period = 1000000, /* one second */
};
static struct platform_device ts78xx_ts_rng_device = {
.name = "timeriomem_rng",
.id = -1,
.dev = {
.platform_data = &ts78xx_ts_rng_data,
},
.num_resources = 0,
};
------
[1] http://www.embeddedarm.com/products/board-detail.php?product=TS-7800
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2009-02-22 07:03:56 +03:00
|
|
|
This driver provides kernel-side support for a generic Random
|
|
|
|
Number Generator used by reading a 'dumb' iomem address that
|
|
|
|
is to be read no faster than, for example, once a second;
|
|
|
|
the default FPGA bitstream on the TS-7800 has such functionality.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called timeriomem-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2006-06-26 11:24:59 +04:00
|
|
|
config HW_RANDOM_INTEL
|
|
|
|
tristate "Intel HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on (X86 || IA64) && PCI
|
2006-12-07 07:38:20 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2006-06-26 11:24:59 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Intel i8xx-based motherboards.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called intel-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2006-06-26 11:25:00 +04:00
|
|
|
|
|
|
|
config HW_RANDOM_AMD
|
|
|
|
tristate "AMD HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on (X86 || PPC_MAPLE) && PCI
|
2006-12-07 07:38:20 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2006-06-26 11:25:00 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on AMD 76x-based motherboards.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called amd-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2006-06-26 11:25:01 +04:00
|
|
|
|
2011-10-06 21:56:30 +04:00
|
|
|
config HW_RANDOM_ATMEL
|
|
|
|
tristate "Atmel Random Number Generator support"
|
2014-11-20 12:43:23 +03:00
|
|
|
depends on ARCH_AT91 && HAVE_CLK && OF
|
2014-04-08 16:36:37 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2011-10-06 21:56:30 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Atmel AT91 devices.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called atmel-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2020-06-01 17:27:40 +03:00
|
|
|
config HW_RANDOM_BA431
|
|
|
|
tristate "Silex Insight BA431 Random Number Generator support"
|
2020-06-30 07:20:37 +03:00
|
|
|
depends on HAS_IOMEM
|
2020-06-01 17:27:40 +03:00
|
|
|
help
|
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware based on Silex Insight BA431 IP.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called ba431-rng.
|
|
|
|
|
2013-03-28 10:19:38 +04:00
|
|
|
config HW_RANDOM_BCM2835
|
2017-11-08 03:44:48 +03:00
|
|
|
tristate "Broadcom BCM2835/BCM63xx Random Number Generator support"
|
|
|
|
depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \
|
|
|
|
ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC
|
2013-03-28 10:19:38 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2013-03-28 10:19:38 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
2017-11-08 03:44:48 +03:00
|
|
|
Generator hardware found on the Broadcom BCM2835 and BCM63xx SoCs.
|
2013-03-28 10:19:38 +04:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called bcm2835-rng
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2012-07-24 18:33:11 +04:00
|
|
|
|
2015-03-04 23:42:14 +03:00
|
|
|
config HW_RANDOM_IPROC_RNG200
|
2017-11-02 02:20:06 +03:00
|
|
|
tristate "Broadcom iProc/STB RNG200 support"
|
2019-11-20 06:16:20 +03:00
|
|
|
depends on ARCH_BCM_IPROC || ARCH_BCM2835 || ARCH_BRCMSTB
|
2015-03-04 23:42:14 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2015-03-04 23:42:14 +03:00
|
|
|
This driver provides kernel-side support for the RNG200
|
2017-11-02 02:20:06 +03:00
|
|
|
hardware found on the Broadcom iProc and STB SoCs.
|
2015-03-04 23:42:14 +03:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called iproc-rng200
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2006-06-26 11:25:01 +04:00
|
|
|
config HW_RANDOM_GEODE
|
|
|
|
tristate "AMD Geode HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on X86_32 && PCI
|
2006-12-07 07:38:20 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2006-06-26 11:25:01 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on the AMD Geode LX.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called geode-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2006-06-26 11:25:02 +04:00
|
|
|
|
2008-06-04 02:56:11 +04:00
|
|
|
config HW_RANDOM_N2RNG
|
|
|
|
tristate "Niagara2 Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on SPARC64
|
2008-06-04 02:56:11 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2008-06-04 02:56:11 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Niagara2 cpus.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called n2-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2006-06-26 11:25:02 +04:00
|
|
|
config HW_RANDOM_VIA
|
|
|
|
tristate "VIA HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on X86
|
2006-12-07 07:38:20 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2006-06-26 11:25:02 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on VIA based motherboards.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called via-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2006-06-26 11:25:02 +04:00
|
|
|
|
|
|
|
config HW_RANDOM_IXP4XX
|
2010-03-23 22:22:13 +03:00
|
|
|
tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
|
2019-08-25 23:20:54 +03:00
|
|
|
depends on ARCH_IXP4XX || COMPILE_TEST
|
2006-12-07 07:38:20 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2010-03-23 22:22:13 +03:00
|
|
|
This driver provides kernel-side support for the Pseudo-Random
|
|
|
|
Number Generator hardware found on the Intel IXP45x/46x NPU.
|
2006-06-26 11:25:02 +04:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called ixp4xx-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2006-06-26 11:25:03 +04:00
|
|
|
|
|
|
|
config HW_RANDOM_OMAP
|
|
|
|
tristate "OMAP Random Number Generator support"
|
2021-05-14 19:12:41 +03:00
|
|
|
depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS || ARCH_MVEBU || ARCH_K3
|
2006-12-07 07:38:20 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2021-05-17 12:58:31 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
2017-02-13 15:04:08 +03:00
|
|
|
Generator hardware found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx
|
|
|
|
multimedia processors, and Marvell Armada 7k/8k SoCs.
|
2006-06-26 11:25:03 +04:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called omap-rng.
|
|
|
|
|
2021-05-17 12:58:31 +03:00
|
|
|
If unsure, say Y.
|
2007-05-09 13:33:35 +04:00
|
|
|
|
2013-09-20 17:25:06 +04:00
|
|
|
config HW_RANDOM_OMAP3_ROM
|
|
|
|
tristate "OMAP3 ROM Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on ARCH_OMAP3
|
2013-09-20 17:25:06 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2013-09-20 17:25:06 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on OMAP34xx processors.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called omap3-rom-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2009-08-21 01:10:23 +04:00
|
|
|
config HW_RANDOM_OCTEON
|
|
|
|
tristate "Octeon Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on CAVIUM_OCTEON_SOC
|
2009-08-21 01:10:23 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2009-08-21 01:10:23 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Octeon processors.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called octeon-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2007-05-09 13:33:35 +04:00
|
|
|
config HW_RANDOM_PASEMI
|
|
|
|
tristate "PA Semi HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on PPC_PASEMI
|
2007-05-09 13:33:35 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2007-05-09 13:33:35 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
2007-11-05 05:57:45 +03:00
|
|
|
Generator hardware found on PA Semi PWRficient SoCs.
|
2007-05-09 13:33:35 +04:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called pasemi-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2008-05-31 00:09:44 +04:00
|
|
|
config HW_RANDOM_VIRTIO
|
|
|
|
tristate "VirtIO Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on VIRTIO
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2008-05-31 00:09:44 +04:00
|
|
|
This driver provides kernel-side support for the virtual Random Number
|
|
|
|
Generator hardware.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called virtio-rng. If unsure, say N.
|
2009-04-02 19:38:41 +04:00
|
|
|
|
2009-06-02 18:54:21 +04:00
|
|
|
config HW_RANDOM_TX4939
|
|
|
|
tristate "TX4939 Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on SOC_TX4939
|
2009-06-02 18:54:21 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2009-06-02 18:54:21 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on TX4939 SoC.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called tx4939-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2009-04-02 19:38:41 +04:00
|
|
|
config HW_RANDOM_MXC_RNGA
|
|
|
|
tristate "Freescale i.MX RNGA Random Number Generator"
|
2016-08-16 22:49:45 +03:00
|
|
|
depends on SOC_IMX31
|
2014-04-08 16:36:37 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2009-04-02 19:38:41 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Freescale i.MX processors.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called mxc-rnga.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2009-12-19 14:45:43 +03:00
|
|
|
|
2017-07-23 20:49:06 +03:00
|
|
|
config HW_RANDOM_IMX_RNGC
|
|
|
|
tristate "Freescale i.MX RNGC Random Number Generator"
|
2020-02-05 17:00:02 +03:00
|
|
|
depends on HAS_IOMEM && HAVE_CLK
|
2020-07-15 18:26:04 +03:00
|
|
|
depends on SOC_IMX25 || SOC_IMX6SL || SOC_IMX6SLL || SOC_IMX6UL || COMPILE_TEST
|
2017-07-23 20:49:06 +03:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2017-07-23 20:49:06 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator Version C hardware found on some Freescale i.MX
|
|
|
|
processors. Version B is also supported by this driver.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called imx-rngc.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2020-07-23 09:24:46 +03:00
|
|
|
config HW_RANDOM_INGENIC_RNG
|
|
|
|
tristate "Ingenic Random Number Generator support"
|
|
|
|
depends on HW_RANDOM
|
|
|
|
depends on MACH_JZ4780 || MACH_X1000
|
|
|
|
default HW_RANDOM
|
|
|
|
help
|
|
|
|
This driver provides kernel-side support for the Random Number Generator
|
|
|
|
hardware found in ingenic JZ4780 and X1000 SoC. MIPS Creator CI20 uses
|
|
|
|
JZ4780 SoC, YSH & ATIL CU1000-Neo uses X1000 SoC.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called ingenic-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2020-09-13 19:10:21 +03:00
|
|
|
config HW_RANDOM_INGENIC_TRNG
|
|
|
|
tristate "Ingenic True Random Number Generator support"
|
|
|
|
depends on HW_RANDOM
|
|
|
|
depends on MACH_X1830
|
|
|
|
default HW_RANDOM
|
|
|
|
help
|
|
|
|
This driver provides kernel-side support for the True Random Number Generator
|
|
|
|
hardware found in ingenic X1830 SoC. YSH & ATIL CU1830-Neo uses X1830 SoC.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called ingenic-trng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2009-12-19 14:45:43 +03:00
|
|
|
config HW_RANDOM_NOMADIK
|
|
|
|
tristate "ST-Ericsson Nomadik Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on ARCH_NOMADIK
|
2014-04-08 16:36:37 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2009-12-19 14:45:43 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called nomadik-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2011-01-23 10:58:29 +03:00
|
|
|
|
2012-04-12 09:08:53 +04:00
|
|
|
config HW_RANDOM_PSERIES
|
|
|
|
tristate "pSeries HW Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on PPC64 && IBMVIO
|
2012-04-12 09:08:53 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2012-04-12 09:08:53 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on POWER7+ machines and above
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called pseries-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2012-06-29 04:43:26 +04:00
|
|
|
|
2013-10-11 07:07:58 +04:00
|
|
|
config HW_RANDOM_POWERNV
|
|
|
|
tristate "PowerNV Random Number Generator support"
|
2014-04-08 16:33:04 +04:00
|
|
|
depends on PPC_POWERNV
|
2013-10-11 07:07:58 +04:00
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2013-10-11 07:07:58 +04:00
|
|
|
This is the driver for Random Number Generator hardware found
|
|
|
|
in POWER7+ and above machines for PowerNV platform.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called powernv-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2016-04-13 13:11:28 +03:00
|
|
|
config HW_RANDOM_HISI
|
|
|
|
tristate "Hisilicon Random Number Generator support"
|
|
|
|
depends on HW_RANDOM && ARCH_HISI
|
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2016-04-13 13:11:28 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Hisilicon Hip04 and Hip05 SoC.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called hisi-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2015-09-17 16:45:55 +03:00
|
|
|
config HW_RANDOM_ST
|
|
|
|
tristate "ST Microelectronics HW Random Number Generator support"
|
|
|
|
depends on HW_RANDOM && ARCH_STI
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2015-09-17 16:45:55 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on STi series of SoCs.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called st-rng.
|
|
|
|
|
2014-08-23 03:26:38 +04:00
|
|
|
config HW_RANDOM_XGENE
|
|
|
|
tristate "APM X-Gene True Random Number Generator (TRNG) support"
|
|
|
|
depends on HW_RANDOM && ARCH_XGENE
|
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2014-08-23 03:26:38 +04:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on APM X-Gene SoC.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called xgene_rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2015-10-12 11:21:29 +03:00
|
|
|
config HW_RANDOM_STM32
|
|
|
|
tristate "STMicroelectronics STM32 random number generator"
|
|
|
|
depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST)
|
2016-01-26 01:24:04 +03:00
|
|
|
depends on HAS_IOMEM
|
2018-04-23 18:04:25 +03:00
|
|
|
default HW_RANDOM
|
2015-10-12 11:21:29 +03:00
|
|
|
help
|
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on STM32 microcontrollers.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called stm32-rng.
|
|
|
|
|
|
|
|
If unsure, say N.
|
|
|
|
|
2016-02-09 00:17:53 +03:00
|
|
|
config HW_RANDOM_PIC32
|
|
|
|
tristate "Microchip PIC32 Random Number Generator support"
|
|
|
|
depends on HW_RANDOM && MACH_PIC32
|
|
|
|
default y
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2016-02-09 00:17:53 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on a PIC32.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here. the
|
|
|
|
module will be called pic32-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2016-06-10 11:21:53 +03:00
|
|
|
config HW_RANDOM_MESON
|
|
|
|
tristate "Amlogic Meson Random Number Generator support"
|
|
|
|
depends on HW_RANDOM
|
|
|
|
depends on ARCH_MESON || COMPILE_TEST
|
|
|
|
default y
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2016-06-10 11:21:53 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Amlogic Meson SoCs.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here. the
|
|
|
|
module will be called meson-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2016-08-24 02:27:15 +03:00
|
|
|
config HW_RANDOM_CAVIUM
|
2019-11-21 16:28:41 +03:00
|
|
|
tristate "Cavium ThunderX Random Number Generator support"
|
|
|
|
depends on HW_RANDOM && PCI && (ARM64 || (COMPILE_TEST && 64BIT))
|
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2019-11-21 16:28:41 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Cavium SoCs.
|
2016-08-24 02:27:15 +03:00
|
|
|
|
2019-11-21 16:28:41 +03:00
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called cavium_rng.
|
2016-08-24 02:27:15 +03:00
|
|
|
|
2019-11-21 16:28:41 +03:00
|
|
|
If unsure, say Y.
|
2016-08-24 02:27:15 +03:00
|
|
|
|
2017-04-20 19:24:26 +03:00
|
|
|
config HW_RANDOM_MTK
|
|
|
|
tristate "Mediatek Random Number Generator support"
|
|
|
|
depends on HW_RANDOM
|
|
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
|
|
default y
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2017-04-20 19:24:26 +03:00
|
|
|
This driver provides kernel-side support for the Random Number
|
|
|
|
Generator hardware found on Mediatek SoCs.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here. the
|
|
|
|
module will be called mtk-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2017-02-24 11:10:05 +03:00
|
|
|
config HW_RANDOM_S390
|
|
|
|
tristate "S390 True Random Number Generator support"
|
|
|
|
depends on S390
|
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2017-02-24 11:10:05 +03:00
|
|
|
This driver provides kernel-side support for the True
|
|
|
|
Random Number Generator available as CPACF extension
|
|
|
|
on modern s390 hardware platforms.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called s390-trng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2017-12-22 19:48:35 +03:00
|
|
|
config HW_RANDOM_EXYNOS
|
|
|
|
tristate "Samsung Exynos True Random Number Generator support"
|
|
|
|
depends on ARCH_EXYNOS || COMPILE_TEST
|
|
|
|
default HW_RANDOM
|
2020-06-13 19:50:22 +03:00
|
|
|
help
|
2017-12-22 19:48:35 +03:00
|
|
|
This driver provides support for the True Random Number
|
|
|
|
Generator available in Exynos SoCs.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called exynos-trng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
2019-01-29 08:49:38 +03:00
|
|
|
|
|
|
|
config HW_RANDOM_OPTEE
|
|
|
|
tristate "OP-TEE based Random Number Generator support"
|
|
|
|
depends on OPTEE
|
|
|
|
default HW_RANDOM
|
|
|
|
help
|
|
|
|
This driver provides support for OP-TEE based Random Number
|
|
|
|
Generator on ARM SoCs where hardware entropy sources are not
|
|
|
|
accessible to normal world (Linux).
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called optee-rng.
|
|
|
|
|
|
|
|
If unsure, say Y.
|
|
|
|
|
2019-09-12 12:01:49 +03:00
|
|
|
config HW_RANDOM_NPCM
|
|
|
|
tristate "NPCM Random Number Generator support"
|
|
|
|
depends on ARCH_NPCM || COMPILE_TEST
|
|
|
|
default HW_RANDOM
|
|
|
|
help
|
2021-05-17 12:58:31 +03:00
|
|
|
This driver provides support for the Random Number
|
2019-09-12 12:01:49 +03:00
|
|
|
Generator hardware available in Nuvoton NPCM SoCs.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called npcm-rng.
|
|
|
|
|
2021-05-17 12:58:31 +03:00
|
|
|
If unsure, say Y.
|
2019-09-12 12:01:49 +03:00
|
|
|
|
2020-03-05 09:21:48 +03:00
|
|
|
config HW_RANDOM_KEYSTONE
|
|
|
|
depends on ARCH_KEYSTONE || COMPILE_TEST
|
2020-11-27 08:49:40 +03:00
|
|
|
depends on HAS_IOMEM && OF
|
2020-03-05 09:21:48 +03:00
|
|
|
default HW_RANDOM
|
|
|
|
tristate "TI Keystone NETCP SA Hardware random number generator"
|
|
|
|
help
|
|
|
|
This option enables Keystone's hardware random generator.
|
|
|
|
|
2020-03-27 09:10:22 +03:00
|
|
|
config HW_RANDOM_CCTRNG
|
|
|
|
tristate "Arm CryptoCell True Random Number Generator support"
|
2020-04-27 14:36:02 +03:00
|
|
|
depends on HAS_IOMEM && OF
|
2020-03-27 09:10:22 +03:00
|
|
|
help
|
2020-04-27 14:36:04 +03:00
|
|
|
Say 'Y' to enable the True Random Number Generator driver for the
|
|
|
|
Arm TrustZone CryptoCell family of processors.
|
|
|
|
Currently the CryptoCell 713 and 703 are supported.
|
|
|
|
The driver is supported only in SoC where Trusted Execution
|
|
|
|
Environment is not used.
|
|
|
|
Choose 'M' to compile this driver as a module. The module
|
2020-03-27 09:10:22 +03:00
|
|
|
will be called cctrng.
|
2020-04-27 14:36:04 +03:00
|
|
|
If unsure, say 'N'.
|
2020-03-27 09:10:22 +03:00
|
|
|
|
2020-09-02 13:28:17 +03:00
|
|
|
config HW_RANDOM_XIPHERA
|
|
|
|
tristate "Xiphera FPGA based True Random Number Generator support"
|
|
|
|
depends on HAS_IOMEM
|
|
|
|
help
|
|
|
|
This driver provides kernel-side support for Xiphera True Random
|
|
|
|
Number Generator Intellectual Property Core.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called xiphera-trng.
|
|
|
|
|
2014-04-08 16:33:04 +04:00
|
|
|
endif # HW_RANDOM
|
|
|
|
|
2014-04-08 16:27:31 +04:00
|
|
|
config UML_RANDOM
|
|
|
|
depends on UML
|
um: random: Register random as hwrng-core device
The UML random driver creates a dummy device under the guest,
/dev/hw_random. When this file is read from the guest, the driver
reads from the host machine's /dev/random, in-turn reading from
the host kernel's entropy pool. This entropy pool could have been
filled by a hardware random number generator or just the host
kernel's internal software entropy generator.
Currently the driver does not fill the guests kernel entropy pool,
this requires a userspace tool running inside the guest (like
rng-tools) to read from the dummy device provided by this driver,
which then would fill the guest's internal entropy pool.
This all seems quite pointless when we are already reading from an
entropy pool, so this patch aims to register the device as a hwrng
device using the hwrng-core framework. This not only improves and
cleans up the driver, but also fills the guest's entropy pool
without having to resort to using extra userspace tools in the guest.
This is typically a nuisance when booting a guest: the random pool
takes a long time (~200s) to build up enough entropy since the dummy
hwrng is not used to fill the guest's pool.
This port was originally attempted by Alexander Neville "dark" (in CC,
discussion in Link), but the conversation there stalled since the
handling of -EAGAIN errors were no removed and longer handled by the
driver. This patch attempts to use the existing method of error
handling but utilises the new hwrng core.
The issue can be noticed when booting a UML guest:
[ 2.560000] random: fast init done
[ 214.000000] random: crng init done
With the patch applied, filling the pool becomes a lot quicker:
[ 2.560000] random: fast init done
[ 12.000000] random: crng init done
Cc: Alexander Neville <dark@volatile.bz>
Link: https://lore.kernel.org/lkml/20190828204609.02a7ff70@TheDarkness/
Link: https://lore.kernel.org/lkml/20190829135001.6a5ff940@TheDarkness.local/
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2020-10-27 18:30:22 +03:00
|
|
|
select HW_RANDOM
|
|
|
|
tristate "UML Random Number Generator support"
|
2014-04-08 16:27:31 +04:00
|
|
|
help
|
|
|
|
This option enables UML's "hardware" random number generator. It
|
|
|
|
attaches itself to the host's /dev/random, supplying as much entropy
|
|
|
|
as the host has, rather than the small amount the UML gets from its
|
um: random: Register random as hwrng-core device
The UML random driver creates a dummy device under the guest,
/dev/hw_random. When this file is read from the guest, the driver
reads from the host machine's /dev/random, in-turn reading from
the host kernel's entropy pool. This entropy pool could have been
filled by a hardware random number generator or just the host
kernel's internal software entropy generator.
Currently the driver does not fill the guests kernel entropy pool,
this requires a userspace tool running inside the guest (like
rng-tools) to read from the dummy device provided by this driver,
which then would fill the guest's internal entropy pool.
This all seems quite pointless when we are already reading from an
entropy pool, so this patch aims to register the device as a hwrng
device using the hwrng-core framework. This not only improves and
cleans up the driver, but also fills the guest's entropy pool
without having to resort to using extra userspace tools in the guest.
This is typically a nuisance when booting a guest: the random pool
takes a long time (~200s) to build up enough entropy since the dummy
hwrng is not used to fill the guest's pool.
This port was originally attempted by Alexander Neville "dark" (in CC,
discussion in Link), but the conversation there stalled since the
handling of -EAGAIN errors were no removed and longer handled by the
driver. This patch attempts to use the existing method of error
handling but utilises the new hwrng core.
The issue can be noticed when booting a UML guest:
[ 2.560000] random: fast init done
[ 214.000000] random: crng init done
With the patch applied, filling the pool becomes a lot quicker:
[ 2.560000] random: fast init done
[ 12.000000] random: crng init done
Cc: Alexander Neville <dark@volatile.bz>
Link: https://lore.kernel.org/lkml/20190828204609.02a7ff70@TheDarkness/
Link: https://lore.kernel.org/lkml/20190829135001.6a5ff940@TheDarkness.local/
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2020-10-27 18:30:22 +03:00
|
|
|
own drivers. It registers itself as a rng-core driver thus providing
|
|
|
|
a device which is usually called /dev/hwrng. This hardware random
|
|
|
|
number generator does feed into the kernel's random number generator
|
|
|
|
entropy pool.
|
|
|
|
|
|
|
|
If unsure, say Y.
|