drivers: dma: Update drivers to use devicetree Kconfig symbol

Update DMA drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-24 14:30:39 -05:00 committed by Fabio Baltieri
parent 8ae7fd7bd9
commit 0a57488719
10 changed files with 27 additions and 17 deletions

View file

@ -4,5 +4,7 @@
config DMA_PL330
bool
prompt "PL330 DMA driver"
default y
depends on DT_HAS_ARM_DMA_PL330_ENABLED
help
This option enables support of pl330 DMA Controller.

View file

@ -5,6 +5,8 @@
config DMA_DW
bool "DesignWare DMA driver"
default y
depends on DT_HAS_SNPS_DESIGNWARE_DMA_ENABLED
help
DesignWare DMA driver.

View file

@ -5,6 +5,8 @@
config DMA_INTEL_ADSP_GPDMA
bool "Intel ADSP General Purpose Direct Memory Access driver"
default y
depends on DT_HAS_INTEL_ADSP_GPDMA_ENABLED
help
Intel ADSP DMA driver.

View file

@ -3,14 +3,10 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_INTEL_ADSP_HDA_HOST_IN := intel,adsp-hda-host-in
DT_COMPAT_INTEL_ADSP_HDA_HOST_OUT := intel,adsp-hda-host-out
DT_COMPAT_INTEL_ADSP_HDA_LINK_IN := intel,adsp-hda-link-in
DT_COMPAT_INTEL_ADSP_HDA_LINK_OUT := intel,adsp-hda-link-out
config DMA_INTEL_ADSP_HDA_HOST_IN
bool "Intel ADSP HDA Host In DMA drivers"
default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_HOST_IN))
default y
depends on DT_HAS_INTEL_ADSP_HDA_HOST_IN_ENABLED
depends on DMA
select DMA_INTEL_ADSP_HDA
help
@ -18,24 +14,24 @@ config DMA_INTEL_ADSP_HDA_HOST_IN
config DMA_INTEL_ADSP_HDA_HOST_OUT
bool "Intel ADSP HDA Host Out DMA drivers"
default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_HOST_OUT))
depends on DMA
default y
depends on DT_HAS_INTEL_ADSP_HDA_HOST_OUT_ENABLED
select DMA_INTEL_ADSP_HDA
help
Intel ADSP Host HDA DMA driver.
config DMA_INTEL_ADSP_HDA_LINK_IN
bool "Intel ADSP HDA Link In DMA drivers"
default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_LINK_IN))
depends on DMA
default y
depends on DT_HAS_INTEL_ADSP_HDA_LINK_IN_ENABLED
select DMA_INTEL_ADSP_HDA
help
Intel ADSP Link In HDA DMA driver.
config DMA_INTEL_ADSP_HDA_LINK_OUT
bool "Intel ADSP HDA Link Out DMA drivers"
default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_LINK_OUT))
depends on DMA
default y
depends on DT_HAS_INTEL_ADSP_HDA_LINK_OUT_ENABLED
select DMA_INTEL_ADSP_HDA
help
Intel ADSP Link Out HDA DMA driver.

View file

@ -4,11 +4,15 @@
config DMA_IPROC_PAX
bool
prompt "Broadcom PAX(PCIE<->AXI) DMA driver"
default y
depends on DT_HAS_BRCM_IPROC_PAX_DMA_V1_ENABLED
depends on PCIE_EP_IPROC
config DMA_IPROC_PAX_V2
bool
prompt "Broadcom PAX(PCIE<->AXI) DMA driver version 2"
default y
depends on DT_HAS_BRCM_IPROC_PAX_DMA_V2_ENABLED
depends on PCIE_EP_IPROC_V2
if DMA_IPROC_PAX || DMA_IPROC_PAX_V2

View file

@ -5,7 +5,8 @@
config DMA_MCUX_EDMA
bool "MCUX DMA driver"
depends on HAS_MCUX_EDMA
default y
depends on DT_HAS_NXP_MCUX_EDMA_ENABLED
imply NOCACHE_MEMORY if HAS_MCUX_CACHE
help
DMA driver for MCUX series SoCs.

View file

@ -5,7 +5,8 @@
config DMA_MCUX_LPC
bool "MCUX LPC DMAC driver"
depends on HAS_MCUX_LPC_DMA
default y
depends on DT_HAS_NXP_LPC_DMA_ENABLED
help
DMA driver for MCUX LPC MCUs.

View file

@ -5,6 +5,7 @@
config DMA_NIOS2_MSGDMA
bool "Nios-II Modular Scatter-Gather DMA(MSGDMA) driver"
depends on HAS_ALTERA_HAL
default y
depends on DT_HAS_ALTR_MSGDMA_ENABLED
help
Enable Nios-II Modular Scatter-Gather DMA(MSGDMA) driver.

View file

@ -6,6 +6,6 @@
config DMA_SAM0
bool "Atmel SAM0 series DMAC driver"
default y
depends on SOC_FAMILY_SAM0
depends on DT_HAS_ATMEL_SAM0_DMAC_ENABLED
help
DMA driver for Atmel SAM0 series MCUs.

View file

@ -5,6 +5,7 @@
config DMA_SAM_XDMAC
bool "Atmel SAM DMA (XDMAC) driver"
depends on SOC_FAMILY_SAM
default y
depends on DT_HAS_ATMEL_SAM_XDMAC_ENABLED
help
Enable Atmel SAM MCU Family Direct Memory Access (XDMAC) driver.