Skip to contentSkip to conversation

soc: octeontx2-dpi: Add DPI DMA PF driver

PATCH New Radha Mohan Chintakuntla 1 participant 1 message Feb 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: octeontx2-dpi: Add DPI DMA PF driver

DPI DMA block in the Octeon TX2 SoC provides support for DMA between memory to memory transfers and also transfers between a host and Octeon Tx2 when it is in PCIe endpoint mode.

---
 MAINTAINERS                                |   7 +
 drivers/soc/marvell/Kconfig                |  10 +
 drivers/soc/marvell/Makefile               |   1 +
 drivers/soc/marvell/octeontx2-dpi/Makefile |   8 +
 drivers/soc/marvell/octeontx2-dpi/dpi.c    | 563 +++++++++++++++++++++
 drivers/soc/marvell/octeontx2-dpi/dpi.h    | 335 ++++++++++++
 6 files changed, 924 insertions(+)
 create mode 100644 drivers/soc/marvell/octeontx2-dpi/Makefile
 create mode 100644 drivers/soc/marvell/octeontx2-dpi/dpi.c
 create mode 100644 drivers/soc/marvell/octeontx2-dpi/dpi.h
MAINTAINERS +7 -0
index fb48e0317d34..f39f64f0bc1c 100644
@@ -11463,6 +11463,13 @@ S:	Maintained
 F:	drivers/crypto/marvell/
 F:	include/linux/soc/marvell/octeontx2/
 
+MARVELL OCTEONTX2 DPI DMA PHYISCAL FUNCTION DRIVER
+M:	Radha Mohan Chintakuntla <[email protected]>
+M:	Veerasenareddy Burry <[email protected]>
+L:	[email protected]
+S:	Supported
+F:	drivers/soc/marvell/octeontx2-dpi/
+
 MARVELL GIGABIT ETHERNET DRIVERS (skge/sky2)
 M:	Mirko Lindner <[email protected]>
 M:	Stephen Hemminger <[email protected]>
drivers/soc/marvell/Kconfig +10 -0
index 4e8f8a60b3df..6e185e98a02c 100644
@@ -4,6 +4,16 @@
 
 menu "Marvell SoC drivers"
 
+config OCTEONTX2_DPI_PF
+	tristate "OcteonTX2 DPI-DMA PF driver"
+	depends on ARM64 && PCI
+	default m
+	help
+	  Select this option to enable DPI PF driver support.
+	  DPI (DMA packet interface) provides DMA support for MAC.
+	  This driver intializes DPI PF device and enables VFs for supporting
+	  different types of DMA transfers.
+
 config OCTEONTX2_SDP_PF
 	tristate "OcteonTX2 SDP PF driver"
 	depends on ARM64 && PCI && OCTEONTX2_AF && OCTEONTX2_MBOX
drivers/soc/marvell/Makefile +1 -0
index 9a9a4435d64d..a1835a44a22c 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
+obj-y		+= octeontx2-dpi/
 obj-y		+= octeontx2-sdp/
drivers/soc/marvell/octeontx2-dpi/Makefile new file +8 -0
new file mode 100644
index 000000000000..73640517593c
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for Marvell's OcteonTX2 DPI PF driver
+#
+
+obj-$(CONFIG_OCTEONTX2_DPI_PF) += octeontx2_dpi.o
+
+octeontx2_dpi-y := dpi.o
drivers/soc/marvell/octeontx2-dpi/dpi.c new file +563 -0

563 lines not on this page · raw message

drivers/soc/marvell/octeontx2-dpi/dpi.h new file +335 -0

335 lines not on this page · raw message

Signature · 1 line
2.24.1