xref: /linux/drivers/char/hw_random/Kconfig (revision ed4bc1890b4984d0af447ad3cc1f93541623f8f3)
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 && 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_BCM_63XX || BCM63XX || BMIPS_GENERIC
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
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
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
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
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_TX4939
230	tristate "TX4939 Random Number Generator support"
231	depends on SOC_TX4939
232	default HW_RANDOM
233	help
234	  This driver provides kernel-side support for the Random Number
235	  Generator hardware found on TX4939 SoC.
236
237	  To compile this driver as a module, choose M here: the
238	  module will be called tx4939-rng.
239
240	  If unsure, say Y.
241
242config HW_RANDOM_MXC_RNGA
243	tristate "Freescale i.MX RNGA Random Number Generator"
244	depends on SOC_IMX31
245	default HW_RANDOM
246	help
247	  This driver provides kernel-side support for the Random Number
248	  Generator hardware found on Freescale i.MX processors.
249
250	  To compile this driver as a module, choose M here: the
251	  module will be called mxc-rnga.
252
253	  If unsure, say Y.
254
255config HW_RANDOM_IMX_RNGC
256	tristate "Freescale i.MX RNGC Random Number Generator"
257	depends on HAS_IOMEM && HAVE_CLK
258	depends on SOC_IMX25 || SOC_IMX6SL || SOC_IMX6SLL || SOC_IMX6UL || COMPILE_TEST
259	default HW_RANDOM
260	help
261	  This driver provides kernel-side support for the Random Number
262	  Generator Version C hardware found on some Freescale i.MX
263	  processors. Version B is also supported by this driver.
264
265	  To compile this driver as a module, choose M here: the
266	  module will be called imx-rngc.
267
268	  If unsure, say Y.
269
270config HW_RANDOM_INGENIC_RNG
271	tristate "Ingenic Random Number Generator support"
272	depends on HW_RANDOM
273	depends on MACH_JZ4780 || MACH_X1000
274	default HW_RANDOM
275	help
276	  This driver provides kernel-side support for the Random Number Generator
277	  hardware found in ingenic JZ4780 and X1000 SoC. MIPS Creator CI20 uses
278	  JZ4780 SoC, YSH & ATIL CU1000-Neo uses X1000 SoC.
279
280	  To compile this driver as a module, choose M here: the
281	  module will be called ingenic-rng.
282
283	  If unsure, say Y.
284
285config HW_RANDOM_NOMADIK
286	tristate "ST-Ericsson Nomadik Random Number Generator support"
287	depends on ARCH_NOMADIK
288	default HW_RANDOM
289	help
290	  This driver provides kernel-side support for the Random Number
291	  Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
292
293	  To compile this driver as a module, choose M here: the
294	  module will be called nomadik-rng.
295
296	  If unsure, say Y.
297
298config HW_RANDOM_PSERIES
299	tristate "pSeries HW Random Number Generator support"
300	depends on PPC64 && IBMVIO
301	default HW_RANDOM
302	help
303	  This driver provides kernel-side support for the Random Number
304	  Generator hardware found on POWER7+ machines and above
305
306	  To compile this driver as a module, choose M here: the
307	  module will be called pseries-rng.
308
309	  If unsure, say Y.
310
311config HW_RANDOM_POWERNV
312	tristate "PowerNV Random Number Generator support"
313	depends on PPC_POWERNV
314	default HW_RANDOM
315	help
316	  This is the driver for Random Number Generator hardware found
317	  in POWER7+ and above machines for PowerNV platform.
318
319	  To compile this driver as a module, choose M here: the
320	  module will be called powernv-rng.
321
322	  If unsure, say Y.
323
324config HW_RANDOM_HISI
325	tristate "Hisilicon Random Number Generator support"
326	depends on HW_RANDOM && ARCH_HISI
327	default HW_RANDOM
328	help
329	  This driver provides kernel-side support for the Random Number
330	  Generator hardware found on Hisilicon Hip04 and Hip05 SoC.
331
332	  To compile this driver as a module, choose M here: the
333	  module will be called hisi-rng.
334
335	  If unsure, say Y.
336
337config HW_RANDOM_HISI_V2
338	tristate "HiSilicon True Random Number Generator V2 support"
339	depends on HW_RANDOM && ARM64 && ACPI
340	default HW_RANDOM
341	help
342	  This driver provides kernel-side support for the True Random Number
343	  Generator V2 hardware found on HiSilicon Hi1620 SoC.
344
345	  To compile this driver as a module, choose M here: the
346	  module will be called hisi-trng-v2.
347
348	  If unsure, say Y.
349
350config HW_RANDOM_ST
351	tristate "ST Microelectronics HW Random Number Generator support"
352	depends on HW_RANDOM && ARCH_STI
353	help
354	  This driver provides kernel-side support for the Random Number
355	  Generator hardware found on STi series of SoCs.
356
357	  To compile this driver as a module, choose M here: the
358	  module will be called st-rng.
359
360config HW_RANDOM_XGENE
361	tristate "APM X-Gene True Random Number Generator (TRNG) support"
362	depends on HW_RANDOM && ARCH_XGENE
363	default HW_RANDOM
364	help
365	  This driver provides kernel-side support for the Random Number
366	  Generator hardware found on APM X-Gene SoC.
367
368	  To compile this driver as a module, choose M here: the
369	  module will be called xgene_rng.
370
371	  If unsure, say Y.
372
373config HW_RANDOM_STM32
374	tristate "STMicroelectronics STM32 random number generator"
375	depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST)
376	depends on HAS_IOMEM
377	default HW_RANDOM
378	help
379	  This driver provides kernel-side support for the Random Number
380	  Generator hardware found on STM32 microcontrollers.
381
382	  To compile this driver as a module, choose M here: the
383	  module will be called stm32-rng.
384
385	  If unsure, say N.
386
387config HW_RANDOM_PIC32
388	tristate "Microchip PIC32 Random Number Generator support"
389	depends on HW_RANDOM && MACH_PIC32
390	default y
391	help
392	  This driver provides kernel-side support for the Random Number
393	  Generator hardware found on a PIC32.
394
395	  To compile this driver as a module, choose M here. the
396	  module will be called pic32-rng.
397
398	  If unsure, say Y.
399
400config HW_RANDOM_MESON
401	tristate "Amlogic Meson Random Number Generator support"
402	depends on HW_RANDOM
403	depends on ARCH_MESON || COMPILE_TEST
404	default y
405	help
406	  This driver provides kernel-side support for the Random Number
407	  Generator hardware found on Amlogic Meson SoCs.
408
409	  To compile this driver as a module, choose M here. the
410	  module will be called meson-rng.
411
412	  If unsure, say Y.
413
414config HW_RANDOM_CAVIUM
415	tristate "Cavium ThunderX Random Number Generator support"
416	depends on HW_RANDOM && PCI && (ARM64 || (COMPILE_TEST && 64BIT))
417	default HW_RANDOM
418	help
419	  This driver provides kernel-side support for the Random Number
420	  Generator hardware found on Cavium SoCs.
421
422	  To compile this driver as a module, choose M here: the
423	  module will be called cavium_rng.
424
425	  If unsure, say Y.
426
427config HW_RANDOM_MTK
428	tristate "Mediatek Random Number Generator support"
429	depends on HW_RANDOM
430	depends on ARCH_MEDIATEK || COMPILE_TEST
431	default y
432	help
433	  This driver provides kernel-side support for the Random Number
434	  Generator hardware found on Mediatek SoCs.
435
436	  To compile this driver as a module, choose M here. the
437	  module will be called mtk-rng.
438
439	  If unsure, say Y.
440
441config HW_RANDOM_S390
442	tristate "S390 True Random Number Generator support"
443	depends on S390
444	default HW_RANDOM
445	help
446	  This driver provides kernel-side support for the True
447	  Random Number Generator available as CPACF extension
448	  on modern s390 hardware platforms.
449
450	  To compile this driver as a module, choose M here: the
451	  module will be called s390-trng.
452
453	  If unsure, say Y.
454
455config HW_RANDOM_EXYNOS
456	tristate "Samsung Exynos True Random Number Generator support"
457	depends on ARCH_EXYNOS || COMPILE_TEST
458	default HW_RANDOM
459	help
460	  This driver provides support for the True Random Number
461	  Generator available in Exynos SoCs.
462
463	  To compile this driver as a module, choose M here: the module
464	  will be called exynos-trng.
465
466	  If unsure, say Y.
467
468config HW_RANDOM_OPTEE
469	tristate "OP-TEE based Random Number Generator support"
470	depends on OPTEE
471	default HW_RANDOM
472	help
473	  This  driver provides support for OP-TEE based Random Number
474	  Generator on ARM SoCs where hardware entropy sources are not
475	  accessible to normal world (Linux).
476
477	  To compile this driver as a module, choose M here: the module
478	  will be called optee-rng.
479
480	  If unsure, say Y.
481
482config HW_RANDOM_NPCM
483	tristate "NPCM Random Number Generator support"
484	depends on ARCH_NPCM || COMPILE_TEST
485	default HW_RANDOM
486	help
487 	  This driver provides support for the Random Number
488	  Generator hardware available in Nuvoton NPCM SoCs.
489
490	  To compile this driver as a module, choose M here: the
491	  module will be called npcm-rng.
492
493 	  If unsure, say Y.
494
495config HW_RANDOM_KEYSTONE
496	depends on ARCH_KEYSTONE || COMPILE_TEST
497	default HW_RANDOM
498	tristate "TI Keystone NETCP SA Hardware random number generator"
499	help
500	  This option enables Keystone's hardware random generator.
501
502config HW_RANDOM_CCTRNG
503	tristate "Arm CryptoCell True Random Number Generator support"
504	depends on HAS_IOMEM && OF
505	help
506	  Say 'Y' to enable the True Random Number Generator driver for the
507	  Arm TrustZone CryptoCell family of processors.
508	  Currently the CryptoCell 713 and 703 are supported.
509	  The driver is supported only in SoC where Trusted Execution
510	  Environment is not used.
511	  Choose 'M' to compile this driver as a module. The module
512	  will be called cctrng.
513	  If unsure, say 'N'.
514
515endif # HW_RANDOM
516
517config UML_RANDOM
518	depends on UML
519	tristate "Hardware random number generator"
520	help
521	  This option enables UML's "hardware" random number generator.  It
522	  attaches itself to the host's /dev/random, supplying as much entropy
523	  as the host has, rather than the small amount the UML gets from its
524	  own drivers.  It registers itself as a standard hardware random number
525	  generator, major 10, minor 183, and the canonical device name is
526	  /dev/hwrng.
527	  The way to make use of this is to install the rng-tools package
528	  (check your distro, or download from
529	  http://sourceforge.net/projects/gkernel/).  rngd periodically reads
530	  /dev/hwrng and injects the entropy into /dev/random.
531