Skip to content

Commit 956cd99

Browse files
shawn1221Lorenzo Pieralisi
authored andcommitted
PCI: rockchip: Separate common code from RC driver
In preparation for introducing EP driver for Rockchip PCIe controller, rename the RC driver from pcie-rockchip.c to pcie-rockchip-host.c, and only leave some common functions in pcie-rockchip.c in order to be reused for both of RC driver and EP driver. Signed-off-by: Shawn Lin <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Tested-by: Jeffy Chen <[email protected]>
1 parent 60cc43f commit 956cd99

File tree

6 files changed

+1653
-1597
lines changed

6 files changed

+1653
-1597
lines changed

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10940,8 +10940,8 @@ M: Shawn Lin <[email protected]>
1094010940
1094110941
1094210942
S: Maintained
10943-
F: Documentation/devicetree/bindings/pci/rockchip-pcie.txt
10944-
F: drivers/pci/host/pcie-rockchip.c
10943+
F: Documentation/devicetree/bindings/pci/rockchip-pcie*
10944+
F: drivers/pci/host/pcie-rockchip*
1094510945

1094610946
PCI DRIVER FOR V3 SEMICONDUCTOR V360EPC
1094710947
M: Linus Walleij <[email protected]>

drivers/pci/host/Kconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,16 @@ config PCI_HOST_THUNDER_ECAM
179179
Say Y here if you want ECAM support for CN88XX-Pass-1.x Cavium Thunder SoCs.
180180

181181
config PCIE_ROCKCHIP
182-
tristate "Rockchip PCIe controller"
182+
bool
183+
depends on PCI
184+
185+
config PCIE_ROCKCHIP_HOST
186+
tristate "Rockchip PCIe host controller"
183187
depends on ARCH_ROCKCHIP || COMPILE_TEST
184188
depends on OF
185189
depends on PCI_MSI_IRQ_DOMAIN
186190
select MFD_SYSCON
191+
select PCIE_ROCKCHIP
187192
help
188193
Say Y here if you want internal PCI support on Rockchip SoC.
189194
There is 1 internal PCIe port available to support GEN2 with

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_HOST) += pcie-rockchip-host.o
2324
obj-$(CONFIG_PCIE_MEDIATEK) += pcie-mediatek.o
2425
obj-$(CONFIG_PCIE_TANGO_SMP8759) += pcie-tango.o
2526
obj-$(CONFIG_VMD) += vmd.o

0 commit comments

Comments
 (0)