Kconfig 13.9 KB
Newer Older
1 2 3 4
#
# Hardware Random Number Generator (RNG) configuration
#

5
menuconfig HW_RANDOM
6 7
	tristate "Hardware Random Number Generator Core support"
	default m
8 9 10
	---help---
	  Hardware Random Number Generator Core infrastructure.

11
	  To compile this driver as a module, choose M here: the
D
David Brownell 已提交
12
	  module will be called rng-core.  This provides a device
13
	  that's usually called /dev/hwrng, and which exposes one
D
David Brownell 已提交
14 15
	  of possibly several hardware random number generators.

16 17
	  These hardware random number generators do feed into the
	  kernel's random number generator entropy pool.
18

19
	  If unsure, say Y.
M
Michael Buesch 已提交
20

21 22
if HW_RANDOM

23 24
config HW_RANDOM_TIMERIOMEM
	tristate "Timer IOMEM HW Random Number Generator support"
25
	depends on HAS_IOMEM
26 27 28 29 30 31 32 33 34 35 36
	---help---
	  This driver provides kernel-side support for a generic Random
	  Number Generator used by reading a 'dumb' iomem address that
	  is to be read no faster than, for example, once a second;
	  the default FPGA bitstream on the TS-7800 has such functionality.

	  To compile this driver as a module, choose M here: the
	  module will be called timeriomem-rng.

	  If unsure, say Y.

M
Michael Buesch 已提交
37 38
config HW_RANDOM_INTEL
	tristate "Intel HW Random Number Generator support"
39
	depends on (X86 || IA64) && PCI
40
	default HW_RANDOM
M
Michael Buesch 已提交
41 42 43 44 45 46 47 48
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Intel i8xx-based motherboards.

	  To compile this driver as a module, choose M here: the
	  module will be called intel-rng.

	  If unsure, say Y.
M
Michael Buesch 已提交
49 50 51

config HW_RANDOM_AMD
	tristate "AMD HW Random Number Generator support"
52
	depends on (X86 || PPC_MAPLE) && PCI
53
	default HW_RANDOM
M
Michael Buesch 已提交
54 55 56 57 58 59 60 61
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on AMD 76x-based motherboards.

	  To compile this driver as a module, choose M here: the
	  module will be called amd-rng.

	  If unsure, say Y.
M
Michael Buesch 已提交
62

63 64
config HW_RANDOM_ATMEL
	tristate "Atmel Random Number Generator support"
B
Boris Brezillon 已提交
65
	depends on ARCH_AT91 && HAVE_CLK && OF
66
	default HW_RANDOM
67 68 69 70 71 72 73 74 75
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Atmel AT91 devices.

	  To compile this driver as a module, choose M here: the
	  module will be called atmel-rng.

	  If unsure, say Y.

76 77
config HW_RANDOM_BCM63XX
	tristate "Broadcom BCM63xx Random Number Generator support"
78
	depends on BCM63XX || BMIPS_GENERIC
79 80 81 82 83 84 85 86 87 88
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on the Broadcom BCM63xx SoCs.

	  To compile this driver as a module, choose M here: the
	  module will be called bcm63xx-rng

	  If unusure, say Y.

89
config HW_RANDOM_BCM2835
90 91 92
	tristate "Broadcom BCM2835/BCM63xx Random Number Generator support"
	depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \
		   ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC
93 94 95
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
96
	  Generator hardware found on the Broadcom BCM2835 and BCM63xx SoCs.
97 98 99 100 101

	  To compile this driver as a module, choose M here: the
	  module will be called bcm2835-rng

	  If unsure, say Y.
102

103
config HW_RANDOM_IPROC_RNG200
104 105
	tristate "Broadcom iProc/STB RNG200 support"
	depends on ARCH_BCM_IPROC || ARCH_BRCMSTB
106 107 108
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the RNG200
109
	  hardware found on the Broadcom iProc and STB SoCs.
110 111 112 113 114 115

	  To compile this driver as a module, choose M here: the
	  module will be called iproc-rng200

	  If unsure, say Y.

M
Michael Buesch 已提交
116 117
config HW_RANDOM_GEODE
	tristate "AMD Geode HW Random Number Generator support"
118
	depends on X86_32 && PCI
119
	default HW_RANDOM
M
Michael Buesch 已提交
120 121 122 123 124 125 126 127
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on the AMD Geode LX.

	  To compile this driver as a module, choose M here: the
	  module will be called geode-rng.

	  If unsure, say Y.
M
Michael Buesch 已提交
128

129 130
config HW_RANDOM_N2RNG
	tristate "Niagara2 Random Number Generator support"
131
	depends on SPARC64
132 133 134 135 136 137 138 139 140 141
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Niagara2 cpus.

	  To compile this driver as a module, choose M here: the
	  module will be called n2-rng.

	  If unsure, say Y.

M
Michael Buesch 已提交
142 143
config HW_RANDOM_VIA
	tristate "VIA HW Random Number Generator support"
144
	depends on X86
145
	default HW_RANDOM
M
Michael Buesch 已提交
146 147 148 149 150 151 152 153
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on VIA based motherboards.

	  To compile this driver as a module, choose M here: the
	  module will be called via-rng.

	  If unsure, say Y.
154 155

config HW_RANDOM_IXP4XX
156
	tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
157
	depends on ARCH_IXP4XX
158
	default HW_RANDOM
159
	---help---
160 161
	  This driver provides kernel-side support for the Pseudo-Random
	  Number Generator hardware found on the Intel IXP45x/46x NPU.
162 163 164 165 166

	  To compile this driver as a module, choose M here: the
	  module will be called ixp4xx-rng.

	  If unsure, say Y.
167 168 169

config HW_RANDOM_OMAP
	tristate "OMAP Random Number Generator support"
170
	depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS || ARCH_MVEBU
171
	default HW_RANDOM
172 173
 	---help---
 	  This driver provides kernel-side support for the Random Number
174 175
	  Generator hardware found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx
	  multimedia processors, and Marvell Armada 7k/8k SoCs.
176 177 178 179 180

	  To compile this driver as a module, choose M here: the
	  module will be called omap-rng.

 	  If unsure, say Y.
O
Olof Johansson 已提交
181

182 183
config HW_RANDOM_OMAP3_ROM
	tristate "OMAP3 ROM Random Number Generator support"
184
	depends on ARCH_OMAP3
185 186 187 188 189 190 191 192 193 194
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on OMAP34xx processors.

	  To compile this driver as a module, choose M here: the
	  module will be called omap3-rom-rng.

	  If unsure, say Y.

195 196
config HW_RANDOM_OCTEON
	tristate "Octeon Random Number Generator support"
197
	depends on CAVIUM_OCTEON_SOC
198 199 200 201 202 203 204 205 206 207
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Octeon processors.

	  To compile this driver as a module, choose M here: the
	  module will be called octeon-rng.

	  If unsure, say Y.

O
Olof Johansson 已提交
208 209
config HW_RANDOM_PASEMI
	tristate "PA Semi HW Random Number Generator support"
210
	depends on PPC_PASEMI
O
Olof Johansson 已提交
211 212 213
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
214
	  Generator hardware found on PA Semi PWRficient SoCs.
O
Olof Johansson 已提交
215 216 217 218 219 220

	  To compile this driver as a module, choose M here: the
	  module will be called pasemi-rng.

	  If unsure, say Y.

221 222
config HW_RANDOM_VIRTIO
	tristate "VirtIO Random Number Generator support"
223
	depends on VIRTIO
224 225 226 227 228 229
	---help---
	  This driver provides kernel-side support for the virtual Random Number
	  Generator hardware.

	  To compile this driver as a module, choose M here: the
	  module will be called virtio-rng.  If unsure, say N.
230

231 232
config HW_RANDOM_TX4939
	tristate "TX4939 Random Number Generator support"
233
	depends on SOC_TX4939
234 235 236 237 238 239 240 241 242 243
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on TX4939 SoC.

	  To compile this driver as a module, choose M here: the
	  module will be called tx4939-rng.

	  If unsure, say Y.

244 245
config HW_RANDOM_MXC_RNGA
	tristate "Freescale i.MX RNGA Random Number Generator"
246
	depends on SOC_IMX31
247
	default HW_RANDOM
248 249 250 251 252 253 254 255
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Freescale i.MX processors.

	  To compile this driver as a module, choose M here: the
	  module will be called mxc-rnga.

	  If unsure, say Y.
256

257 258 259 260 261 262 263 264 265 266 267 268 269 270
config HW_RANDOM_IMX_RNGC
	tristate "Freescale i.MX RNGC Random Number Generator"
	depends on ARCH_MXC
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator Version C hardware found on some Freescale i.MX
	  processors. Version B is also supported by this driver.

	  To compile this driver as a module, choose M here: the
	  module will be called imx-rngc.

	  If unsure, say Y.

271 272
config HW_RANDOM_NOMADIK
	tristate "ST-Ericsson Nomadik Random Number Generator support"
273
	depends on ARCH_NOMADIK
274
	default HW_RANDOM
275 276 277 278 279 280 281 282
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on ST-Ericsson SoCs (8815 and 8500).

	  To compile this driver as a module, choose M here: the
	  module will be called nomadik-rng.

	  If unsure, say Y.
283

284 285
config HW_RANDOM_PSERIES
	tristate "pSeries HW Random Number Generator support"
286
	depends on PPC64 && IBMVIO
287 288 289 290 291 292 293 294 295
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on POWER7+ machines and above

	  To compile this driver as a module, choose M here: the
	  module will be called pseries-rng.

	  If unsure, say Y.
296

297 298
config HW_RANDOM_POWERNV
	tristate "PowerNV Random Number Generator support"
299
	depends on PPC_POWERNV
300 301 302 303 304 305 306 307 308 309
	default HW_RANDOM
	---help---
	  This is the driver for Random Number Generator hardware found
	  in POWER7+ and above machines for PowerNV platform.

	  To compile this driver as a module, choose M here: the
	  module will be called powernv-rng.

	  If unsure, say Y.

310 311
config HW_RANDOM_TPM
	tristate "TPM HW Random Number Generator support"
312
	depends on TCG_TPM
313 314 315 316 317 318 319 320 321
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator in the Trusted Platform Module

	  To compile this driver as a module, choose M here: the
	  module will be called tpm-rng.

	  If unsure, say Y.
322

323 324 325 326 327 328 329 330 331 332 333 334 335
config HW_RANDOM_HISI
	tristate "Hisilicon Random Number Generator support"
	depends on HW_RANDOM && ARCH_HISI
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Hisilicon Hip04 and Hip05 SoC.

	  To compile this driver as a module, choose M here: the
	  module will be called hisi-rng.

	  If unsure, say Y.

336
config HW_RANDOM_MSM
337 338
	tristate "Qualcomm SoCs Random Number Generator support"
	depends on HW_RANDOM && ARCH_QCOM
339
	default HW_RANDOM
340 341
	---help---
	  This driver provides kernel-side support for the Random Number
342
	  Generator hardware found on Qualcomm SoCs.
343 344 345 346 347

	  To compile this driver as a module, choose M here. the
	  module will be called msm-rng.

	  If unsure, say Y.
348

349 350 351 352 353 354 355 356 357 358
config HW_RANDOM_ST
	tristate "ST Microelectronics HW Random Number Generator support"
	depends on HW_RANDOM && ARCH_STI
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on STi series of SoCs.

	  To compile this driver as a module, choose M here: the
	  module will be called st-rng.

359 360 361 362 363 364 365 366 367 368 369 370 371
config HW_RANDOM_XGENE
	tristate "APM X-Gene True Random Number Generator (TRNG) support"
	depends on HW_RANDOM && ARCH_XGENE
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on APM X-Gene SoC.

	  To compile this driver as a module, choose M here: the
	  module will be called xgene_rng.

	  If unsure, say Y.

372 373 374
config HW_RANDOM_STM32
	tristate "STMicroelectronics STM32 random number generator"
	depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST)
375
	depends on HAS_IOMEM
376 377 378 379 380 381 382 383 384
	help
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on STM32 microcontrollers.

	  To compile this driver as a module, choose M here: the
	  module will be called stm32-rng.

	  If unsure, say N.

385 386 387 388 389 390 391 392 393 394 395 396 397
config HW_RANDOM_PIC32
	tristate "Microchip PIC32 Random Number Generator support"
	depends on HW_RANDOM && MACH_PIC32
	default y
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on a PIC32.

	  To compile this driver as a module, choose M here. the
	  module will be called pic32-rng.

	  If unsure, say Y.

398 399 400 401 402 403 404 405 406 407 408 409 410 411
config HW_RANDOM_MESON
	tristate "Amlogic Meson Random Number Generator support"
	depends on HW_RANDOM
	depends on ARCH_MESON || COMPILE_TEST
	default y
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Amlogic Meson SoCs.

	  To compile this driver as a module, choose M here. the
	  module will be called meson-rng.

	  If unsure, say Y.

412 413 414 415 416 417 418 419 420 421 422 423 424
config HW_RANDOM_CAVIUM
       tristate "Cavium ThunderX Random Number Generator support"
       depends on HW_RANDOM && PCI && (ARM64 || (COMPILE_TEST && 64BIT))
       default HW_RANDOM
       ---help---
         This driver provides kernel-side support for the Random Number
         Generator hardware found on Cavium SoCs.

         To compile this driver as a module, choose M here: the
         module will be called cavium_rng.

         If unsure, say Y.

425 426 427 428 429 430 431 432 433 434 435 436 437 438
config HW_RANDOM_MTK
	tristate "Mediatek Random Number Generator support"
	depends on HW_RANDOM
	depends on ARCH_MEDIATEK || COMPILE_TEST
	default y
	---help---
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on Mediatek SoCs.

	  To compile this driver as a module, choose M here. the
	  module will be called mtk-rng.

	  If unsure, say Y.

439 440 441 442 443 444 445 446 447 448 449 450 451 452
config HW_RANDOM_S390
	tristate "S390 True Random Number Generator support"
	depends on S390
	default HW_RANDOM
	---help---
	  This driver provides kernel-side support for the True
	  Random Number Generator available as CPACF extension
	  on modern s390 hardware platforms.

	  To compile this driver as a module, choose M here: the
	  module will be called s390-trng.

	  If unsure, say Y.

453 454
endif # HW_RANDOM

455 456 457 458 459 460 461 462 463 464 465 466 467 468
config UML_RANDOM
	depends on UML
	tristate "Hardware random number generator"
	help
	  This option enables UML's "hardware" random number generator.  It
	  attaches itself to the host's /dev/random, supplying as much entropy
	  as the host has, rather than the small amount the UML gets from its
	  own drivers.  It registers itself as a standard hardware random number
	  generator, major 10, minor 183, and the canonical device name is
	  /dev/hwrng.
	  The way to make use of this is to install the rng-tools package
	  (check your distro, or download from
	  http://sourceforge.net/projects/gkernel/).  rngd periodically reads
	  /dev/hwrng and injects the entropy into /dev/random.