drivers: entropy: nrf5: Fix dependency of the enabling Kconfig option

This driver makes use of the nRF RNG peripheral, so it can be used only
for SoCs that are equipped with one, and not all nRF SoCs are.
The option enabling the driver should then depend on `HAS_HW_NRF_RNG`,
which indicates the presence of this peripheral in a given SoC.

This patch removes also entries disabling this driver in default
configurations for nRF9160 SoC, as these were needed only because
of the invalid dependency of the ENTROPY_NRF5_RNG option.

A minor adjustment of Kconfig files of the nrf52_bsim board was
required as well, so that this board's configuration can properly
handle this corrected dependency.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2019-08-08 10:52:20 +02:00 committed by Ioannis Glaropoulos
commit 16162f25b5
5 changed files with 11 additions and 7 deletions

View file

@ -16,7 +16,7 @@ if !ENTROPY_NRF_FORCE_ALT
menuconfig ENTROPY_NRF5_RNG
bool "nRF5 RNG driver"
depends on SOC_COMPATIBLE_NRF
depends on HAS_HW_NRF_RNG
select ENTROPY_HAS_DRIVER
default y
help