Kconfig 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  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. default HW_RANDOM
  226. help
  227. This driver provides kernel-side support for the Random Number
  228. Generator hardware found on ST-Ericsson SoCs (8815 and 8500).
  229. To compile this driver as a module, choose M here: the
  230. module will be called nomadik-rng.
  231. If unsure, say Y.
  232. config HW_RANDOM_PSERIES
  233. tristate "pSeries HW Random Number Generator support"
  234. depends on PPC64 && IBMVIO
  235. default HW_RANDOM
  236. help
  237. This driver provides kernel-side support for the Random Number
  238. Generator hardware found on POWER7+ machines and above
  239. To compile this driver as a module, choose M here: the
  240. module will be called pseries-rng.
  241. If unsure, say Y.
  242. config HW_RANDOM_POWERNV
  243. tristate "PowerNV Random Number Generator support"
  244. depends on PPC_POWERNV
  245. default HW_RANDOM
  246. help
  247. This is the driver for Random Number Generator hardware found
  248. in POWER7+ and above machines for PowerNV platform.
  249. To compile this driver as a module, choose M here: the
  250. module will be called powernv-rng.
  251. If unsure, say Y.
  252. config HW_RANDOM_HISI
  253. tristate "Hisilicon Random Number Generator support"
  254. depends on ARCH_HISI || COMPILE_TEST
  255. default HW_RANDOM
  256. help
  257. This driver provides kernel-side support for the Random Number
  258. Generator hardware found on Hisilicon Hip04 and Hip05 SoC.
  259. To compile this driver as a module, choose M here: the
  260. module will be called hisi-rng.
  261. If unsure, say Y.
  262. config HW_RANDOM_HISTB
  263. tristate "Hisilicon STB Random Number Generator support"
  264. depends on ARCH_HISI || COMPILE_TEST
  265. default ARCH_HISI
  266. help
  267. This driver provides kernel-side support for the Random Number
  268. Generator hardware found on Hisilicon Hi37xx SoC.
  269. To compile this driver as a module, choose M here: the
  270. module will be called histb-rng.
  271. config HW_RANDOM_ST
  272. tristate "ST Microelectronics HW Random Number Generator support"
  273. depends on ARCH_STI || COMPILE_TEST
  274. help
  275. This driver provides kernel-side support for the Random Number
  276. Generator hardware found on STi series of SoCs.
  277. To compile this driver as a module, choose M here: the
  278. module will be called st-rng.
  279. config HW_RANDOM_XGENE
  280. tristate "APM X-Gene True Random Number Generator (TRNG) support"
  281. depends on ARCH_XGENE || COMPILE_TEST
  282. default HW_RANDOM
  283. help
  284. This driver provides kernel-side support for the Random Number
  285. Generator hardware found on APM X-Gene SoC.
  286. To compile this driver as a module, choose M here: the
  287. module will be called xgene_rng.
  288. If unsure, say Y.
  289. config HW_RANDOM_STM32
  290. tristate "STMicroelectronics STM32 random number generator"
  291. depends on ARCH_STM32 || COMPILE_TEST
  292. depends on HAS_IOMEM
  293. default HW_RANDOM
  294. help
  295. This driver provides kernel-side support for the Random Number
  296. Generator hardware found on STM32 microcontrollers.
  297. To compile this driver as a module, choose M here: the
  298. module will be called stm32-rng.
  299. If unsure, say N.
  300. config HW_RANDOM_PIC32
  301. tristate "Microchip PIC32 Random Number Generator support"
  302. depends on MACH_PIC32 || COMPILE_TEST
  303. default HW_RANDOM if MACH_PIC32
  304. help
  305. This driver provides kernel-side support for the Random Number
  306. Generator hardware found on a PIC32.
  307. To compile this driver as a module, choose M here. the
  308. module will be called pic32-rng.
  309. If unsure, say Y.
  310. config HW_RANDOM_POLARFIRE_SOC
  311. tristate "Microchip PolarFire SoC Random Number Generator support"
  312. depends on HW_RANDOM && POLARFIRE_SOC_SYS_CTRL
  313. help
  314. This driver provides kernel-side support for the Random Number
  315. Generator hardware found on PolarFire SoC (MPFS).
  316. To compile this driver as a module, choose M here. The
  317. module will be called mfps_rng.
  318. If unsure, say N.
  319. config HW_RANDOM_MESON
  320. tristate "Amlogic Meson Random Number Generator support"
  321. depends on ARCH_MESON || COMPILE_TEST
  322. depends on HAS_IOMEM && OF
  323. default HW_RANDOM if ARCH_MESON
  324. help
  325. This driver provides kernel-side support for the Random Number
  326. Generator hardware found on Amlogic Meson SoCs.
  327. To compile this driver as a module, choose M here. the
  328. module will be called meson-rng.
  329. If unsure, say Y.
  330. config HW_RANDOM_CAVIUM
  331. tristate "Cavium ThunderX Random Number Generator support"
  332. depends on PCI
  333. depends on ARCH_THUNDER || (ARM64 && COMPILE_TEST)
  334. default HW_RANDOM
  335. help
  336. This driver provides kernel-side support for the Random Number
  337. Generator hardware found on Cavium SoCs.
  338. To compile this driver as a module, choose M here: the
  339. module will be called cavium_rng.
  340. If unsure, say Y.
  341. config HW_RANDOM_MTK
  342. tristate "Mediatek Random Number Generator support"
  343. depends on ARCH_MEDIATEK || COMPILE_TEST
  344. depends on HAS_IOMEM && OF
  345. default HW_RANDOM if ARCH_MEDIATEK
  346. help
  347. This driver provides kernel-side support for the Random Number
  348. Generator hardware found on Mediatek SoCs.
  349. To compile this driver as a module, choose M here. the
  350. module will be called mtk-rng.
  351. If unsure, say Y.
  352. config HW_RANDOM_S390
  353. tristate "S390 True Random Number Generator support"
  354. depends on S390
  355. default HW_RANDOM
  356. help
  357. This driver provides kernel-side support for the True
  358. Random Number Generator available as CPACF extension
  359. on modern s390 hardware platforms.
  360. To compile this driver as a module, choose M here: the
  361. module will be called s390-trng.
  362. If unsure, say Y.
  363. config HW_RANDOM_EXYNOS
  364. tristate "Samsung Exynos True Random Number Generator support"
  365. depends on ARCH_EXYNOS || COMPILE_TEST
  366. depends on HAS_IOMEM
  367. default HW_RANDOM if ARCH_EXYNOS
  368. help
  369. This driver provides support for the True Random Number
  370. Generator available in Exynos SoCs.
  371. To compile this driver as a module, choose M here: the module
  372. will be called exynos-trng.
  373. If unsure, say Y.
  374. config HW_RANDOM_OPTEE
  375. tristate "OP-TEE based Random Number Generator support"
  376. depends on OPTEE
  377. default HW_RANDOM
  378. help
  379. This driver provides support for OP-TEE based Random Number
  380. Generator on ARM SoCs where hardware entropy sources are not
  381. accessible to normal world (Linux).
  382. To compile this driver as a module, choose M here: the module
  383. will be called optee-rng.
  384. If unsure, say Y.
  385. config HW_RANDOM_NPCM
  386. tristate "NPCM Random Number Generator support"
  387. depends on ARCH_NPCM || COMPILE_TEST
  388. depends on HAS_IOMEM
  389. default HW_RANDOM if ARCH_NPCM
  390. help
  391. This driver provides support for the Random Number
  392. Generator hardware available in Nuvoton NPCM SoCs.
  393. To compile this driver as a module, choose M here: the
  394. module will be called npcm-rng.
  395. If unsure, say Y.
  396. config HW_RANDOM_KEYSTONE
  397. depends on ARCH_KEYSTONE || COMPILE_TEST
  398. depends on HAS_IOMEM && OF
  399. default HW_RANDOM
  400. tristate "TI Keystone NETCP SA Hardware random number generator"
  401. help
  402. This option enables Keystone's hardware random generator.
  403. config HW_RANDOM_CCTRNG
  404. tristate "Arm CryptoCell True Random Number Generator support"
  405. depends on HAS_IOMEM && OF
  406. help
  407. Say 'Y' to enable the True Random Number Generator driver for the
  408. Arm TrustZone CryptoCell family of processors.
  409. Currently the CryptoCell 713 and 703 are supported.
  410. The driver is supported only in SoC where Trusted Execution
  411. Environment is not used.
  412. Choose 'M' to compile this driver as a module. The module
  413. will be called cctrng.
  414. If unsure, say 'N'.
  415. config HW_RANDOM_XIPHERA
  416. tristate "Xiphera FPGA based True Random Number Generator support"
  417. depends on HAS_IOMEM
  418. help
  419. This driver provides kernel-side support for Xiphera True Random
  420. Number Generator Intellectual Property Core.
  421. To compile this driver as a module, choose M here: the
  422. module will be called xiphera-trng.
  423. config HW_RANDOM_ARM_SMCCC_TRNG
  424. tristate "Arm SMCCC TRNG firmware interface support"
  425. depends on HAVE_ARM_SMCCC_DISCOVERY
  426. default HW_RANDOM
  427. help
  428. Say 'Y' to enable the True Random Number Generator driver using
  429. the Arm SMCCC TRNG firmware interface. This reads entropy from
  430. higher exception levels (firmware, hypervisor). Uses SMCCC for
  431. communicating with the firmware:
  432. https://developer.arm.com/documentation/den0098/latest/
  433. To compile this driver as a module, choose M here: the
  434. module will be called arm_smccc_trng.
  435. config HW_RANDOM_CN10K
  436. tristate "Marvell CN10K Random Number Generator support"
  437. depends on HW_RANDOM && PCI && (ARM64 || (64BIT && COMPILE_TEST))
  438. default HW_RANDOM if ARCH_THUNDER
  439. help
  440. This driver provides support for the True Random Number
  441. generator available in Marvell CN10K SoCs.
  442. To compile this driver as a module, choose M here.
  443. The module will be called cn10k_rng. If unsure, say Y.
  444. config HW_RANDOM_JH7110
  445. tristate "StarFive JH7110 Random Number Generator support"
  446. depends on SOC_STARFIVE || COMPILE_TEST
  447. help
  448. This driver provides support for the True Random Number
  449. Generator in StarFive JH7110 SoCs.
  450. To compile this driver as a module, choose M here.
  451. The module will be called jh7110-trng.
  452. config HW_RANDOM_ROCKCHIP
  453. tristate "Rockchip True Random Number Generator"
  454. depends on HW_RANDOM && (ARCH_ROCKCHIP || COMPILE_TEST)
  455. depends on HAS_IOMEM
  456. default HW_RANDOM
  457. help
  458. This driver provides kernel-side support for the True Random Number
  459. Generator hardware found on some Rockchip SoC like RK3566 or RK3568.
  460. To compile this driver as a module, choose M here: the
  461. module will be called rockchip-rng.
  462. If unsure, say Y.
  463. endif # HW_RANDOM
  464. config UML_RANDOM
  465. depends on UML
  466. select HW_RANDOM
  467. tristate "UML Random Number Generator support"
  468. help
  469. This option enables UML's "hardware" random number generator. It
  470. attaches itself to the host's /dev/random, supplying as much entropy
  471. as the host has, rather than the small amount the UML gets from its
  472. own drivers. It registers itself as a rng-core driver thus providing
  473. a device which is usually called /dev/hwrng. This hardware random
  474. number generator does feed into the kernel's random number generator
  475. entropy pool.
  476. If unsure, say Y.