Sughosh Ganu | 90592ed | 2019-12-28 23:58:27 +0530 | [diff] [blame] | 1 | config 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 Ganu | cd9a2f9 | 2019-12-28 23:58:29 +0530 | [diff] [blame] | 8 | |
Heinrich Schuchardt | cb02866 | 2020-02-02 19:45:35 +0100 | [diff] [blame] | 9 | if DM_RNG |
| 10 | |
Heinrich Schuchardt | 009d4a7 | 2020-02-02 19:52:04 +0100 | [diff] [blame] | 11 | config 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 Ganu | 23e3751 | 2019-12-28 23:58:31 +0530 | [diff] [blame] | 19 | config RNG_SANDBOX |
| 20 | bool "Sandbox random number generator" |
Heinrich Schuchardt | cb02866 | 2020-02-02 19:45:35 +0100 | [diff] [blame] | 21 | depends on SANDBOX |
| 22 | default y |
Sughosh Ganu | 23e3751 | 2019-12-28 23:58:31 +0530 | [diff] [blame] | 23 | help |
| 24 | Enable random number generator for sandbox. This is an |
| 25 | emulation of a rng device. |
| 26 | |
Robert Marko | fa5d33f | 2020-10-08 22:05:13 +0200 | [diff] [blame] | 27 | config 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 Liu | fe505c7 | 2022-05-24 16:56:57 +0800 | [diff] [blame] | 34 | config 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 Delaunay | 922c7d3 | 2022-03-29 14:21:23 +0200 | [diff] [blame] | 41 | config RNG_OPTEE |
| 42 | bool "OP-TEE based Random Number Generator support" |
| 43 | depends on DM_RNG && OPTEE |
Etienne Carriere | 320c850 | 2022-07-26 16:21:43 +0200 | [diff] [blame] | 44 | default y if OPTEE_SERVICE_DISCOVERY |
Patrick Delaunay | 922c7d3 | 2022-03-29 14:21:23 +0200 | [diff] [blame] | 45 | 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 | |
Heinrich Schuchardt | 8086354 | 2023-10-31 14:55:52 +0200 | [diff] [blame] | 51 | config RNG_RISCV_ZKR |
| 52 | bool "RISC-V Zkr random number generator" |
| 53 | depends on RISCV_SMODE |
| 54 | help |
| 55 | This driver provides a Random Number Generator based on the |
| 56 | Zkr RISC-V ISA extension which provides an interface to an |
| 57 | NIST SP 800-90B or BSI AIS-31 compliant physical entropy source. |
| 58 | |
Gatien Chevallier | 2af20a5 | 2023-09-19 17:27:53 +0200 | [diff] [blame] | 59 | config RNG_STM32 |
| 60 | bool "Enable random number generator for STM32" |
| 61 | depends on ARCH_STM32 || ARCH_STM32MP |
Sughosh Ganu | cd9a2f9 | 2019-12-28 23:58:29 +0530 | [diff] [blame] | 62 | help |
Gatien Chevallier | 2af20a5 | 2023-09-19 17:27:53 +0200 | [diff] [blame] | 63 | Enable STM32 rng driver. |
Heinrich Schuchardt | cb02866 | 2020-02-02 19:45:35 +0100 | [diff] [blame] | 64 | |
Lin Jinhan | 20b7850 | 2020-03-31 17:39:59 +0800 | [diff] [blame] | 65 | config RNG_ROCKCHIP |
| 66 | bool "Enable random number generator for rockchip crypto rng" |
| 67 | depends on ARCH_ROCKCHIP && DM_RNG |
Lin Jinhan | 20b7850 | 2020-03-31 17:39:59 +0800 | [diff] [blame] | 68 | help |
Chris Morgan | eb1ca2e | 2023-04-13 09:13:02 -0500 | [diff] [blame] | 69 | Enable random number generator for rockchip. This driver |
| 70 | supports the rng module of crypto v1, crypto v2, and the |
| 71 | trng module of the rk3588 series. |
Lin Jinhan | 20b7850 | 2020-03-31 17:39:59 +0800 | [diff] [blame] | 72 | |
Matthias Brugger | 18988ec | 2020-12-15 10:49:23 +0100 | [diff] [blame] | 73 | config RNG_IPROC200 |
| 74 | bool "Broadcom iProc RNG200 random number generator" |
| 75 | depends on DM_RNG |
Matthias Brugger | 18988ec | 2020-12-15 10:49:23 +0100 | [diff] [blame] | 76 | help |
| 77 | Enable random number generator for RPI4. |
Etienne Carriere | 741ca70 | 2022-06-01 10:27:34 +0200 | [diff] [blame] | 78 | |
| 79 | config RNG_SMCCC_TRNG |
| 80 | bool "Arm SMCCC TRNG interface" |
| 81 | depends on DM_RNG && ARM_PSCI_FW |
| 82 | default y if ARM_SMCCC_FEATURES |
| 83 | help |
| 84 | Enable random number generator for platforms that support Arm |
| 85 | SMCCC TRNG interface. |
| 86 | |
Andre Przywara | 8a457ad | 2023-08-30 12:32:30 +0100 | [diff] [blame] | 87 | config RNG_ARM_RNDR |
| 88 | bool "Generic ARMv8.5 RNDR register" |
| 89 | depends on DM_RNG && ARM64 |
| 90 | help |
| 91 | Use the ARMv8.5 RNDR register to provide random numbers. |
| 92 | |
Sughosh Ganu | 9737fab | 2022-07-22 21:32:04 +0530 | [diff] [blame] | 93 | config TPM_RNG |
| 94 | bool "Enable random number generator on TPM device" |
| 95 | depends on TPM |
| 96 | default y |
| 97 | help |
| 98 | The TPM device has an inbuilt random number generator |
| 99 | functionality. Enable random number generator on TPM |
| 100 | devices. |
| 101 | |
Chanho Park | b125d52 | 2023-11-01 21:16:50 +0900 | [diff] [blame] | 102 | config RNG_JH7110 |
| 103 | bool "StarFive JH7110 Random Number Generator support" |
| 104 | depends on DM_RNG && STARFIVE_JH7110 |
| 105 | help |
| 106 | Enable True Random Number Generator in StarFive JH7110 SoCs. |
| 107 | |
Max Resch | 18ef74a | 2024-02-15 17:57:57 +0100 | [diff] [blame^] | 108 | config RNG_TURRIS_RWTM |
| 109 | bool "Turris Mox TRNG in Secure Processor" |
| 110 | depends on DM_RNG && ARMADA_3700 |
| 111 | help |
| 112 | Use TRNG in Turris Mox Secure Processor Firmware. Can be used |
| 113 | on other Armada-3700 devices (like EspressoBin) if Secure |
| 114 | Firmware from CZ.NIC is used. |
| 115 | |
Heinrich Schuchardt | cb02866 | 2020-02-02 19:45:35 +0100 | [diff] [blame] | 116 | endif |