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
|
@ -459,4 +459,4 @@ static const struct dma_driver_api dma_sam0_api = {
|
|||
|
||||
DEVICE_DT_INST_DEFINE(0, &dma_sam0_init, NULL,
|
||||
&dmac_data, NULL, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dma_sam0_api);
|
||||
CONFIG_DMA_INIT_PRIORITY, &dma_sam0_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue