blob: 6e5b96a3d06e893607bc51ccb23e48fbaa66afb7 [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From 99a6452c7481de2f1a36699dd60361c49602cc77 Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:24 +0800
4Subject: [PATCH]
5 [high-speed-io][999-2600-pcie-add-pcie-gen3-upstream-driver.patch]
6
7---
8 drivers/pci/controller/Kconfig | 13 +++++++++++++
9 drivers/pci/controller/Makefile | 1 +
10 2 files changed, 14 insertions(+)
11
developerfd40db22021-04-29 10:08:25 +080012diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
developer5d148cb2023-06-02 13:08:11 +080013index 70e078238..67988f868 100644
developerfd40db22021-04-29 10:08:25 +080014--- a/drivers/pci/controller/Kconfig
15+++ b/drivers/pci/controller/Kconfig
16@@ -241,6 +241,19 @@ config PCIE_MEDIATEK
17 Say Y here if you want to enable PCIe controller support on
18 MediaTek SoCs.
19
20+config PCIE_MEDIATEK_GEN3
21+ tristate "MediaTek Gen3 PCIe controller"
22+ depends on ARCH_MEDIATEK || COMPILE_TEST
23+ depends on PCI_MSI_IRQ_DOMAIN
24+ help
25+ Adds support for PCIe Gen3 MAC controller for MediaTek SoCs.
26+ This PCIe controller is compatible with Gen3, Gen2 and Gen1 speed,
27+ and support up to 256 MSI interrupt numbers for
28+ multi-function devices.
29+
30+ Say Y here if you want to enable Gen3 PCIe controller support on
31+ MediaTek SoCs.
32+
33 config PCIE_MOBIVEIL
34 bool "Mobiveil AXI PCIe controller"
35 depends on ARCH_ZYNQMP || COMPILE_TEST
36diff --git a/drivers/pci/controller/Makefile b/drivers/pci/controller/Makefile
developer5d148cb2023-06-02 13:08:11 +080037index a2a22c9d9..54a496a68 100644
developerfd40db22021-04-29 10:08:25 +080038--- a/drivers/pci/controller/Makefile
39+++ b/drivers/pci/controller/Makefile
40@@ -27,6 +27,7 @@ obj-$(CONFIG_PCIE_ROCKCHIP) += pcie-rockchip.o
41 obj-$(CONFIG_PCIE_ROCKCHIP_EP) += pcie-rockchip-ep.o
42 obj-$(CONFIG_PCIE_ROCKCHIP_HOST) += pcie-rockchip-host.o
43 obj-$(CONFIG_PCIE_MEDIATEK) += pcie-mediatek.o
44+obj-$(CONFIG_PCIE_MEDIATEK_GEN3) += pcie-mediatek-gen3.o
45 obj-$(CONFIG_PCIE_MOBIVEIL) += pcie-mobiveil.o
46 obj-$(CONFIG_PCIE_TANGO_SMP8759) += pcie-tango.o
47 obj-$(CONFIG_VMD) += vmd.o
developer5d148cb2023-06-02 13:08:11 +080048--
492.34.1
50