drivers: entropy_nrf5: Use device name and IRQ priority from DTS
Instead of using Kconfig options for setting the device name and IRQ priority for the entropy_nrf5 driver, get these settings from the rng node defined in DTS for a given SoC. Provide also fixups for CONFIG_ENTROPY_NAME, until applications using entropy drivers are converted to use DTS as well. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
20125076f6
commit
97e4c0cbad
6 changed files with 33 additions and 17 deletions
|
@ -16,6 +16,7 @@ menuconfig ENTROPY_NRF5_RNG
|
|||
depends on !ENTROPY_NRF_FORCE_ALT
|
||||
depends on HAS_HW_NRF_RNG
|
||||
select ENTROPY_HAS_DRIVER
|
||||
select HAS_DTS_ENTROPY
|
||||
default y
|
||||
help
|
||||
This option enables the RNG peripheral, which is a random number
|
||||
|
@ -67,13 +68,4 @@ config ENTROPY_NRF5_ISR_THRESHOLD
|
|||
buffer goes below this number hardware entropy generation will be
|
||||
started.
|
||||
|
||||
config ENTROPY_NRF5_PRI
|
||||
int "RNG interrupt priority"
|
||||
range 0 2 if SOC_SERIES_NRF51X
|
||||
range 0 5 if SOC_COMPATIBLE_NRF52X || SOC_SERIES_NRF53X
|
||||
default 2 if SOC_SERIES_NRF51X
|
||||
default 5 if SOC_COMPATIBLE_NRF52X || SOC_SERIES_NRF53X
|
||||
help
|
||||
nRF5X RNG IRQ priority.
|
||||
|
||||
endif # ENTROPY_NRF5_RNG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue