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
|
@ -6,6 +6,10 @@
|
|||
|
||||
/* SoC level DTS fixup file */
|
||||
|
||||
#ifndef CONFIG_ENTROPY_NAME
|
||||
#define CONFIG_ENTROPY_NAME DT_LABEL(DT_INST(0, nordic_nrf_rng))
|
||||
#endif
|
||||
|
||||
#define DT_NUM_IRQ_PRIO_BITS \
|
||||
DT_ARM_V8M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue