drivers: dma: Refactor drivers to use shared init priority
Refactors all of the DMA drivers to use a shared driver class initialization priority configuration, CONFIG_DMA_INIT_PRIORITY, to allow configuring DMA drivers separately from other devices. This is similar to other driver classes like I2C and SPI. Most drivers previously used CONFIG_KERNEL_INIT_PRIORITY_DEFAULT or CONFIG_KERNEL_INIT_PRIORITY_DEVICE, therefore the default for this new option is the lower of the two, which means earlier initialization. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
b071588265
commit
b539699a98
12 changed files with 17 additions and 11 deletions
|
@ -316,7 +316,7 @@ DEVICE_DT_INST_DEFINE(index, \
|
|||
&dmamux_stm32_init, \
|
||||
NULL, \
|
||||
&dmamux_stm32_data_##index, &dmamux_stm32_config_##index,\
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||
PRE_KERNEL_1, CONFIG_DMA_INIT_PRIORITY, \
|
||||
&dma_funcs);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(DMAMUX_INIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue