Skip to content

Commit cf590b0

Browse files
shawn1221Lorenzo Pieralisi
authored andcommitted
PCI: rockchip: Add EP driver for Rockchip PCIe controller
Add support for the Rockchip PCIe controller in endpoint mode; it currently supports up to 32 regions with each region spanning at least 1MB as per TRM. Signed-off-by: Shawn Lin <[email protected]> [[email protected]: updated commit log] Signed-off-by: Lorenzo Pieralisi <[email protected]>
1 parent 2ca25bd commit cf590b0

File tree

5 files changed

+759
-9
lines changed

5 files changed

+759
-9
lines changed

drivers/pci/host/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,18 @@ config PCIE_ROCKCHIP_HOST
194194
There is 1 internal PCIe port available to support GEN2 with
195195
4 slots.
196196

197+
config PCIE_ROCKCHIP_EP
198+
bool "Rockchip PCIe endpoint controller"
199+
depends on ARCH_ROCKCHIP || COMPILE_TEST
200+
depends on OF
201+
depends on PCI_ENDPOINT
202+
select MFD_SYSCON
203+
select PCIE_ROCKCHIP
204+
help
205+
Say Y here if you want to support Rockchip PCIe controller in
206+
endpoint mode on Rockchip SoC. There is 1 internal PCIe port
207+
available to support GEN2 with 4 slots.
208+
197209
config PCIE_MEDIATEK
198210
bool "MediaTek PCIe controller"
199211
depends on (ARM || ARM64) && (ARCH_MEDIATEK || COMPILE_TEST)

drivers/pci/host/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o
2020
obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o
2121
obj-$(CONFIG_PCIE_ALTERA_MSI) += pcie-altera-msi.o
2222
obj-$(CONFIG_PCIE_ROCKCHIP) += pcie-rockchip.o
23+
obj-$(CONFIG_PCIE_ROCKCHIP_EP) += pcie-rockchip-ep.o
2324
obj-$(CONFIG_PCIE_ROCKCHIP_HOST) += pcie-rockchip-host.o
2425
obj-$(CONFIG_PCIE_MEDIATEK) += pcie-mediatek.o
2526
obj-$(CONFIG_PCIE_TANGO_SMP8759) += pcie-tango.o

0 commit comments

Comments
 (0)