Skip to content

Commit 32d31c7

Browse files
Amireddy Mallikarjuna reddyvinodkoul
authored andcommitted
dmaengine: Add Intel LGM SoC DMA support.
Add DMA controller driver for Lightning Mountain (LGM) family of SoCs. The main function of the DMA controller is the transfer of data from/to any peripheral to/from the memory. A memory to memory copy capability can also be configured. This ldma driver is used for configure the device and channnels for data and control paths. Signed-off-by: Amireddy Mallikarjuna reddy <mallikarjunax.reddy@linux.intel.com> Link: https://lore.kernel.org/r/5fc54eb7ccfad4f8dd812b66b884054fc55cf050.1606905330.git.mallikarjunax.reddy@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent afd4df8 commit 32d31c7

File tree

5 files changed

+1753
-0
lines changed

5 files changed

+1753
-0
lines changed

drivers/dma/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ source "drivers/dma/ti/Kconfig"
740740

741741
source "drivers/dma/fsl-dpaa2-qdma/Kconfig"
742742

743+
source "drivers/dma/lgm/Kconfig"
744+
743745
# clients
744746
comment "DMA Clients"
745747
depends on DMA_ENGINE

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ obj-$(CONFIG_XGENE_DMA) += xgene-dma.o
8282
obj-$(CONFIG_ZX_DMA) += zx_dma.o
8383
obj-$(CONFIG_ST_FDMA) += st_fdma.o
8484
obj-$(CONFIG_FSL_DPAA2_QDMA) += fsl-dpaa2-qdma/
85+
obj-$(CONFIG_INTEL_LDMA) += lgm/
8586

8687
obj-y += mediatek/
8788
obj-y += qcom/

drivers/dma/lgm/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
config INTEL_LDMA
3+
bool "Lightning Mountain centralized DMA controllers"
4+
select DMA_ENGINE
5+
select DMA_VIRTUAL_CHANNELS
6+
help
7+
Enable support for intel Lightning Mountain SOC DMA controllers.
8+
These controllers provide DMA capabilities for a variety of on-chip
9+
devices such as HSNAND and GSWIP (Gigabit Switch IP).

drivers/dma/lgm/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_INTEL_LDMA) += lgm-dma.o

0 commit comments

Comments
 (0)