zephyr/drivers/entropy/Kconfig.bt_hci
Kumar Gala 2245bf89b7 drivers: entropy: Update drivers to use devicetree Kconfig symbol
Update entropy drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-25 09:39:10 +02:00

19 lines
603 B
Plaintext

# Copyright (c) 2022, Commonwealth Scientific and Industrial Research
# Organisation (CSIRO) ABN 41 687 119 230.
# SPDX-License-Identifier: Apache-2.0
config ENTROPY_BT_HCI
bool "Bluetooth HCI RNG driver"
default y
depends on DT_HAS_ZEPHYR_BT_HCI_ENTROPY_ENABLED
depends on BT_HCI_HOST
select ENTROPY_HAS_DRIVER
help
Enable Random Number Generator from a Bluetooth HCI device.
# Don't use use Bluetooth HCI as a random source since it will be slow.
# Instead, use the software implemented xoshiro RNG.
choice RNG_GENERATOR_CHOICE
default XOSHIRO_RANDOM_GENERATOR if ENTROPY_BT_HCI
endchoice