blob: 05948985f70a1d669bb9f16c3e9ad532478f5c17 [file] [log] [blame]
Michael Buesch844dd052006-06-26 00:24:59 -07001#
2# Hardware Random Number Generator (RNG) configuration
3#
4
Jean Delvare02001612014-04-08 14:33:04 +02005menuconfig HW_RANDOM
Jan Beulichfed806f2006-12-06 20:38:20 -08006 tristate "Hardware Random Number Generator Core support"
7 default m
Michael Buesch844dd052006-06-26 00:24:59 -07008 ---help---
9 Hardware Random Number Generator Core infrastructure.
10
Jan Beulichfed806f2006-12-06 20:38:20 -080011 To compile this driver as a module, choose M here: the
David Brownell537878d2008-03-24 12:29:51 -070012 module will be called rng-core. This provides a device
13 that's usually called /dev/hw_random, and which exposes one
14 of possibly several hardware random number generators.
15
16 These hardware random number generators do not feed directly
17 into the kernel's random number generator. That is usually
18 handled by the "rngd" daemon. Documentation/hw_random.txt
19 has more information.
Jan Beulichfed806f2006-12-06 20:38:20 -080020
Michael Buesch844dd052006-06-26 00:24:59 -070021 If unsure, say Y.
Michael Bueschca644bd2006-06-26 00:24:59 -070022
Jean Delvare02001612014-04-08 14:33:04 +020023if HW_RANDOM
24
Alexander Clouter9c3c1332009-02-22 12:03:56 +080025config HW_RANDOM_TIMERIOMEM
26 tristate "Timer IOMEM HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +020027 depends on HAS_IOMEM
Alexander Clouter9c3c1332009-02-22 12:03:56 +080028 ---help---
29 This driver provides kernel-side support for a generic Random
30 Number Generator used by reading a 'dumb' iomem address that
31 is to be read no faster than, for example, once a second;
32 the default FPGA bitstream on the TS-7800 has such functionality.
33
34 To compile this driver as a module, choose M here: the
35 module will be called timeriomem-rng.
36
37 If unsure, say Y.
38
Michael Bueschca644bd2006-06-26 00:24:59 -070039config HW_RANDOM_INTEL
40 tristate "Intel HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +020041 depends on (X86 || IA64) && PCI
Jan Beulichfed806f2006-12-06 20:38:20 -080042 default HW_RANDOM
Michael Bueschca644bd2006-06-26 00:24:59 -070043 ---help---
44 This driver provides kernel-side support for the Random Number
45 Generator hardware found on Intel i8xx-based motherboards.
46
47 To compile this driver as a module, choose M here: the
48 module will be called intel-rng.
49
50 If unsure, say Y.
Michael Buesch96d63c02006-06-26 00:25:00 -070051
52config HW_RANDOM_AMD
53 tristate "AMD HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +020054 depends on (X86 || PPC_MAPLE) && PCI
Jan Beulichfed806f2006-12-06 20:38:20 -080055 default HW_RANDOM
Michael Buesch96d63c02006-06-26 00:25:00 -070056 ---help---
57 This driver provides kernel-side support for the Random Number
58 Generator hardware found on AMD 76x-based motherboards.
59
60 To compile this driver as a module, choose M here: the
61 module will be called amd-rng.
62
63 If unsure, say Y.
Michael Bueschef5d8622006-06-26 00:25:01 -070064
Peter Korsgaard677d3e22011-10-06 19:56:30 +020065config HW_RANDOM_ATMEL
66 tristate "Atmel Random Number Generator support"
Jean Delvare2d9cab52014-04-08 14:36:37 +020067 depends on ARCH_AT91 && HAVE_CLK
68 default HW_RANDOM
Peter Korsgaard677d3e22011-10-06 19:56:30 +020069 ---help---
70 This driver provides kernel-side support for the Random Number
71 Generator hardware found on Atmel AT91 devices.
72
73 To compile this driver as a module, choose M here: the
74 module will be called atmel-rng.
75
76 If unsure, say Y.
77
Florian Fainelli553072b2012-07-24 16:33:11 +020078config HW_RANDOM_BCM63XX
79 tristate "Broadcom BCM63xx Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +020080 depends on BCM63XX
Florian Fainelli553072b2012-07-24 16:33:11 +020081 default HW_RANDOM
82 ---help---
83 This driver provides kernel-side support for the Random Number
84 Generator hardware found on the Broadcom BCM63xx SoCs.
85
86 To compile this driver as a module, choose M here: the
87 module will be called bcm63xx-rng
88
89 If unusure, say Y.
90
Lubomir Rintel8c4196a2013-03-28 07:19:38 +010091config HW_RANDOM_BCM2835
92 tristate "Broadcom BCM2835 Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +020093 depends on ARCH_BCM2835
Lubomir Rintel8c4196a2013-03-28 07:19:38 +010094 default HW_RANDOM
95 ---help---
96 This driver provides kernel-side support for the Random Number
97 Generator hardware found on the Broadcom BCM2835 SoCs.
98
99 To compile this driver as a module, choose M here: the
100 module will be called bcm2835-rng
101
102 If unsure, say Y.
Florian Fainelli553072b2012-07-24 16:33:11 +0200103
Michael Bueschef5d8622006-06-26 00:25:01 -0700104config HW_RANDOM_GEODE
105 tristate "AMD Geode HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200106 depends on X86_32 && PCI
Jan Beulichfed806f2006-12-06 20:38:20 -0800107 default HW_RANDOM
Michael Bueschef5d8622006-06-26 00:25:01 -0700108 ---help---
109 This driver provides kernel-side support for the Random Number
110 Generator hardware found on the AMD Geode LX.
111
112 To compile this driver as a module, choose M here: the
113 module will be called geode-rng.
114
115 If unsure, say Y.
Michael Buesch13523362006-06-26 00:25:02 -0700116
David S. Millerce087152008-06-03 15:56:11 -0700117config HW_RANDOM_N2RNG
118 tristate "Niagara2 Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200119 depends on SPARC64
David S. Millerce087152008-06-03 15:56:11 -0700120 default HW_RANDOM
121 ---help---
122 This driver provides kernel-side support for the Random Number
123 Generator hardware found on Niagara2 cpus.
124
125 To compile this driver as a module, choose M here: the
126 module will be called n2-rng.
127
128 If unsure, say Y.
129
Michael Buesch13523362006-06-26 00:25:02 -0700130config HW_RANDOM_VIA
131 tristate "VIA HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200132 depends on X86
Jan Beulichfed806f2006-12-06 20:38:20 -0800133 default HW_RANDOM
Michael Buesch13523362006-06-26 00:25:02 -0700134 ---help---
135 This driver provides kernel-side support for the Random Number
136 Generator hardware found on VIA based motherboards.
137
138 To compile this driver as a module, choose M here: the
139 module will be called via-rng.
140
141 If unsure, say Y.
Michael Bueschd7174bc2006-06-26 00:25:02 -0700142
143config HW_RANDOM_IXP4XX
Krzysztof Hałasa553da852010-03-23 20:22:13 +0100144 tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200145 depends on ARCH_IXP4XX
Jan Beulichfed806f2006-12-06 20:38:20 -0800146 default HW_RANDOM
Michael Bueschd7174bc2006-06-26 00:25:02 -0700147 ---help---
Krzysztof Hałasa553da852010-03-23 20:22:13 +0100148 This driver provides kernel-side support for the Pseudo-Random
149 Number Generator hardware found on the Intel IXP45x/46x NPU.
Michael Bueschd7174bc2006-06-26 00:25:02 -0700150
151 To compile this driver as a module, choose M here: the
152 module will be called ixp4xx-rng.
153
154 If unsure, say Y.
Michael Bueschebc915a2006-06-26 00:25:03 -0700155
156config HW_RANDOM_OMAP
157 tristate "OMAP Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200158 depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS
Jan Beulichfed806f2006-12-06 20:38:20 -0800159 default HW_RANDOM
Michael Bueschebc915a2006-06-26 00:25:03 -0700160 ---help---
161 This driver provides kernel-side support for the Random Number
Lokesh Vutlae83872c2013-08-05 20:17:23 +0530162 Generator hardware found on OMAP16xx, OMAP2/3/4/5 and AM33xx/AM43xx
163 multimedia processors.
Michael Bueschebc915a2006-06-26 00:25:03 -0700164
165 To compile this driver as a module, choose M here: the
166 module will be called omap-rng.
167
168 If unsure, say Y.
Olof Johanssonb8cb3442007-05-09 02:33:35 -0700169
Pali Rohár1c6b7c22013-09-20 15:25:06 +0200170config HW_RANDOM_OMAP3_ROM
171 tristate "OMAP3 ROM Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200172 depends on ARCH_OMAP3
Pali Rohár1c6b7c22013-09-20 15:25:06 +0200173 default HW_RANDOM
174 ---help---
175 This driver provides kernel-side support for the Random Number
176 Generator hardware found on OMAP34xx processors.
177
178 To compile this driver as a module, choose M here: the
179 module will be called omap3-rom-rng.
180
181 If unsure, say Y.
182
David Daneyf7557dc2009-08-20 14:10:23 -0700183config HW_RANDOM_OCTEON
184 tristate "Octeon Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200185 depends on CAVIUM_OCTEON_SOC
David Daneyf7557dc2009-08-20 14:10:23 -0700186 default HW_RANDOM
187 ---help---
188 This driver provides kernel-side support for the Random Number
189 Generator hardware found on Octeon processors.
190
191 To compile this driver as a module, choose M here: the
192 module will be called octeon-rng.
193
194 If unsure, say Y.
195
Olof Johanssonb8cb3442007-05-09 02:33:35 -0700196config HW_RANDOM_PASEMI
197 tristate "PA Semi HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200198 depends on PPC_PASEMI
Olof Johanssonb8cb3442007-05-09 02:33:35 -0700199 default HW_RANDOM
200 ---help---
201 This driver provides kernel-side support for the Random Number
Olof Johansson0d08a842007-11-04 20:57:45 -0600202 Generator hardware found on PA Semi PWRficient SoCs.
Olof Johanssonb8cb3442007-05-09 02:33:35 -0700203
204 To compile this driver as a module, choose M here: the
205 module will be called pasemi-rng.
206
207 If unsure, say Y.
208
Rusty Russellf7f510e2008-05-30 15:09:44 -0500209config HW_RANDOM_VIRTIO
210 tristate "VirtIO Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200211 depends on VIRTIO
Rusty Russellf7f510e2008-05-30 15:09:44 -0500212 ---help---
213 This driver provides kernel-side support for the virtual Random Number
214 Generator hardware.
215
216 To compile this driver as a module, choose M here: the
217 module will be called virtio-rng. If unsure, say N.
Alan Carvalho de Assis45001e92009-04-02 12:38:41 -0300218
Atsushi Nemoto049a9472009-06-02 23:54:21 +0900219config HW_RANDOM_TX4939
220 tristate "TX4939 Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200221 depends on SOC_TX4939
Atsushi Nemoto049a9472009-06-02 23:54:21 +0900222 default HW_RANDOM
223 ---help---
224 This driver provides kernel-side support for the Random Number
225 Generator hardware found on TX4939 SoC.
226
227 To compile this driver as a module, choose M here: the
228 module will be called tx4939-rng.
229
230 If unsure, say Y.
231
Alan Carvalho de Assis45001e92009-04-02 12:38:41 -0300232config HW_RANDOM_MXC_RNGA
233 tristate "Freescale i.MX RNGA Random Number Generator"
Jean Delvare02001612014-04-08 14:33:04 +0200234 depends on ARCH_HAS_RNGA
Jean Delvare2d9cab52014-04-08 14:36:37 +0200235 default HW_RANDOM
Alan Carvalho de Assis45001e92009-04-02 12:38:41 -0300236 ---help---
237 This driver provides kernel-side support for the Random Number
238 Generator hardware found on Freescale i.MX processors.
239
240 To compile this driver as a module, choose M here: the
241 module will be called mxc-rnga.
242
243 If unsure, say Y.
Alessandro Rubinibc85b252009-12-19 19:45:43 +0800244
245config HW_RANDOM_NOMADIK
246 tristate "ST-Ericsson Nomadik Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200247 depends on ARCH_NOMADIK
Jean Delvare2d9cab52014-04-08 14:36:37 +0200248 default HW_RANDOM
Alessandro Rubinibc85b252009-12-19 19:45:43 +0800249 ---help---
250 This driver provides kernel-side support for the Random Number
251 Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
252
253 To compile this driver as a module, choose M here: the
254 module will be called nomadik-rng.
255
256 If unsure, say Y.
Jamie Iles5efb94e2011-01-23 18:58:29 +1100257
Josh Boyer52527cf2011-06-27 15:34:54 +0800258config HW_RANDOM_PPC4XX
259 tristate "PowerPC 4xx generic true random number generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200260 depends on PPC && 4xx
Jean Delvare2d9cab52014-04-08 14:36:37 +0200261 default HW_RANDOM
Josh Boyer52527cf2011-06-27 15:34:54 +0800262 ---help---
263 This driver provides the kernel-side support for the TRNG hardware
264 found in the security function of some PowerPC 4xx SoCs.
265
266 To compile this driver as a module, choose M here: the
267 module will be called ppc4xx-rng.
268
269 If unsure, say N.
Al Virod805a782011-08-18 20:13:00 +0100270
Kent Yoder649e9ea2012-04-12 05:08:53 +0000271config HW_RANDOM_PSERIES
272 tristate "pSeries HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200273 depends on PPC64 && IBMVIO
Kent Yoder649e9ea2012-04-12 05:08:53 +0000274 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.
Jonghwa Leeb3296692012-06-29 09:43:26 +0900283
Michael Ellerman66548e42013-10-11 14:07:58 +1100284config HW_RANDOM_POWERNV
285 tristate "PowerNV Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200286 depends on PPC_POWERNV
Michael Ellerman66548e42013-10-11 14:07:58 +1100287 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
Jonghwa Leeb3296692012-06-29 09:43:26 +0900297config HW_RANDOM_EXYNOS
298 tristate "EXYNOS HW random number generator support"
Jean Delvare2d9cab52014-04-08 14:36:37 +0200299 depends on ARCH_EXYNOS
300 default HW_RANDOM
Jonghwa Leeb3296692012-06-29 09:43:26 +0900301 ---help---
302 This driver provides kernel-side support for the Random Number
303 Generator hardware found on EXYNOS SOCs.
304
305 To compile this driver as a module, choose M here: the
306 module will be called exynos-rng.
307
308 If unsure, say Y.
Kent Yoder578b0162012-08-08 14:18:57 -0500309
310config HW_RANDOM_TPM
311 tristate "TPM HW Random Number Generator support"
Jean Delvare02001612014-04-08 14:33:04 +0200312 depends on TCG_TPM
Kent Yoder578b0162012-08-08 14:18:57 -0500313 default HW_RANDOM
314 ---help---
315 This driver provides kernel-side support for the Random Number
316 Generator in the Trusted Platform Module
317
318 To compile this driver as a module, choose M here: the
319 module will be called tpm-rng.
320
321 If unsure, say Y.
Stanimir Varbanov0d289782013-10-15 17:11:18 +0300322
Zhen Kong4292a4e2015-04-30 16:30:37 -0700323config HW_RANDOM_MSM_LEGACY
324 tristate "Qualcomm MSM Random Number Generator support (LEGACY)"
325 depends on HW_RANDOM && ARCH_MSM
326 select CRYPTO_AES
327 select CRYPTO_ECB
328 default n
329 ---help---
330 This driver provides kernel-side support for the Random Number
331 Generator hardware found on Qualcomm MSM SoCs.
332
333 To compile this driver as a module, choose M here: the
334 module will be called msm_rng.
335
336 If unsure, say Y.
337
Stanimir Varbanov0d289782013-10-15 17:11:18 +0300338config HW_RANDOM_MSM
Linus Torvalds639b4ac2014-06-07 19:44:40 -0700339 tristate "Qualcomm SoCs Random Number Generator support"
340 depends on HW_RANDOM && ARCH_QCOM
Jean Delvare2d9cab52014-04-08 14:36:37 +0200341 default HW_RANDOM
Stanimir Varbanov0d289782013-10-15 17:11:18 +0300342 ---help---
343 This driver provides kernel-side support for the Random Number
Linus Torvalds639b4ac2014-06-07 19:44:40 -0700344 Generator hardware found on Qualcomm SoCs.
Stanimir Varbanov0d289782013-10-15 17:11:18 +0300345
346 To compile this driver as a module, choose M here. the
347 module will be called msm-rng.
348
349 If unsure, say Y.
Jean Delvaredc64ef02014-04-08 14:27:31 +0200350
Feng Kana91ae4e2014-08-22 16:26:38 -0700351config HW_RANDOM_XGENE
352 tristate "APM X-Gene True Random Number Generator (TRNG) support"
353 depends on HW_RANDOM && ARCH_XGENE
354 default HW_RANDOM
355 ---help---
356 This driver provides kernel-side support for the Random Number
357 Generator hardware found on APM X-Gene SoC.
358
359 To compile this driver as a module, choose M here: the
360 module will be called xgene_rng.
361
362 If unsure, say Y.
363
Jean Delvare02001612014-04-08 14:33:04 +0200364endif # HW_RANDOM
365
Al Virod805a782011-08-18 20:13:00 +0100366config UML_RANDOM
Michael Buesch844dd052006-06-26 00:24:59 -0700367 depends on UML
368 tristate "Hardware random number generator"
369 help
370 This option enables UML's "hardware" random number generator. It
371 attaches itself to the host's /dev/random, supplying as much entropy
372 as the host has, rather than the small amount the UML gets from its
373 own drivers. It registers itself as a standard hardware random number
374 generator, major 10, minor 183, and the canonical device name is
375 /dev/hwrng.
376 The way to make use of this is to install the rng-tools package
377 (check your distro, or download from
378 http://sourceforge.net/projects/gkernel/). rngd periodically reads
379 /dev/hwrng and injects the entropy into /dev/random.