xref: /openbmc/linux/drivers/char/hw_random/Kconfig (revision 023e4163)
1#
2# Hardware Random Number Generator (RNG) configuration
3#
4
5menuconfig HW_RANDOM
6	tristate "Hardware Random Number Generator Core support"
7	default m
8	---help---
9	  Hardware Random Number Generator Core infrastructure.
10
11	  To compile this driver as a module, choose M here: the
12	  module will be called rng-core.  This provides a device
13	  that's usually called /dev/hwrng, and which exposes one
14	  of possibly several hardware random number generators.
15
16	  These hardware random number generators do feed into the
17	  kernel's random number generator entropy pool.
18
19	  If unsure, say Y.
20
21if HW_RANDOM
22
23config HW_RANDOM_TIMERIOMEM
24	tristate "Timer IOMEM HW Random Number Generator support"
25	depends on HAS_IOMEM
26	---help---
27	  This driver provides kernel-side support for a generic Random
28	  Number Generator used by reading a 'dumb' iomem address that
29	  is to be read no faster than, for example, once a second;
30	  the default FPGA bitstream on the TS-7800 has such functionality.
31
32	  To compile this driver as a module, choose M here: the
33	  module will be called timeriomem-rng.
34
35	  If unsure, say Y.
36
37config HW_RANDOM_INTEL
38	tristate "Intel HW Random Number Generator support"
39	depends on (X86 || IA64) && PCI
40	default HW_RANDOM
41	---help---
42	  This driver provides kernel-side support for the Random Number
43	  Generator hardware found on Intel i8xx-based motherboards.
44
45	  To compile this driver as a module, choose M here: the
46	  module will be called intel-rng.
47
48	  If unsure, say Y.
49
50config HW_RANDOM_AMD
51	tristate "AMD HW Random Number Generator support"
52	depends on (X86 || PPC_MAPLE) && PCI
53	default HW_RANDOM
54	---help---
55	  This driver provides kernel-side support for the Random Number
56	  Generator hardware found on AMD 76x-based motherboards.
57
58	  To compile this driver as a module, choose M here: the
59	  module will be called amd-rng.
60
61	  If unsure, say Y.
62
63config HW_RANDOM_ATMEL
64	tristate "Atmel Random Number Generator support"
65	depends on ARCH_AT91 && HAVE_CLK && OF
66	default HW_RANDOM
67	---help---
68	  This driver provides kernel-side support for the Random Number
69	  Generator hardware found on Atmel AT91 devices.
70
71	  To compile this driver as a module, choose M here: the
72	  module will be called atmel-rng.
73
74	  If unsure, say Y.
75
76config HW_RANDOM_BCM2835
77	tristate "Broadcom BCM2835/BCM63xx Random Number Generator support"
78	depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \
79		   ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC
80	default HW_RANDOM
81	---help---
82	  This driver provides kernel-side support for the Random Number
83	  Generator hardware found on the Broadcom BCM2835 and BCM63xx SoCs.
84
85	  To compile this driver as a module, choose M here: the
86	  module will be called bcm2835-rng
87
88	  If unsure, say Y.
89
90config HW_RANDOM_IPROC_RNG200
91	tristate "Broadcom iProc/STB RNG200 support"
92	depends on ARCH_BCM_IPROC || ARCH_BRCMSTB
93	default HW_RANDOM
94	---help---
95	  This driver provides kernel-side support for the RNG200
96	  hardware found on the Broadcom iProc and STB SoCs.
97
98	  To compile this driver as a module, choose M here: the
99	  module will be called iproc-rng200
100
101	  If unsure, say Y.
102
103config HW_RANDOM_GEODE
104	tristate "AMD Geode HW Random Number Generator support"
105	depends on X86_32 && PCI
106	default HW_RANDOM
107	---help---
108	  This driver provides kernel-side support for the Random Number
109	  Generator hardware found on the AMD Geode LX.
110
111	  To compile this driver as a module, choose M here: the
112	  module will be called geode-rng.
113
114	  If unsure, say Y.
115
116config HW_RANDOM_N2RNG
117	tristate "Niagara2 Random Number Generator support"
118	depends on SPARC64
119	default HW_RANDOM
120	---help---
121	  This driver provides kernel-side support for the Random Number
122	  Generator hardware found on Niagara2 cpus.
123
124	  To compile this driver as a module, choose M here: the
125	  module will be called n2-rng.
126
127	  If unsure, say Y.
128
129config HW_RANDOM_VIA
130	tristate "VIA HW Random Number Generator support"
131	depends on X86
132	default HW_RANDOM
133	---help---
134	  This driver provides kernel-side support for the Random Number
135	  Generator hardware found on VIA based motherboards.
136
137	  To compile this driver as a module, choose M here: the
138	  module will be called via-rng.
139
140	  If unsure, say Y.
141
142config HW_RANDOM_IXP4XX
143	tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
144	depends on ARCH_IXP4XX
145	default HW_RANDOM
146	---help---
147	  This driver provides kernel-side support for the Pseudo-Random
148	  Number Generator hardware found on the Intel IXP45x/46x NPU.
149
150	  To compile this driver as a module, choose M here: the
151	  module will be called ixp4xx-rng.
152
153	  If unsure, say Y.
154
155config HW_RANDOM_OMAP
156	tristate "OMAP Random Number Generator support"
157	depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS || ARCH_MVEBU
158	default HW_RANDOM
159 	---help---
160 	  This driver provides kernel-side support for the Random Number
161	  Generator hardware found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx
162	  multimedia processors, and Marvell Armada 7k/8k SoCs.
163
164	  To compile this driver as a module, choose M here: the
165	  module will be called omap-rng.
166
167 	  If unsure, say Y.
168
169config HW_RANDOM_OMAP3_ROM
170	tristate "OMAP3 ROM Random Number Generator support"
171	depends on ARCH_OMAP3
172	default HW_RANDOM
173	---help---
174	  This driver provides kernel-side support for the Random Number
175	  Generator hardware found on OMAP34xx processors.
176
177	  To compile this driver as a module, choose M here: the
178	  module will be called omap3-rom-rng.
179
180	  If unsure, say Y.
181
182config HW_RANDOM_OCTEON
183	tristate "Octeon Random Number Generator support"
184	depends on CAVIUM_OCTEON_SOC
185	default HW_RANDOM
186	---help---
187	  This driver provides kernel-side support for the Random Number
188	  Generator hardware found on Octeon processors.
189
190	  To compile this driver as a module, choose M here: the
191	  module will be called octeon-rng.
192
193	  If unsure, say Y.
194
195config HW_RANDOM_PASEMI
196	tristate "PA Semi HW Random Number Generator support"
197	depends on PPC_PASEMI
198	default HW_RANDOM
199	---help---
200	  This driver provides kernel-side support for the Random Number
201	  Generator hardware found on PA Semi PWRficient SoCs.
202
203	  To compile this driver as a module, choose M here: the
204	  module will be called pasemi-rng.
205
206	  If unsure, say Y.
207
208config HW_RANDOM_VIRTIO
209	tristate "VirtIO Random Number Generator support"
210	depends on VIRTIO
211	---help---
212	  This driver provides kernel-side support for the virtual Random Number
213	  Generator hardware.
214
215	  To compile this driver as a module, choose M here: the
216	  module will be called virtio-rng.  If unsure, say N.
217
218config HW_RANDOM_TX4939
219	tristate "TX4939 Random Number Generator support"
220	depends on SOC_TX4939
221	default HW_RANDOM
222	---help---
223	  This driver provides kernel-side support for the Random Number
224	  Generator hardware found on TX4939 SoC.
225
226	  To compile this driver as a module, choose M here: the
227	  module will be called tx4939-rng.
228
229	  If unsure, say Y.
230
231config HW_RANDOM_MXC_RNGA
232	tristate "Freescale i.MX RNGA Random Number Generator"
233	depends on SOC_IMX31
234	default HW_RANDOM
235	---help---
236	  This driver provides kernel-side support for the Random Number
237	  Generator hardware found on Freescale i.MX processors.
238
239	  To compile this driver as a module, choose M here: the
240	  module will be called mxc-rnga.
241
242	  If unsure, say Y.
243
244config HW_RANDOM_IMX_RNGC
245	tristate "Freescale i.MX RNGC Random Number Generator"
246	depends on ARCH_MXC
247	default HW_RANDOM
248	---help---
249	  This driver provides kernel-side support for the Random Number
250	  Generator Version C hardware found on some Freescale i.MX
251	  processors. Version B is also supported by this driver.
252
253	  To compile this driver as a module, choose M here: the
254	  module will be called imx-rngc.
255
256	  If unsure, say Y.
257
258config HW_RANDOM_NOMADIK
259	tristate "ST-Ericsson Nomadik Random Number Generator support"
260	depends on ARCH_NOMADIK
261	default HW_RANDOM
262	---help---
263	  This driver provides kernel-side support for the Random Number
264	  Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
265
266	  To compile this driver as a module, choose M here: the
267	  module will be called nomadik-rng.
268
269	  If unsure, say Y.
270
271config HW_RANDOM_PSERIES
272	tristate "pSeries HW Random Number Generator support"
273	depends on PPC64 && IBMVIO
274	default HW_RANDOM
275	---help---
276	  This driver provides kernel-side support for the Random Number
277	  Generator hardware found on POWER7+ machines and above
278
279	  To compile this driver as a module, choose M here: the
280	  module will be called pseries-rng.
281
282	  If unsure, say Y.
283
284config HW_RANDOM_POWERNV
285	tristate "PowerNV Random Number Generator support"
286	depends on PPC_POWERNV
287	default HW_RANDOM
288	---help---
289	  This is the driver for Random Number Generator hardware found
290	  in POWER7+ and above machines for PowerNV platform.
291
292	  To compile this driver as a module, choose M here: the
293	  module will be called powernv-rng.
294
295	  If unsure, say Y.
296
297config HW_RANDOM_HISI
298	tristate "Hisilicon Random Number Generator support"
299	depends on HW_RANDOM && ARCH_HISI
300	default HW_RANDOM
301	---help---
302	  This driver provides kernel-side support for the Random Number
303	  Generator hardware found on Hisilicon Hip04 and Hip05 SoC.
304
305	  To compile this driver as a module, choose M here: the
306	  module will be called hisi-rng.
307
308	  If unsure, say Y.
309
310config HW_RANDOM_ST
311	tristate "ST Microelectronics HW Random Number Generator support"
312	depends on HW_RANDOM && ARCH_STI
313	---help---
314	  This driver provides kernel-side support for the Random Number
315	  Generator hardware found on STi series of SoCs.
316
317	  To compile this driver as a module, choose M here: the
318	  module will be called st-rng.
319
320config HW_RANDOM_XGENE
321	tristate "APM X-Gene True Random Number Generator (TRNG) support"
322	depends on HW_RANDOM && ARCH_XGENE
323	default HW_RANDOM
324	---help---
325	  This driver provides kernel-side support for the Random Number
326	  Generator hardware found on APM X-Gene SoC.
327
328	  To compile this driver as a module, choose M here: the
329	  module will be called xgene_rng.
330
331	  If unsure, say Y.
332
333config HW_RANDOM_STM32
334	tristate "STMicroelectronics STM32 random number generator"
335	depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST)
336	depends on HAS_IOMEM
337	default HW_RANDOM
338	help
339	  This driver provides kernel-side support for the Random Number
340	  Generator hardware found on STM32 microcontrollers.
341
342	  To compile this driver as a module, choose M here: the
343	  module will be called stm32-rng.
344
345	  If unsure, say N.
346
347config HW_RANDOM_PIC32
348	tristate "Microchip PIC32 Random Number Generator support"
349	depends on HW_RANDOM && MACH_PIC32
350	default y
351	---help---
352	  This driver provides kernel-side support for the Random Number
353	  Generator hardware found on a PIC32.
354
355	  To compile this driver as a module, choose M here. the
356	  module will be called pic32-rng.
357
358	  If unsure, say Y.
359
360config HW_RANDOM_MESON
361	tristate "Amlogic Meson Random Number Generator support"
362	depends on HW_RANDOM
363	depends on ARCH_MESON || COMPILE_TEST
364	default y
365	---help---
366	  This driver provides kernel-side support for the Random Number
367	  Generator hardware found on Amlogic Meson SoCs.
368
369	  To compile this driver as a module, choose M here. the
370	  module will be called meson-rng.
371
372	  If unsure, say Y.
373
374config HW_RANDOM_CAVIUM
375       tristate "Cavium ThunderX Random Number Generator support"
376       depends on HW_RANDOM && PCI && (ARM64 || (COMPILE_TEST && 64BIT))
377       default HW_RANDOM
378       ---help---
379         This driver provides kernel-side support for the Random Number
380         Generator hardware found on Cavium SoCs.
381
382         To compile this driver as a module, choose M here: the
383         module will be called cavium_rng.
384
385         If unsure, say Y.
386
387config HW_RANDOM_MTK
388	tristate "Mediatek Random Number Generator support"
389	depends on HW_RANDOM
390	depends on ARCH_MEDIATEK || COMPILE_TEST
391	default y
392	---help---
393	  This driver provides kernel-side support for the Random Number
394	  Generator hardware found on Mediatek SoCs.
395
396	  To compile this driver as a module, choose M here. the
397	  module will be called mtk-rng.
398
399	  If unsure, say Y.
400
401config HW_RANDOM_S390
402	tristate "S390 True Random Number Generator support"
403	depends on S390
404	default HW_RANDOM
405	---help---
406	  This driver provides kernel-side support for the True
407	  Random Number Generator available as CPACF extension
408	  on modern s390 hardware platforms.
409
410	  To compile this driver as a module, choose M here: the
411	  module will be called s390-trng.
412
413	  If unsure, say Y.
414
415config HW_RANDOM_EXYNOS
416	tristate "Samsung Exynos True Random Number Generator support"
417	depends on ARCH_EXYNOS || COMPILE_TEST
418	default HW_RANDOM
419	---help---
420	  This driver provides support for the True Random Number
421	  Generator available in Exynos SoCs.
422
423	  To compile this driver as a module, choose M here: the module
424	  will be called exynos-trng.
425
426	  If unsure, say Y.
427
428config HW_RANDOM_OPTEE
429	tristate "OP-TEE based Random Number Generator support"
430	depends on OPTEE
431	default HW_RANDOM
432	help
433	  This  driver provides support for OP-TEE based Random Number
434	  Generator on ARM SoCs where hardware entropy sources are not
435	  accessible to normal world (Linux).
436
437	  To compile this driver as a module, choose M here: the module
438	  will be called optee-rng.
439
440	  If unsure, say Y.
441
442endif # HW_RANDOM
443
444config UML_RANDOM
445	depends on UML
446	tristate "Hardware random number generator"
447	help
448	  This option enables UML's "hardware" random number generator.  It
449	  attaches itself to the host's /dev/random, supplying as much entropy
450	  as the host has, rather than the small amount the UML gets from its
451	  own drivers.  It registers itself as a standard hardware random number
452	  generator, major 10, minor 183, and the canonical device name is
453	  /dev/hwrng.
454	  The way to make use of this is to install the rng-tools package
455	  (check your distro, or download from
456	  http://sourceforge.net/projects/gkernel/).  rngd periodically reads
457	  /dev/hwrng and injects the entropy into /dev/random.
458
459config HW_RANDOM_KEYSTONE
460	depends on ARCH_KEYSTONE
461	default HW_RANDOM
462	tristate "TI Keystone NETCP SA Hardware random number generator"
463	help
464	  This option enables Keystone's hardware random generator.
465