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_MSM 311 tristate "Qualcomm SoCs Random Number Generator support" 312 depends on HW_RANDOM && ARCH_QCOM 313 default HW_RANDOM 314 ---help--- 315 This driver provides kernel-side support for the Random Number 316 Generator hardware found on Qualcomm SoCs. 317 318 To compile this driver as a module, choose M here. the 319 module will be called msm-rng. 320 321 If unsure, say Y. 322 323config HW_RANDOM_ST 324 tristate "ST Microelectronics HW Random Number Generator support" 325 depends on HW_RANDOM && ARCH_STI 326 ---help--- 327 This driver provides kernel-side support for the Random Number 328 Generator hardware found on STi series of SoCs. 329 330 To compile this driver as a module, choose M here: the 331 module will be called st-rng. 332 333config HW_RANDOM_XGENE 334 tristate "APM X-Gene True Random Number Generator (TRNG) support" 335 depends on HW_RANDOM && ARCH_XGENE 336 default HW_RANDOM 337 ---help--- 338 This driver provides kernel-side support for the Random Number 339 Generator hardware found on APM X-Gene SoC. 340 341 To compile this driver as a module, choose M here: the 342 module will be called xgene_rng. 343 344 If unsure, say Y. 345 346config HW_RANDOM_STM32 347 tristate "STMicroelectronics STM32 random number generator" 348 depends on HW_RANDOM && (ARCH_STM32 || COMPILE_TEST) 349 depends on HAS_IOMEM 350 help 351 This driver provides kernel-side support for the Random Number 352 Generator hardware found on STM32 microcontrollers. 353 354 To compile this driver as a module, choose M here: the 355 module will be called stm32-rng. 356 357 If unsure, say N. 358 359config HW_RANDOM_PIC32 360 tristate "Microchip PIC32 Random Number Generator support" 361 depends on HW_RANDOM && MACH_PIC32 362 default y 363 ---help--- 364 This driver provides kernel-side support for the Random Number 365 Generator hardware found on a PIC32. 366 367 To compile this driver as a module, choose M here. the 368 module will be called pic32-rng. 369 370 If unsure, say Y. 371 372config HW_RANDOM_MESON 373 tristate "Amlogic Meson Random Number Generator support" 374 depends on HW_RANDOM 375 depends on ARCH_MESON || COMPILE_TEST 376 default y 377 ---help--- 378 This driver provides kernel-side support for the Random Number 379 Generator hardware found on Amlogic Meson SoCs. 380 381 To compile this driver as a module, choose M here. the 382 module will be called meson-rng. 383 384 If unsure, say Y. 385 386config HW_RANDOM_CAVIUM 387 tristate "Cavium ThunderX Random Number Generator support" 388 depends on HW_RANDOM && PCI && (ARM64 || (COMPILE_TEST && 64BIT)) 389 default HW_RANDOM 390 ---help--- 391 This driver provides kernel-side support for the Random Number 392 Generator hardware found on Cavium SoCs. 393 394 To compile this driver as a module, choose M here: the 395 module will be called cavium_rng. 396 397 If unsure, say Y. 398 399config HW_RANDOM_MTK 400 tristate "Mediatek Random Number Generator support" 401 depends on HW_RANDOM 402 depends on ARCH_MEDIATEK || COMPILE_TEST 403 default y 404 ---help--- 405 This driver provides kernel-side support for the Random Number 406 Generator hardware found on Mediatek SoCs. 407 408 To compile this driver as a module, choose M here. the 409 module will be called mtk-rng. 410 411 If unsure, say Y. 412 413config HW_RANDOM_S390 414 tristate "S390 True Random Number Generator support" 415 depends on S390 416 default HW_RANDOM 417 ---help--- 418 This driver provides kernel-side support for the True 419 Random Number Generator available as CPACF extension 420 on modern s390 hardware platforms. 421 422 To compile this driver as a module, choose M here: the 423 module will be called s390-trng. 424 425 If unsure, say Y. 426 427config HW_RANDOM_EXYNOS 428 tristate "Samsung Exynos True Random Number Generator support" 429 depends on ARCH_EXYNOS || COMPILE_TEST 430 default HW_RANDOM 431 ---help--- 432 This driver provides support for the True Random Number 433 Generator available in Exynos SoCs. 434 435 To compile this driver as a module, choose M here: the module 436 will be called exynos-trng. 437 438 If unsure, say Y. 439endif # HW_RANDOM 440 441config UML_RANDOM 442 depends on UML 443 tristate "Hardware random number generator" 444 help 445 This option enables UML's "hardware" random number generator. It 446 attaches itself to the host's /dev/random, supplying as much entropy 447 as the host has, rather than the small amount the UML gets from its 448 own drivers. It registers itself as a standard hardware random number 449 generator, major 10, minor 183, and the canonical device name is 450 /dev/hwrng. 451 The way to make use of this is to install the rng-tools package 452 (check your distro, or download from 453 http://sourceforge.net/projects/gkernel/). rngd periodically reads 454 /dev/hwrng and injects the entropy into /dev/random. 455