blob: e501df0f146c8b0ee8544f04bbda2574870178b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_ZEPHYR_ENTROPY := zephyr,entropy
config PLATFORM_EC_RANDOM
bool "Enable shim for random number generator"
depends on $(dt_chosen_enabled,$(DT_CHOSEN_ZEPHYR_ENTROPY))
select ENTROPY_GENERATOR
help
If enabled, trng_rand() and trng_rand_bytes() functions will be
available. These functions are implemented using Zephyr's entropy API.
if PLATFORM_EC_RANDOM
config PLATFORM_EC_HOSTCMD_RAND
bool "Host Command: EC_CMD_RAND_NUM"
default n
help
Enable the EC_CMD_RAND_NUM host commnand which provides random number
to host.
config PLATFORM_EC_CONSOLE_CMD_RAND
bool "Enable 'rand' console command"
depends on SHELL
default n
help
Enable the 'rand' console command. The command is used to check random
number generator.
endif # PLATFORM_EC_RANDOM
|