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 || COMPILE_TEST) && 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 || COMPILE_TEST)
54 depends on PCI && HAS_IOPORT_MAP
57 This driver provides kernel-side support for the Random Number
58 Generator hardware found on AMD 76x-based motherboards.
60 To compile this driver as a module, choose M here: the
61 module will be called amd-rng.
65 config HW_RANDOM_ATMEL
66 tristate "Atmel Random Number Generator support"
67 depends on (ARCH_AT91 || COMPILE_TEST)
70 This driver provides kernel-side support for the Random Number
71 Generator hardware found on Atmel AT91 devices.
73 To compile this driver as a module, choose M here: the
74 module will be called atmel-rng.
78 config HW_RANDOM_BA431
79 tristate "Silex Insight BA431 Random Number Generator support"
82 This driver provides kernel-side support for the Random Number
83 Generator hardware based on Silex Insight BA431 IP.
85 To compile this driver as a module, choose M here: the
86 module will be called ba431-rng.
88 config HW_RANDOM_BCM2835
89 tristate "Broadcom BCM2835/BCM63xx Random Number Generator support"
90 depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \
91 ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC || COMPILE_TEST
94 This driver provides kernel-side support for the Random Number
95 Generator hardware found on the Broadcom BCM2835 and BCM63xx SoCs.
97 To compile this driver as a module, choose M here: the
98 module will be called bcm2835-rng
102 config HW_RANDOM_IPROC_RNG200
103 tristate "Broadcom iProc/STB RNG200 support"
104 depends on ARCH_BCM_IPROC || ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
107 This driver provides kernel-side support for the RNG200
108 hardware found on the Broadcom iProc and STB SoCs.
110 To compile this driver as a module, choose M here: the
111 module will be called iproc-rng200
115 config HW_RANDOM_GEODE
116 tristate "AMD Geode HW Random Number Generator support"
117 depends on (X86_32 || COMPILE_TEST)
121 This driver provides kernel-side support for the Random Number
122 Generator hardware found on the AMD Geode LX.
124 To compile this driver as a module, choose M here: the
125 module will be called geode-rng.
129 config HW_RANDOM_N2RNG
130 tristate "Niagara2 Random Number Generator support"
134 This driver provides kernel-side support for the Random Number
135 Generator hardware found on Niagara2 cpus.
137 To compile this driver as a module, choose M here: the
138 module will be called n2-rng.
143 tristate "VIA HW Random Number Generator support"
147 This driver provides kernel-side support for the Random Number
148 Generator hardware found on VIA based motherboards.
150 To compile this driver as a module, choose M here: the
151 module will be called via-rng.
155 config HW_RANDOM_IXP4XX
156 tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
157 depends on ARCH_IXP4XX || COMPILE_TEST
160 This driver provides kernel-side support for the Pseudo-Random
161 Number Generator hardware found on the Intel IXP45x/46x NPU.
163 To compile this driver as a module, choose M here: the
164 module will be called ixp4xx-rng.
168 config HW_RANDOM_OMAP
169 tristate "OMAP Random Number Generator support"
170 depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS || ARCH_MVEBU || ARCH_K3 || COMPILE_TEST
173 This driver provides kernel-side support for the Random Number
174 Generator hardware found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx
175 multimedia processors, and Marvell Armada 7k/8k SoCs.
177 To compile this driver as a module, choose M here: the
178 module will be called omap-rng.
182 config HW_RANDOM_OMAP3_ROM
183 tristate "OMAP3 ROM Random Number Generator support"
184 depends on ARCH_OMAP3 || COMPILE_TEST
187 This driver provides kernel-side support for the Random Number
188 Generator hardware found on OMAP34xx processors.
190 To compile this driver as a module, choose M here: the
191 module will be called omap3-rom-rng.
195 config HW_RANDOM_OCTEON
196 tristate "Octeon Random Number Generator support"
197 depends on CAVIUM_OCTEON_SOC
200 This driver provides kernel-side support for the Random Number
201 Generator hardware found on Octeon processors.
203 To compile this driver as a module, choose M here: the
204 module will be called octeon-rng.
208 config HW_RANDOM_PASEMI
209 tristate "PA Semi HW Random Number Generator support"
210 depends on PPC_PASEMI || (PPC && COMPILE_TEST)
213 This driver provides kernel-side support for the Random Number
214 Generator hardware found on PA Semi PWRficient SoCs.
216 To compile this driver as a module, choose M here: the
217 module will be called pasemi-rng.
221 config HW_RANDOM_VIRTIO
222 tristate "VirtIO Random Number Generator support"
225 This driver provides kernel-side support for the virtual Random Number
228 To compile this driver as a module, choose M here: the
229 module will be called virtio-rng. If unsure, say N.
231 config HW_RANDOM_MXC_RNGA
232 tristate "Freescale i.MX RNGA Random Number Generator"
233 depends on SOC_IMX31 || COMPILE_TEST
236 This driver provides kernel-side support for the Random Number
237 Generator hardware found on Freescale i.MX processors.
239 To compile this driver as a module, choose M here: the
240 module will be called mxc-rnga.
244 config HW_RANDOM_IMX_RNGC
245 tristate "Freescale i.MX RNGC Random Number Generator"
247 depends on SOC_IMX25 || SOC_IMX6SL || SOC_IMX6SLL || SOC_IMX6UL || COMPILE_TEST
250 This driver provides kernel-side support for the Random Number
251 Generator Version C hardware found on some Freescale i.MX
252 processors. Version B is also supported by this driver.
254 To compile this driver as a module, choose M here: the
255 module will be called imx-rngc.
259 config HW_RANDOM_INGENIC_RNG
260 tristate "Ingenic Random Number Generator support"
261 depends on MACH_JZ4780 || MACH_X1000 || COMPILE_TEST
264 This driver provides kernel-side support for the Random Number Generator
265 hardware found in ingenic JZ4780 and X1000 SoC. MIPS Creator CI20 uses
266 JZ4780 SoC, YSH & ATIL CU1000-Neo uses X1000 SoC.
268 To compile this driver as a module, choose M here: the
269 module will be called ingenic-rng.
273 config HW_RANDOM_INGENIC_TRNG
274 tristate "Ingenic True Random Number Generator support"
275 depends on MACH_X1830 || COMPILE_TEST
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 ARCH_HISI || COMPILE_TEST
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.
338 config HW_RANDOM_HISTB
339 tristate "Hisilicon STB Random Number Generator support"
340 depends on ARCH_HISI || COMPILE_TEST
343 This driver provides kernel-side support for the Random Number
344 Generator hardware found on Hisilicon Hi37xx SoC.
346 To compile this driver as a module, choose M here: the
347 module will be called histb-rng.
350 tristate "ST Microelectronics HW Random Number Generator support"
351 depends on ARCH_STI || COMPILE_TEST
353 This driver provides kernel-side support for the Random Number
354 Generator hardware found on STi series of SoCs.
356 To compile this driver as a module, choose M here: the
357 module will be called st-rng.
359 config HW_RANDOM_XGENE
360 tristate "APM X-Gene True Random Number Generator (TRNG) support"
361 depends on ARCH_XGENE || COMPILE_TEST
364 This driver provides kernel-side support for the Random Number
365 Generator hardware found on APM X-Gene SoC.
367 To compile this driver as a module, choose M here: the
368 module will be called xgene_rng.
372 config HW_RANDOM_STM32
373 tristate "STMicroelectronics STM32 random number generator"
374 depends on ARCH_STM32 || COMPILE_TEST
378 This driver provides kernel-side support for the Random Number
379 Generator hardware found on STM32 microcontrollers.
381 To compile this driver as a module, choose M here: the
382 module will be called stm32-rng.
386 config HW_RANDOM_PIC32
387 tristate "Microchip PIC32 Random Number Generator support"
388 depends on MACH_PIC32 || COMPILE_TEST
389 default HW_RANDOM if MACH_PIC32
391 This driver provides kernel-side support for the Random Number
392 Generator hardware found on a PIC32.
394 To compile this driver as a module, choose M here. the
395 module will be called pic32-rng.
399 config HW_RANDOM_POLARFIRE_SOC
400 tristate "Microchip PolarFire SoC Random Number Generator support"
401 depends on HW_RANDOM && POLARFIRE_SOC_SYS_CTRL
403 This driver provides kernel-side support for the Random Number
404 Generator hardware found on PolarFire SoC (MPFS).
406 To compile this driver as a module, choose M here. The
407 module will be called mfps_rng.
412 config HW_RANDOM_MESON
413 tristate "Amlogic Meson Random Number Generator support"
414 depends on ARCH_MESON || COMPILE_TEST
415 depends on HAS_IOMEM && OF
416 default HW_RANDOM if ARCH_MESON
418 This driver provides kernel-side support for the Random Number
419 Generator hardware found on Amlogic Meson SoCs.
421 To compile this driver as a module, choose M here. the
422 module will be called meson-rng.
426 config HW_RANDOM_CAVIUM
427 tristate "Cavium ThunderX Random Number Generator support"
429 depends on ARCH_THUNDER || (ARM64 && COMPILE_TEST)
432 This driver provides kernel-side support for the Random Number
433 Generator hardware found on Cavium SoCs.
435 To compile this driver as a module, choose M here: the
436 module will be called cavium_rng.
441 tristate "Mediatek Random Number Generator support"
442 depends on ARCH_MEDIATEK || COMPILE_TEST
443 depends on HAS_IOMEM && OF
444 default HW_RANDOM if ARCH_MEDIATEK
446 This driver provides kernel-side support for the Random Number
447 Generator hardware found on Mediatek SoCs.
449 To compile this driver as a module, choose M here. the
450 module will be called mtk-rng.
454 config HW_RANDOM_S390
455 tristate "S390 True Random Number Generator support"
459 This driver provides kernel-side support for the True
460 Random Number Generator available as CPACF extension
461 on modern s390 hardware platforms.
463 To compile this driver as a module, choose M here: the
464 module will be called s390-trng.
468 config HW_RANDOM_EXYNOS
469 tristate "Samsung Exynos True Random Number Generator support"
470 depends on ARCH_EXYNOS || COMPILE_TEST
472 default HW_RANDOM if ARCH_EXYNOS
474 This driver provides support for the True Random Number
475 Generator available in Exynos SoCs.
477 To compile this driver as a module, choose M here: the module
478 will be called exynos-trng.
482 config HW_RANDOM_OPTEE
483 tristate "OP-TEE based Random Number Generator support"
487 This driver provides support for OP-TEE based Random Number
488 Generator on ARM SoCs where hardware entropy sources are not
489 accessible to normal world (Linux).
491 To compile this driver as a module, choose M here: the module
492 will be called optee-rng.
496 config HW_RANDOM_NPCM
497 tristate "NPCM Random Number Generator support"
498 depends on ARCH_NPCM || COMPILE_TEST
500 default HW_RANDOM if ARCH_NPCM
502 This driver provides support for the Random Number
503 Generator hardware available in Nuvoton NPCM SoCs.
505 To compile this driver as a module, choose M here: the
506 module will be called npcm-rng.
510 config HW_RANDOM_KEYSTONE
511 depends on ARCH_KEYSTONE || COMPILE_TEST
512 depends on HAS_IOMEM && OF
514 tristate "TI Keystone NETCP SA Hardware random number generator"
516 This option enables Keystone's hardware random generator.
518 config HW_RANDOM_CCTRNG
519 tristate "Arm CryptoCell True Random Number Generator support"
520 depends on HAS_IOMEM && OF
522 Say 'Y' to enable the True Random Number Generator driver for the
523 Arm TrustZone CryptoCell family of processors.
524 Currently the CryptoCell 713 and 703 are supported.
525 The driver is supported only in SoC where Trusted Execution
526 Environment is not used.
527 Choose 'M' to compile this driver as a module. The module
528 will be called cctrng.
531 config HW_RANDOM_XIPHERA
532 tristate "Xiphera FPGA based True Random Number Generator support"
535 This driver provides kernel-side support for Xiphera True Random
536 Number Generator Intellectual Property Core.
538 To compile this driver as a module, choose M here: the
539 module will be called xiphera-trng.
541 config HW_RANDOM_ARM_SMCCC_TRNG
542 tristate "Arm SMCCC TRNG firmware interface support"
543 depends on HAVE_ARM_SMCCC_DISCOVERY
546 Say 'Y' to enable the True Random Number Generator driver using
547 the Arm SMCCC TRNG firmware interface. This reads entropy from
548 higher exception levels (firmware, hypervisor). Uses SMCCC for
549 communicating with the firmware:
550 https://developer.arm.com/documentation/den0098/latest/
552 To compile this driver as a module, choose M here: the
553 module will be called arm_smccc_trng.
555 config HW_RANDOM_CN10K
556 tristate "Marvell CN10K Random Number Generator support"
557 depends on HW_RANDOM && PCI && (ARM64 || (64BIT && COMPILE_TEST))
560 This driver provides support for the True Random Number
561 generator available in Marvell CN10K SoCs.
563 To compile this driver as a module, choose M here.
564 The module will be called cn10k_rng. If unsure, say Y.
566 config HW_RANDOM_JH7110
567 tristate "StarFive JH7110 Random Number Generator support"
568 depends on SOC_STARFIVE || COMPILE_TEST
570 This driver provides support for the True Random Number
571 Generator in StarFive JH7110 SoCs.
573 To compile this driver as a module, choose M here.
574 The module will be called jh7110-trng.
581 tristate "UML Random Number Generator support"
583 This option enables UML's "hardware" random number generator. It
584 attaches itself to the host's /dev/random, supplying as much entropy
585 as the host has, rather than the small amount the UML gets from its
586 own drivers. It registers itself as a rng-core driver thus providing
587 a device which is usually called /dev/hwrng. This hardware random
588 number generator does feed into the kernel's random number generator