xref: /linux/drivers/char/hw_random/Kconfig (revision 0e2b2a76278153d1ac312b0691cb65dabb9aef3e)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Hardware Random Number Generator (RNG) configuration
4#
5
6menuconfig HW_RANDOM
7	tristate "Hardware Random Number Generator Core support"
8	default m
9	help
10	  Hardware Random Number Generator Core infrastructure.
11
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.
16
17	  These hardware random number generators do feed into the
18	  kernel's random number generator entropy pool.
19
20	  If unsure, say Y.
21
22if HW_RANDOM
23
24config HW_RANDOM_TIMERIOMEM
25	tristate "Timer IOMEM HW Random Number Generator support"
26	depends on HAS_IOMEM
27	help
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.
32
33	  To compile this driver as a module, choose M here: the
34	  module will be called timeriomem-rng.
35
36	  If unsure, say Y.
37
38config HW_RANDOM_INTEL
39	tristate "Intel HW Random Number Generator support"
40	depends on (X86 || IA64) && PCI
41	default HW_RANDOM
42	help
43	  This driver provides kernel-side support for the Random Number
44	  Generator hardware found on Intel i8xx-based motherboards.
45
46	  To compile this driver as a module, choose M here: the
47	  module will be called intel-rng.
48
49	  If unsure, say Y.
50
51config HW_RANDOM_AMD
52	tristate "AMD HW Random Number Generator support"
53	depends on (X86 || PPC_MAPLE) && PCI
54	default HW_RANDOM
55	help
56	  This driver provides kernel-side support for the Random Number
57	  Generator hardware found on AMD 76x-based motherboards.
58
59	  To compile this driver as a module, choose M here: the
60	  module will be called amd-rng.
61
62	  If unsure, say Y.
63
64config HW_RANDOM_ATMEL
65	tristate "Atmel Random Number Generator support"
66	depends on (ARCH_AT91 || COMPILE_TEST) && HAVE_CLK && OF
67	default HW_RANDOM
68	help
69	  This driver provides kernel-side support for the Random Number
70	  Generator hardware found on Atmel AT91 devices.
71
72	  To compile this driver as a module, choose M here: the
73	  module will be called atmel-rng.
74
75	  If unsure, say Y.
76
77config HW_RANDOM_BA431
78	tristate "Silex Insight BA431 Random Number Generator support"
79	depends on HAS_IOMEM
80	help
81	  This driver provides kernel-side support for the Random Number
82	  Generator hardware based on Silex Insight BA431 IP.
83
84	  To compile this driver as a module, choose M here: the
85	  module will be called ba431-rng.
86
87config 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
91	default HW_RANDOM
92	help
93	  This driver provides kernel-side support for the Random Number
94	  Generator hardware found on the Broadcom BCM2835 and BCM63xx SoCs.
95
96	  To compile this driver as a module, choose M here: the
97	  module will be called bcm2835-rng
98
99	  If unsure, say Y.
100
101config HW_RANDOM_IPROC_RNG200
102	tristate "Broadcom iProc/STB RNG200 support"
103	depends on ARCH_BCM_IPROC || ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
104	default HW_RANDOM
105	help
106	  This driver provides kernel-side support for the RNG200
107	  hardware found on the Broadcom iProc and STB SoCs.
108
109	  To compile this driver as a module, choose M here: the
110	  module will be called iproc-rng200
111
112	  If unsure, say Y.
113
114config HW_RANDOM_GEODE
115	tristate "AMD Geode HW Random Number Generator support"
116	depends on X86_32 && PCI
117	default HW_RANDOM
118	help
119	  This driver provides kernel-side support for the Random Number
120	  Generator hardware found on the AMD Geode LX.
121
122	  To compile this driver as a module, choose M here: the
123	  module will be called geode-rng.
124
125	  If unsure, say Y.
126
127config HW_RANDOM_N2RNG
128	tristate "Niagara2 Random Number Generator support"
129	depends on SPARC64
130	default HW_RANDOM
131	help
132	  This driver provides kernel-side support for the Random Number
133	  Generator hardware found on Niagara2 cpus.
134
135	  To compile this driver as a module, choose M here: the
136	  module will be called n2-rng.
137
138	  If unsure, say Y.
139
140config HW_RANDOM_VIA
141	tristate "VIA HW Random Number Generator support"
142	depends on X86
143	default HW_RANDOM
144	help
145	  This driver provides kernel-side support for the Random Number
146	  Generator hardware found on VIA based motherboards.
147
148	  To compile this driver as a module, choose M here: the
149	  module will be called via-rng.
150
151	  If unsure, say Y.
152
153config HW_RANDOM_IXP4XX
154	tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
155	depends on ARCH_IXP4XX || COMPILE_TEST
156	default HW_RANDOM
157	help
158	  This driver provides kernel-side support for the Pseudo-Random
159	  Number Generator hardware found on the Intel IXP45x/46x NPU.
160
161	  To compile this driver as a module, choose M here: the
162	  module will be called ixp4xx-rng.
163
164	  If unsure, say Y.
165
166config HW_RANDOM_OMAP
167	tristate "OMAP Random Number Generator support"
168	depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS || ARCH_MVEBU || ARCH_K3 || COMPILE_TEST
169	default HW_RANDOM
170	help
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.
174
175	  To compile this driver as a module, choose M here: the
176	  module will be called omap-rng.
177
178	  If unsure, say Y.
179
180config HW_RANDOM_OMAP3_ROM
181	tristate "OMAP3 ROM Random Number Generator support"
182	depends on ARCH_OMAP3 || COMPILE_TEST
183	default HW_RANDOM
184	help
185	  This driver provides kernel-side support for the Random Number
186	  Generator hardware found on OMAP34xx processors.
187
188	  To compile this driver as a module, choose M here: the
189	  module will be called omap3-rom-rng.
190
191	  If unsure, say Y.
192
193config HW_RANDOM_OCTEON
194	tristate "Octeon Random Number Generator support"
195	depends on CAVIUM_OCTEON_SOC
196	default HW_RANDOM
197	help
198	  This driver provides kernel-side support for the Random Number
199	  Generator hardware found on Octeon processors.
200
201	  To compile this driver as a module, choose M here: the
202	  module will be called octeon-rng.
203
204	  If unsure, say Y.
205
206config HW_RANDOM_PASEMI
207	tristate "PA Semi HW Random Number Generator support"
208	depends on PPC_PASEMI
209	default HW_RANDOM
210	help
211	  This driver provides kernel-side support for the Random Number
212	  Generator hardware found on PA Semi PWRficient SoCs.
213
214	  To compile this driver as a module, choose M here: the
215	  module will be called pasemi-rng.
216
217	  If unsure, say Y.
218
219config HW_RANDOM_VIRTIO
220	tristate "VirtIO Random Number Generator support"
221	depends on VIRTIO
222	help
223	  This driver provides kernel-side support for the virtual Random Number
224	  Generator hardware.
225
226	  To compile this driver as a module, choose M here: the
227	  module will be called virtio-rng.  If unsure, say N.
228
229config HW_RANDOM_MXC_RNGA
230	tristate "Freescale i.MX RNGA Random Number Generator"
231	depends on SOC_IMX31
232	default HW_RANDOM
233	help
234	  This driver provides kernel-side support for the Random Number
235	  Generator hardware found on Freescale i.MX processors.
236
237	  To compile this driver as a module, choose M here: the
238	  module will be called mxc-rnga.
239
240	  If unsure, say Y.
241
242config 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
246	default HW_RANDOM
247	help
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.
251
252	  To compile this driver as a module, choose M here: the
253	  module will be called imx-rngc.
254
255	  If unsure, say Y.
256
257config HW_RANDOM_INGENIC_RNG
258	tristate "Ingenic Random Number Generator support"
259	depends on HW_RANDOM
260	depends on MACH_JZ4780 || MACH_X1000
261	default HW_RANDOM
262	help
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.
266
267	  To compile this driver as a module, choose M here: the
268	  module will be called ingenic-rng.
269
270	  If unsure, say Y.
271
272config HW_RANDOM_INGENIC_TRNG
273	tristate "Ingenic True Random Number Generator support"
274	depends on HW_RANDOM
275	depends on MACH_X1830
276	default HW_RANDOM
277	help
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.
280
281	  To compile this driver as a module, choose M here: the
282	  module will be called ingenic-trng.
283
284	  If unsure, say Y.
285
286config HW_RANDOM_NOMADIK
287	tristate "ST-Ericsson Nomadik Random Number Generator support"
288	depends on ARCH_NOMADIK || COMPILE_TEST
289	default HW_RANDOM
290	help
291	  This driver provides kernel-side support for the Random Number
292	  Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
293
294	  To compile this driver as a module, choose M here: the
295	  module will be called nomadik-rng.
296
297	  If unsure, say Y.
298
299config HW_RANDOM_PSERIES
300	tristate "pSeries HW Random Number Generator support"
301	depends on PPC64 && IBMVIO
302	default HW_RANDOM
303	help
304	  This driver provides kernel-side support for the Random Number
305	  Generator hardware found on POWER7+ machines and above
306
307	  To compile this driver as a module, choose M here: the
308	  module will be called pseries-rng.
309
310	  If unsure, say Y.
311
312config HW_RANDOM_POWERNV
313	tristate "PowerNV Random Number Generator support"
314	depends on PPC_POWERNV
315	default HW_RANDOM
316	help
317	  This is the driver for Random Number Generator hardware found
318	  in POWER7+ and above machines for PowerNV platform.
319
320	  To compile this driver as a module, choose M here: the
321	  module will be called powernv-rng.
322
323	  If unsure, say Y.
324
325config HW_RANDOM_HISI
326	tristate "Hisilicon Random Number Generator support"
327	depends on HW_RANDOM && ARCH_HISI
328	default HW_RANDOM
329	help
330	  This driver provides kernel-side support for the Random Number
331	  Generator hardware found on Hisilicon Hip04 and Hip05 SoC.
332
333	  To compile this driver as a module, choose M here: the
334	  module will be called hisi-rng.
335
336	  If unsure, say Y.
337
338config HW_RANDOM_HISTB
339	tristate "Hisilicon STB Random Number Generator support"
340	depends on ARCH_HISI || COMPILE_TEST
341	default ARCH_HISI
342	help
343	  This driver provides kernel-side support for the Random Number
344	  Generator hardware found on Hisilicon Hi37xx SoC.
345
346	  To compile this driver as a module, choose M here: the
347	  module will be called histb-rng.
348
349config HW_RANDOM_ST
350	tristate "ST Microelectronics HW Random Number Generator support"
351	depends on HW_RANDOM && (ARCH_STI || COMPILE_TEST)
352	help
353	  This driver provides kernel-side support for the Random Number
354	  Generator hardware found on STi series of SoCs.
355
356	  To compile this driver as a module, choose M here: the
357	  module will be called st-rng.
358
359config HW_RANDOM_XGENE
360	tristate "APM X-Gene True Random Number Generator (TRNG) support"
361	depends on HW_RANDOM && ARCH_XGENE
362	default HW_RANDOM
363	help
364	  This driver provides kernel-side support for the Random Number
365	  Generator hardware found on APM X-Gene SoC.
366
367	  To compile this driver as a module, choose M here: the
368	  module will be called xgene_rng.
369
370	  If unsure, say Y.
371
372config HW_RANDOM_STM32
373	tristate "STMicroelectronics STM32 random number generator"
374	depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST)
375	depends on HAS_IOMEM
376	default HW_RANDOM
377	help
378	  This driver provides kernel-side support for the Random Number
379	  Generator hardware found on STM32 microcontrollers.
380
381	  To compile this driver as a module, choose M here: the
382	  module will be called stm32-rng.
383
384	  If unsure, say N.
385
386config HW_RANDOM_PIC32
387	tristate "Microchip PIC32 Random Number Generator support"
388	depends on HW_RANDOM && MACH_PIC32
389	default y
390	help
391	  This driver provides kernel-side support for the Random Number
392	  Generator hardware found on a PIC32.
393
394	  To compile this driver as a module, choose M here. the
395	  module will be called pic32-rng.
396
397	  If unsure, say Y.
398
399config HW_RANDOM_POLARFIRE_SOC
400	tristate "Microchip PolarFire SoC Random Number Generator support"
401	depends on HW_RANDOM && POLARFIRE_SOC_SYS_CTRL
402	help
403	  This driver provides kernel-side support for the Random Number
404	  Generator hardware found on PolarFire SoC (MPFS).
405
406	  To compile this driver as a module, choose M here. The
407	  module will be called mfps_rng.
408
409	  If unsure, say N.
410
411
412config 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
417	help
418	  This driver provides kernel-side support for the Random Number
419	  Generator hardware found on Amlogic Meson SoCs.
420
421	  To compile this driver as a module, choose M here. the
422	  module will be called meson-rng.
423
424	  If unsure, say Y.
425
426config HW_RANDOM_CAVIUM
427	tristate "Cavium ThunderX Random Number Generator support"
428	depends on HW_RANDOM && PCI && ARCH_THUNDER
429	default HW_RANDOM
430	help
431	  This driver provides kernel-side support for the Random Number
432	  Generator hardware found on Cavium SoCs.
433
434	  To compile this driver as a module, choose M here: the
435	  module will be called cavium_rng.
436
437	  If unsure, say Y.
438
439config HW_RANDOM_MTK
440	tristate "Mediatek Random Number Generator support"
441	depends on ARCH_MEDIATEK || COMPILE_TEST
442	depends on HAS_IOMEM && OF
443	default HW_RANDOM if ARCH_MEDIATEK
444	help
445	  This driver provides kernel-side support for the Random Number
446	  Generator hardware found on Mediatek SoCs.
447
448	  To compile this driver as a module, choose M here. the
449	  module will be called mtk-rng.
450
451	  If unsure, say Y.
452
453config HW_RANDOM_S390
454	tristate "S390 True Random Number Generator support"
455	depends on S390
456	default HW_RANDOM
457	help
458	  This driver provides kernel-side support for the True
459	  Random Number Generator available as CPACF extension
460	  on modern s390 hardware platforms.
461
462	  To compile this driver as a module, choose M here: the
463	  module will be called s390-trng.
464
465	  If unsure, say Y.
466
467config HW_RANDOM_EXYNOS
468	tristate "Samsung Exynos True Random Number Generator support"
469	depends on ARCH_EXYNOS || COMPILE_TEST
470	depends on HAS_IOMEM
471	default HW_RANDOM if ARCH_EXYNOS
472	help
473	  This driver provides support for the True Random Number
474	  Generator available in Exynos SoCs.
475
476	  To compile this driver as a module, choose M here: the module
477	  will be called exynos-trng.
478
479	  If unsure, say Y.
480
481config HW_RANDOM_OPTEE
482	tristate "OP-TEE based Random Number Generator support"
483	depends on OPTEE
484	default HW_RANDOM
485	help
486	  This  driver provides support for OP-TEE based Random Number
487	  Generator on ARM SoCs where hardware entropy sources are not
488	  accessible to normal world (Linux).
489
490	  To compile this driver as a module, choose M here: the module
491	  will be called optee-rng.
492
493	  If unsure, say Y.
494
495config HW_RANDOM_NPCM
496	tristate "NPCM Random Number Generator support"
497	depends on ARCH_NPCM || COMPILE_TEST
498	depends on HAS_IOMEM
499	default HW_RANDOM if ARCH_NPCM
500	help
501	  This driver provides support for the Random Number
502	  Generator hardware available in Nuvoton NPCM SoCs.
503
504	  To compile this driver as a module, choose M here: the
505	  module will be called npcm-rng.
506
507	  If unsure, say Y.
508
509config HW_RANDOM_KEYSTONE
510	depends on ARCH_KEYSTONE || COMPILE_TEST
511	depends on HAS_IOMEM && OF
512	default HW_RANDOM
513	tristate "TI Keystone NETCP SA Hardware random number generator"
514	help
515	  This option enables Keystone's hardware random generator.
516
517config HW_RANDOM_CCTRNG
518	tristate "Arm CryptoCell True Random Number Generator support"
519	depends on HAS_IOMEM && OF
520	help
521	  Say 'Y' to enable the True Random Number Generator driver for the
522	  Arm TrustZone CryptoCell family of processors.
523	  Currently the CryptoCell 713 and 703 are supported.
524	  The driver is supported only in SoC where Trusted Execution
525	  Environment is not used.
526	  Choose 'M' to compile this driver as a module. The module
527	  will be called cctrng.
528	  If unsure, say 'N'.
529
530config HW_RANDOM_XIPHERA
531	tristate "Xiphera FPGA based True Random Number Generator support"
532	depends on HAS_IOMEM
533	help
534	  This driver provides kernel-side support for Xiphera True Random
535	  Number Generator Intellectual Property Core.
536
537	  To compile this driver as a module, choose M here: the
538	  module will be called xiphera-trng.
539
540config HW_RANDOM_ARM_SMCCC_TRNG
541	tristate "Arm SMCCC TRNG firmware interface support"
542	depends on HAVE_ARM_SMCCC_DISCOVERY
543	default HW_RANDOM
544	help
545	  Say 'Y' to enable the True Random Number Generator driver using
546	  the Arm SMCCC TRNG firmware interface. This reads entropy from
547	  higher exception levels (firmware, hypervisor). Uses SMCCC for
548	  communicating with the firmware:
549	  https://developer.arm.com/documentation/den0098/latest/
550
551	  To compile this driver as a module, choose M here: the
552	  module will be called arm_smccc_trng.
553
554config HW_RANDOM_CN10K
555       tristate "Marvell CN10K Random Number Generator support"
556       depends on HW_RANDOM && PCI && (ARM64 || (64BIT && COMPILE_TEST))
557       default HW_RANDOM
558       help
559	 This driver provides support for the True Random Number
560	 generator available in Marvell CN10K SoCs.
561
562	 To compile this driver as a module, choose M here.
563	 The module will be called cn10k_rng. If unsure, say Y.
564
565config HW_RANDOM_JH7110
566	tristate "StarFive JH7110 Random Number Generator support"
567	depends on SOC_STARFIVE || COMPILE_TEST
568	help
569	  This driver provides support for the True Random Number
570	  Generator in StarFive JH7110 SoCs.
571
572	  To compile this driver as a module, choose M here.
573	  The module will be called jh7110-trng.
574
575endif # HW_RANDOM
576
577config UML_RANDOM
578	depends on UML
579	select HW_RANDOM
580	tristate "UML Random Number Generator support"
581	help
582	  This option enables UML's "hardware" random number generator.  It
583	  attaches itself to the host's /dev/random, supplying as much entropy
584	  as the host has, rather than the small amount the UML gets from its
585	  own drivers. It registers itself as a rng-core driver thus providing
586	  a device which is usually called /dev/hwrng. This hardware random
587	  number generator does feed into the kernel's random number generator
588	  entropy pool.
589
590	  If unsure, say Y.
591