Kconfig 18 KB

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