blob: 5dcf68176afda0279df64e7d403d0a6f135750e8 [file] [log] [blame]
Sughosh Ganua2487682019-12-28 23:58:27 +05301config DM_RNG
2 bool "Driver support for Random Number Generator devices"
3 depends on DM
4 help
5 Enable driver model for random number generator(rng) devices.
6 This interface is used to initialise the rng device and to
7 read the random seed from the device.
Sughosh Ganu231ec902019-12-28 23:58:29 +05308
Heinrich Schuchardtc312c4b2020-02-02 19:45:35 +01009if DM_RNG
10
Heinrich Schuchardtbc40eb22020-02-02 19:52:04 +010011config RNG_MESON
12 bool "Amlogic Meson Random Number Generator support"
13 depends on ARCH_MESON
14 default y
15 help
16 Enable support for hardware random number generator
17 of Amlogic Meson SoCs.
18
Sughosh Ganuff0dada2019-12-28 23:58:31 +053019config RNG_SANDBOX
20 bool "Sandbox random number generator"
Heinrich Schuchardtc312c4b2020-02-02 19:45:35 +010021 depends on SANDBOX
22 default y
Sughosh Ganuff0dada2019-12-28 23:58:31 +053023 help
24 Enable random number generator for sandbox. This is an
25 emulation of a rng device.
26
Robert Marko033ec632020-10-08 22:05:13 +020027config RNG_MSM
28 bool "Qualcomm SoCs Random Number Generator support"
29 depends on DM_RNG
30 help
31 This driver provides support for the Random Number
32 Generator hardware found on Qualcomm SoCs.
33
Jim Liu866eab12022-05-24 16:56:57 +080034config RNG_NPCM
35 bool "Nuvoton NPCM SoCs Random Number Generator support"
36 depends on DM_RNG
37 help
38 Enable random number generator on NPCM SoCs.
39 This unit can provide 750 to 1000 random bits per second
40
Patrick Delaunayfd52e7f2022-03-29 14:21:23 +020041config RNG_OPTEE
42 bool "OP-TEE based Random Number Generator support"
43 depends on DM_RNG && OPTEE
Etienne Carriere57fb86a2022-07-26 16:21:43 +020044 default y if OPTEE_SERVICE_DISCOVERY
Patrick Delaunayfd52e7f2022-03-29 14:21:23 +020045 help
46 This driver provides support for the OP-TEE based Random Number
47 Generator on ARM SoCs where hardware entropy sources are not
48 accessible to normal world but reserved and used by the OP-TEE
49 to avoid the weakness of a software PRNG.
50
Sughosh Ganu231ec902019-12-28 23:58:29 +053051config RNG_STM32MP1
52 bool "Enable random number generator for STM32MP1"
Heinrich Schuchardtc312c4b2020-02-02 19:45:35 +010053 depends on ARCH_STM32MP
Sughosh Ganu231ec902019-12-28 23:58:29 +053054 help
55 Enable STM32MP1 rng driver.
Heinrich Schuchardtc312c4b2020-02-02 19:45:35 +010056
Lin Jinhan6e7353e2020-03-31 17:39:59 +080057config RNG_ROCKCHIP
58 bool "Enable random number generator for rockchip crypto rng"
59 depends on ARCH_ROCKCHIP && DM_RNG
Lin Jinhan6e7353e2020-03-31 17:39:59 +080060 help
61 Enable random number generator for rockchip.This driver is
62 support rng module of crypto v1 and crypto v2.
63
Matthias Brugger537f0012020-12-15 10:49:23 +010064config RNG_IPROC200
65 bool "Broadcom iProc RNG200 random number generator"
66 depends on DM_RNG
Matthias Brugger537f0012020-12-15 10:49:23 +010067 help
68 Enable random number generator for RPI4.
Etienne Carriere53355bb2022-06-01 10:27:34 +020069
70config RNG_SMCCC_TRNG
71 bool "Arm SMCCC TRNG interface"
72 depends on DM_RNG && ARM_PSCI_FW
73 default y if ARM_SMCCC_FEATURES
74 help
75 Enable random number generator for platforms that support Arm
76 SMCCC TRNG interface.
77
Sughosh Ganue67ffb52022-07-22 21:32:04 +053078config TPM_RNG
79 bool "Enable random number generator on TPM device"
80 depends on TPM
81 default y
82 help
83 The TPM device has an inbuilt random number generator
84 functionality. Enable random number generator on TPM
85 devices.
86
Heinrich Schuchardtc312c4b2020-02-02 19:45:35 +010087endif