zephyr/boards/posix/nrf52_bsim/Kconfig
Andrzej Głąbek 16162f25b5 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>
2019-08-09 20:14:24 +02:00

37 lines
964 B
Plaintext

# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52_BSIM
# The following file is normally parsed only for the ARM architecture, which is
# used by Nordic SoCs, so to make the symbols defined in this file available for
# the simulated nrf52_bsim board, which uses the POSIX architecture, the file
# must be read also from here.
source "soc/arm/nordic_nrf/Kconfig.peripherals"
comment "NRF52_BSIM options"
config PRINTK_HOOK_INIT_PRIORITY
int
default 50
help
Just the driver init priority
endif # BOARD_NRF52_BSIM
# This would eventually be shared by a possible family of simulated NRF boards
# which use BabbleSim. When that happens, we can move this to a common
# Kconfig file
config SOC_SERIES_BSIM_NRFXX
bool
depends on SOC_POSIX
help
Any NRF simulated SOC with BabbleSim, based on the POSIX arch
config SOC_SERIES_BSIM_NRF52X
bool
depends on SOC_SERIES_BSIM_NRFXX
help
Any NRF52 simulated SOC with BabbleSim, based on the POSIX arch