Skip to content

Commit 5f3de23

Browse files
Thippeswamy Havaligekwilczynski
authored andcommitted
PCI: amd-mdb: Add AMD MDB Root Port driver
Add support for AMD MDB (Multimedia DMA Bridge) IP core as Root Port. The Versal2 devices include MDB Module. The integrated block for MDB along with the integrated bridge can function as PCIe Root Port controller at Gen5 32-GT/s operation per lane. Bridge supports error and INTx interrupts and are handled using platform specific interrupt line in Versal2. Signed-off-by: Thippeswamy Havalige <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] [bhelgaas: only present on ARM64-based SoCs; squash Kconfig dependency on ARM64 from Geert Uytterhoeven <[email protected]>: https://lore.kernel.org/r/eaef1dea7edcf146aa377d5e5c5c85a76ff56bae.1742306383.git.geert+renesas@glider.be] Signed-off-by: Bjorn Helgaas <[email protected]> [kwilczynski: commit log, code comments and error messages clean-up, drop redundant "depends on PCI" from Kconfig, expose the error code as part of error messages where appropriatie, change "depends on" expression to match existing style from other drivers] Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent c96c936 commit 5f3de23

File tree

3 files changed

+488
-0
lines changed

3 files changed

+488
-0
lines changed

drivers/pci/controller/dwc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ config PCIE_AL
2727
required only for DT-based platforms. ACPI platforms with the
2828
Annapurna Labs PCIe controller don't need to enable this.
2929

30+
config PCIE_AMD_MDB
31+
bool "AMD MDB Versal2 PCIe controller"
32+
depends on OF && (ARM64 || COMPILE_TEST)
33+
depends on PCI_MSI
34+
select PCIE_DW_HOST
35+
help
36+
Say Y here if you want to enable PCIe controller support on AMD
37+
Versal2 SoCs. The AMD MDB Versal2 PCIe controller is based on
38+
DesignWare IP and therefore the driver re-uses the DesignWare
39+
core functions to implement the driver.
40+
3041
config PCI_MESON
3142
tristate "Amlogic Meson PCIe controller"
3243
default m if ARCH_MESON

drivers/pci/controller/dwc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ obj-$(CONFIG_PCIE_DW) += pcie-designware.o
33
obj-$(CONFIG_PCIE_DW_HOST) += pcie-designware-host.o
44
obj-$(CONFIG_PCIE_DW_EP) += pcie-designware-ep.o
55
obj-$(CONFIG_PCIE_DW_PLAT) += pcie-designware-plat.o
6+
obj-$(CONFIG_PCIE_AMD_MDB) += pcie-amd-mdb.o
67
obj-$(CONFIG_PCIE_BT1) += pcie-bt1.o
78
obj-$(CONFIG_PCI_DRA7XX) += pci-dra7xx.o
89
obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o

0 commit comments

Comments
 (0)