drivers: dma: dma_sam0: change sam0 DMA to higher priority init.

fixes peripheral drivers such as async uart that rely on dma being
ready failing because dma is not initialized yet.

Signed-off-by: Ron Smith <rockyowl171@gmail.com>
This commit is contained in:
Ron Smith 2021-08-28 19:43:03 -04:00 committed by Christopher Friedt
commit 4f9ac180b4

View file

@ -458,5 +458,5 @@ static const struct dma_driver_api dma_sam0_api = {
};
DEVICE_DT_INST_DEFINE(0, &dma_sam0_init, NULL,
&dmac_data, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_sam0_api);
&dmac_data, NULL, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dma_sam0_api);