Skip to content

Commit a9cd360

Browse files
committed
Merge branch 'pci/controller/imx6'
- Add i.MX8MM, i.MX8MQ, i.MX8MP endpoint mode DT binding and driver support (Richard Zhu) * pci/controller/imx6: PCI: imx6: Add i.MX8MP PCIe EP support PCI: imx6: Add i.MX8MM PCIe EP support PCI: imx6: Add i.MX8MQ PCIe EP support PCI: imx6: Add i.MX PCIe EP mode support misc: pci_endpoint_test: Add i.MX8 PCIe EP device support dt-bindings: imx6q-pcie: Add i.MX8MP PCIe EP mode compatible string dt-bindings: imx6q-pcie: Add i.MX8MQ PCIe EP mode compatible string dt-bindings: imx6q-pcie: Add i.MX8MM PCIe EP mode compatible string
2 parents 5256d49 + c435669 commit a9cd360

File tree

4 files changed

+209
-19
lines changed

4 files changed

+209
-19
lines changed

Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ properties:
2424
- fsl,imx8mq-pcie
2525
- fsl,imx8mm-pcie
2626
- fsl,imx8mp-pcie
27+
- fsl,imx8mm-pcie-ep
28+
- fsl,imx8mq-pcie-ep
29+
- fsl,imx8mp-pcie-ep
2730

2831
reg:
2932
items:

drivers/misc/pci_endpoint_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
#define PCI_DEVICE_ID_TI_J7200 0xb00f
7373
#define PCI_DEVICE_ID_TI_AM64 0xb010
7474
#define PCI_DEVICE_ID_LS1088A 0x80c0
75+
#define PCI_DEVICE_ID_IMX8 0x0808
7576

7677
#define is_am654_pci_dev(pdev) \
7778
((pdev)->device == PCI_DEVICE_ID_TI_AM654)
@@ -980,6 +981,7 @@ static const struct pci_device_id pci_endpoint_test_tbl[] = {
980981
{ PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, 0x81c0),
981982
.driver_data = (kernel_ulong_t)&default_data,
982983
},
984+
{ PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_IMX8),},
983985
{ PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_LS1088A),
984986
.driver_data = (kernel_ulong_t)&default_data,
985987
},

drivers/pci/controller/dwc/Kconfig

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,31 @@ config PCI_EXYNOS
9292
functions to implement the driver.
9393

9494
config PCI_IMX6
95-
bool "Freescale i.MX6/7/8 PCIe controller"
95+
bool
96+
97+
config PCI_IMX6_HOST
98+
bool "Freescale i.MX6/7/8 PCIe controller host mode"
9699
depends on ARCH_MXC || COMPILE_TEST
97100
depends on PCI_MSI
98101
select PCIE_DW_HOST
102+
select PCI_IMX6
103+
help
104+
Enables support for the PCIe controller in the i.MX SoCs to
105+
work in Root Complex mode. The PCI controller on i.MX is based
106+
on DesignWare hardware and therefore the driver re-uses the
107+
DesignWare core functions to implement the driver.
108+
109+
config PCI_IMX6_EP
110+
bool "Freescale i.MX6/7/8 PCIe controller endpoint mode"
111+
depends on ARCH_MXC || COMPILE_TEST
112+
depends on PCI_ENDPOINT
113+
select PCIE_DW_EP
114+
select PCI_IMX6
115+
help
116+
Enables support for the PCIe controller in the i.MX SoCs to
117+
work in endpoint mode. The PCI controller on i.MX is based
118+
on DesignWare hardware and therefore the driver re-uses the
119+
DesignWare core functions to implement the driver.
99120

100121
config PCIE_SPEAR13XX
101122
bool "STMicroelectronics SPEAr PCIe controller"

0 commit comments

Comments
 (0)