1 # SPDX-License-Identifier: GPL-2.0-only
3 # Hardware Random Number Generator (RNG) configuration
7 tristate "Hardware Random Number Generator Core support"
10 Hardware Random Number Generator Core infrastructure.
12 To compile this driver as a module, choose M here: the
13 module will be called rng-core. This provides a device
14 that's usually called /dev/hwrng, and which exposes one
15 of possibly several hardware random number generators.
17 These hardware random number generators do feed into the
18 kernel's random number generator entropy pool.
24 config HW_RANDOM_TIMERIOMEM
25 tristate "Timer IOMEM HW Random Number Generator support"
28 This driver provides kernel-side support for a generic Random
29 Number Generator used by reading a 'dumb' iomem address that
30 is to be read no faster than, for example, once a second;
31 the default FPGA bitstream on the TS-7800 has such functionality.
33 To compile this driver as a module, choose M here: the
34 module will be called timeriomem-rng.
38 config HW_RANDOM_INTEL
39 tristate "Intel HW Random Number Generator support"
40 depends on (X86 || IA64) && PCI
43 This driver provides kernel-side support for the Random Number
44 Generator hardware found on Intel i8xx-based motherboards.
46 To compile this driver as a module, choose M here: the
47 module will be called intel-rng.
52 tristate "AMD HW Random Number Generator support"
53 depends on (X86 || PPC_MAPLE) && PCI
56 This driver provides kernel-side support for the Random Number
57 Generator hardware found on AMD 76x-based motherboards.
59 To compile this driver as a module, choose M here: the
60 module will be called amd-rng.
64 config HW_RANDOM_ATMEL
65 tristate "Atmel Random Number Generator support"
66 depends on (ARCH_AT91 || COMPILE_TEST) && HAVE_CLK && OF
69 This driver provides kernel-side support for the Random Number
70 Generator hardware found on Atmel AT91 devices.
72 To compile this driver as a module, choose M here: the
73 module will be called atmel-rng.
77 config HW_RANDOM_BA431
78 tristate "Silex Insight BA431 Random Number Generator support"
81 This driver provides kernel-side support for the Random Number
82 Generator hardware based on Silex Insight BA431 IP.
84 To compile this driver as a module, choose M here: the
85 module will be called ba431-rng.
87 config HW_RANDOM_BCM2835
88 tristate "Broadcom BCM2835/BCM63xx Random Number Generator support"
89 depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \
90 ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC || COMPILE_TEST
93 This driver provides kernel-side support for the Random Number
94 Generator hardware found on the Broadcom BCM2835 and BCM63xx SoCs.
96 To compile this driver as a module, choose M here: the
97 module will be called bcm2835-rng
101 config HW_RANDOM_IPROC_RNG200
102 tristate "Broadcom iProc/STB RNG200 support"
103 depends on ARCH_BCM_IPROC || ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
106 This driver provides kernel-side support for the RNG200
107 hardware found on the Broadcom iProc and STB SoCs.
109 To compile this driver as a module, choose M here: the
110 module will be called iproc-rng200
114 config HW_RANDOM_GEODE
115 tristate "AMD Geode HW Random Number Generator support"
116 depends on X86_32 && PCI
119 This driver provides kernel-side support for the Random Number
120 Generator hardware found on the AMD Geode LX.
122 To compile this driver as a module, choose M here: the
123 module will be called geode-rng.
127 config HW_RANDOM_N2RNG
128 tristate "Niagara2 Random Number Generator support"
132 This driver provides kernel-side support for the Random Number
133 Generator hardware found on Niagara2 cpus.
135 To compile this driver as a module, choose M here: the
136 module will be called n2-rng.
141 tristate "VIA HW Random Number Generator support"
145 This driver provides kernel-side support for the Random Number
146 Generator hardware found on VIA based motherboards.
148 To compile this driver as a module, choose M here: the
149 module will be called via-rng.
153 config HW_RANDOM_IXP4XX
154 tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
155 depends on ARCH_IXP4XX || COMPILE_TEST
158 This driver provides kernel-side support for the Pseudo-Random
159 Number Generator hardware found on the Intel IXP45x/46x NPU.
161 To compile this driver as a module, choose M here: the
162 module will be called ixp4xx-rng.
166 config HW_RANDOM_OMAP
167 tristate "OMAP Random Number Generator support"
168 depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS || ARCH_MVEBU || ARCH_K3 || COMPILE_TEST
171 This driver provides kernel-side support for the Random Number
172 Generator hardware found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx
173 multimedia processors, and Marvell Armada 7k/8k SoCs.
175 To compile this driver as a module, choose M here: the
176 module will be called omap-rng.
180 config HW_RANDOM_OMAP3_ROM
181 tristate "OMAP3 ROM Random Number Generator support"
182 depends on ARCH_OMAP3 || COMPILE_TEST
185 This driver provides kernel-side support for the Random Number
186 Generator hardware found on OMAP34xx processors.
188 To compile this driver as a module, choose M here: the
189 module will be called omap3-rom-rng.
193 config HW_RANDOM_OCTEON
194 tristate "Octeon Random Number Generator support"
195 depends on CAVIUM_OCTEON_SOC
198 This driver provides kernel-side support for the Random Number
199 Generator hardware found on Octeon processors.
201 To compile this driver as a module, choose M here: the
202 module will be called octeon-rng.
206 config HW_RANDOM_PASEMI
207 tristate "PA Semi HW Random Number Generator support"
208 depends on PPC_PASEMI
211 This driver provides kernel-side support for the Random Number
212 Generator hardware found on PA Semi PWRficient SoCs.
214 To compile this driver as a module, choose M here: the
215 module will be called pasemi-rng.
219 config HW_RANDOM_VIRTIO
220 tristate "VirtIO Random Number Generator support"
223 This driver provides kernel-side support for the virtual Random Number
226 To compile this driver as a module, choose M here: the
227 module will be called virtio-rng. If unsure, say N.
229 config HW_RANDOM_MXC_RNGA
230 tristate "Freescale i.MX RNGA Random Number Generator"
234 This driver provides kernel-side support for the Random Number
235 Generator hardware found on Freescale i.MX processors.
237 To compile this driver as a module, choose M here: the
238 module will be called mxc-rnga.
242 config HW_RANDOM_IMX_RNGC
243 tristate "Freescale i.MX RNGC Random Number Generator"
244 depends on HAS_IOMEM && HAVE_CLK
245 depends on SOC_IMX25 || SOC_IMX6SL || SOC_IMX6SLL || SOC_IMX6UL || COMPILE_TEST
248 This driver provides kernel-side support for the Random Number
249 Generator Version C hardware found on some Freescale i.MX
250 processors. Version B is also supported by this driver.
252 To compile this driver as a module, choose M here: the
253 module will be called imx-rngc.
257 config HW_RANDOM_INGENIC_RNG
258 tristate "Ingenic Random Number Generator support"
260 depends on MACH_JZ4780 || MACH_X1000
263 This driver provides kernel-side support for the Random Number Generator
264 hardware found in ingenic JZ4780 and X1000 SoC. MIPS Creator CI20 uses
265 JZ4780 SoC, YSH & ATIL CU1000-Neo uses X1000 SoC.
267 To compile this driver as a module, choose M here: the
268 module will be called ingenic-rng.
272 config HW_RANDOM_INGENIC_TRNG
273 tristate "Ingenic True Random Number Generator support"
275 depends on MACH_X1830
278 This driver provides kernel-side support for the True Random Number Generator
279 hardware found in ingenic X1830 SoC. YSH & ATIL CU1830-Neo uses X1830 SoC.
281 To compile this driver as a module, choose M here: the
282 module will be called ingenic-trng.
286 config HW_RANDOM_NOMADIK
287 tristate "ST-Ericsson Nomadik Random Number Generator support"
288 depends on ARCH_NOMADIK || COMPILE_TEST
291 This driver provides kernel-side support for the Random Number
292 Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
294 To compile this driver as a module, choose M here: the
295 module will be called nomadik-rng.
299 config HW_RANDOM_PSERIES
300 tristate "pSeries HW Random Number Generator support"
301 depends on PPC64 && IBMVIO
304 This driver provides kernel-side support for the Random Number
305 Generator hardware found on POWER7+ machines and above
307 To compile this driver as a module, choose M here: the
308 module will be called pseries-rng.
312 config HW_RANDOM_POWERNV
313 tristate "PowerNV Random Number Generator support"
314 depends on PPC_POWERNV
317 This is the driver for Random Number Generator hardware found
318 in POWER7+ and above machines for PowerNV platform.
320 To compile this driver as a module, choose M here: the
321 module will be called powernv-rng.
325 config HW_RANDOM_HISI
326 tristate "Hisilicon Random Number Generator support"
327 depends on HW_RANDOM && ARCH_HISI
330 This driver provides kernel-side support for the Random Number
331 Generator hardware found on Hisilicon Hip04 and Hip05 SoC.
333 To compile this driver as a module, choose M here: the
334 module will be called hisi-rng.
339 tristate "ST Microelectronics HW Random Number Generator support"
340 depends on HW_RANDOM && ARCH_STI
342 This driver provides kernel-side support for the Random Number
343 Generator hardware found on STi series of SoCs.
345 To compile this driver as a module, choose M here: the
346 module will be called st-rng.
348 config HW_RANDOM_XGENE
349 tristate "APM X-Gene True Random Number Generator (TRNG) support"
350 depends on HW_RANDOM && ARCH_XGENE
353 This driver provides kernel-side support for the Random Number
354 Generator hardware found on APM X-Gene SoC.
356 To compile this driver as a module, choose M here: the
357 module will be called xgene_rng.
361 config HW_RANDOM_STM32
362 tristate "STMicroelectronics STM32 random number generator"
363 depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST)
367 This driver provides kernel-side support for the Random Number
368 Generator hardware found on STM32 microcontrollers.
370 To compile this driver as a module, choose M here: the
371 module will be called stm32-rng.
375 config HW_RANDOM_PIC32
376 tristate "Microchip PIC32 Random Number Generator support"
377 depends on HW_RANDOM && MACH_PIC32
380 This driver provides kernel-side support for the Random Number
381 Generator hardware found on a PIC32.
383 To compile this driver as a module, choose M here. the
384 module will be called pic32-rng.
388 config HW_RANDOM_POLARFIRE_SOC
389 tristate "Microchip PolarFire SoC Random Number Generator support"
390 depends on HW_RANDOM && POLARFIRE_SOC_SYS_CTRL
392 This driver provides kernel-side support for the Random Number
393 Generator hardware found on PolarFire SoC (MPFS).
395 To compile this driver as a module, choose M here. The
396 module will be called mfps_rng.
401 config HW_RANDOM_MESON
402 tristate "Amlogic Meson Random Number Generator support"
404 depends on ARCH_MESON || COMPILE_TEST
407 This driver provides kernel-side support for the Random Number
408 Generator hardware found on Amlogic Meson SoCs.
410 To compile this driver as a module, choose M here. the
411 module will be called meson-rng.
415 config HW_RANDOM_CAVIUM
416 tristate "Cavium ThunderX Random Number Generator support"
417 depends on HW_RANDOM && PCI && ARCH_THUNDER
420 This driver provides kernel-side support for the Random Number
421 Generator hardware found on Cavium SoCs.
423 To compile this driver as a module, choose M here: the
424 module will be called cavium_rng.
429 tristate "Mediatek Random Number Generator support"
431 depends on ARCH_MEDIATEK || COMPILE_TEST
434 This driver provides kernel-side support for the Random Number
435 Generator hardware found on Mediatek SoCs.
437 To compile this driver as a module, choose M here. the
438 module will be called mtk-rng.
442 config HW_RANDOM_S390
443 tristate "S390 True Random Number Generator support"
447 This driver provides kernel-side support for the True
448 Random Number Generator available as CPACF extension
449 on modern s390 hardware platforms.
451 To compile this driver as a module, choose M here: the
452 module will be called s390-trng.
456 config HW_RANDOM_EXYNOS
457 tristate "Samsung Exynos True Random Number Generator support"
458 depends on ARCH_EXYNOS || COMPILE_TEST
461 This driver provides support for the True Random Number
462 Generator available in Exynos SoCs.
464 To compile this driver as a module, choose M here: the module
465 will be called exynos-trng.
469 config HW_RANDOM_OPTEE
470 tristate "OP-TEE based Random Number Generator support"
474 This driver provides support for OP-TEE based Random Number
475 Generator on ARM SoCs where hardware entropy sources are not
476 accessible to normal world (Linux).
478 To compile this driver as a module, choose M here: the module
479 will be called optee-rng.
483 config HW_RANDOM_NPCM
484 tristate "NPCM Random Number Generator support"
485 depends on ARCH_NPCM || COMPILE_TEST
488 This driver provides support for the Random Number
489 Generator hardware available in Nuvoton NPCM SoCs.
491 To compile this driver as a module, choose M here: the
492 module will be called npcm-rng.
496 config HW_RANDOM_KEYSTONE
497 depends on ARCH_KEYSTONE || COMPILE_TEST
498 depends on HAS_IOMEM && OF
500 tristate "TI Keystone NETCP SA Hardware random number generator"
502 This option enables Keystone's hardware random generator.
504 config HW_RANDOM_CCTRNG
505 tristate "Arm CryptoCell True Random Number Generator support"
506 depends on HAS_IOMEM && OF
508 Say 'Y' to enable the True Random Number Generator driver for the
509 Arm TrustZone CryptoCell family of processors.
510 Currently the CryptoCell 713 and 703 are supported.
511 The driver is supported only in SoC where Trusted Execution
512 Environment is not used.
513 Choose 'M' to compile this driver as a module. The module
514 will be called cctrng.
517 config HW_RANDOM_XIPHERA
518 tristate "Xiphera FPGA based True Random Number Generator support"
521 This driver provides kernel-side support for Xiphera True Random
522 Number Generator Intellectual Property Core.
524 To compile this driver as a module, choose M here: the
525 module will be called xiphera-trng.
527 config HW_RANDOM_ARM_SMCCC_TRNG
528 tristate "Arm SMCCC TRNG firmware interface support"
529 depends on HAVE_ARM_SMCCC_DISCOVERY
532 Say 'Y' to enable the True Random Number Generator driver using
533 the Arm SMCCC TRNG firmware interface. This reads entropy from
534 higher exception levels (firmware, hypervisor). Uses SMCCC for
535 communicating with the firmware:
536 https://developer.arm.com/documentation/den0098/latest/
538 To compile this driver as a module, choose M here: the
539 module will be called arm_smccc_trng.
541 config HW_RANDOM_CN10K
542 tristate "Marvell CN10K Random Number Generator support"
543 depends on HW_RANDOM && PCI && (ARM64 || (64BIT && COMPILE_TEST))
546 This driver provides support for the True Random Number
547 generator available in Marvell CN10K SoCs.
549 To compile this driver as a module, choose M here.
550 The module will be called cn10k_rng. If unsure, say Y.
552 config HW_RANDOM_JH7110
553 tristate "StarFive JH7110 Random Number Generator support"
554 depends on SOC_STARFIVE || COMPILE_TEST
556 This driver provides support for the True Random Number
557 Generator in StarFive JH7110 SoCs.
559 To compile this driver as a module, choose M here.
560 The module will be called jh7110-trng.
567 tristate "UML Random Number Generator support"
569 This option enables UML's "hardware" random number generator. It
570 attaches itself to the host's /dev/random, supplying as much entropy
571 as the host has, rather than the small amount the UML gets from its
572 own drivers. It registers itself as a rng-core driver thus providing
573 a device which is usually called /dev/hwrng. This hardware random
574 number generator does feed into the kernel's random number generator