Skip to content

Commit de80f95

Browse files
Tom JosephLorenzo Pieralisi
authored andcommitted
PCI: cadence: Move all files to per-device cadence directory
Cadence core library files may be used by various platform drivers. Add a new directory "cadence" to group all the Cadence core library files and the platforms using Cadence core library. Signed-off-by: Tom Joseph <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Andrew Murray <[email protected]>
1 parent bd22885 commit de80f95

File tree

9 files changed

+52
-47
lines changed

9 files changed

+52
-47
lines changed

drivers/pci/controller/Kconfig

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,6 @@ config PCI_AARDVARK
2222
controller is part of the South Bridge of the Marvel Armada
2323
3700 SoC.
2424

25-
menu "Cadence PCIe controllers support"
26-
27-
config PCIE_CADENCE
28-
bool
29-
30-
config PCIE_CADENCE_HOST
31-
bool
32-
depends on OF
33-
select IRQ_DOMAIN
34-
select PCIE_CADENCE
35-
36-
config PCIE_CADENCE_EP
37-
bool
38-
depends on OF
39-
depends on PCI_ENDPOINT
40-
select PCIE_CADENCE
41-
42-
config PCIE_CADENCE_PLAT
43-
bool
44-
45-
config PCIE_CADENCE_PLAT_HOST
46-
bool "Cadence PCIe platform host controller"
47-
depends on OF
48-
select PCIE_CADENCE_HOST
49-
select PCIE_CADENCE_PLAT
50-
help
51-
Say Y here if you want to support the Cadence PCIe platform controller in
52-
host mode. This PCIe controller may be embedded into many different
53-
vendors SoCs.
54-
55-
config PCIE_CADENCE_PLAT_EP
56-
bool "Cadence PCIe platform endpoint controller"
57-
depends on OF
58-
depends on PCI_ENDPOINT
59-
select PCIE_CADENCE_EP
60-
select PCIE_CADENCE_PLAT
61-
help
62-
Say Y here if you want to support the Cadence PCIe platform controller in
63-
endpoint mode. This PCIe controller may be embedded into many
64-
different vendors SoCs.
65-
66-
endmenu
67-
6825
config PCIE_XILINX_NWL
6926
bool "NWL PCIe Core"
7027
depends on ARCH_ZYNQMP || COMPILE_TEST
@@ -304,4 +261,5 @@ config PCI_HYPERV_INTERFACE
304261
have a common interface with the Hyper-V PCI frontend driver.
305262

306263
source "drivers/pci/controller/dwc/Kconfig"
264+
source "drivers/pci/controller/cadence/Kconfig"
307265
endmenu

drivers/pci/controller/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-$(CONFIG_PCIE_CADENCE) += pcie-cadence.o
3-
obj-$(CONFIG_PCIE_CADENCE_HOST) += pcie-cadence-host.o
4-
obj-$(CONFIG_PCIE_CADENCE_EP) += pcie-cadence-ep.o
5-
obj-$(CONFIG_PCIE_CADENCE_PLAT) += pcie-cadence-plat.o
2+
obj-$(CONFIG_PCIE_CADENCE) += cadence/
63
obj-$(CONFIG_PCI_FTPCI100) += pci-ftpci100.o
74
obj-$(CONFIG_PCI_HYPERV) += pci-hyperv.o
85
obj-$(CONFIG_PCI_HYPERV_INTERFACE) += pci-hyperv-intf.o
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
menu "Cadence PCIe controllers support"
4+
depends on PCI
5+
6+
config PCIE_CADENCE
7+
bool
8+
9+
config PCIE_CADENCE_HOST
10+
bool
11+
depends on OF
12+
select IRQ_DOMAIN
13+
select PCIE_CADENCE
14+
15+
config PCIE_CADENCE_EP
16+
bool
17+
depends on OF
18+
depends on PCI_ENDPOINT
19+
select PCIE_CADENCE
20+
21+
config PCIE_CADENCE_PLAT
22+
bool
23+
24+
config PCIE_CADENCE_PLAT_HOST
25+
bool "Cadence PCIe platform host controller"
26+
depends on OF
27+
select PCIE_CADENCE_HOST
28+
select PCIE_CADENCE_PLAT
29+
help
30+
Say Y here if you want to support the Cadence PCIe platform controller in
31+
host mode. This PCIe controller may be embedded into many different
32+
vendors SoCs.
33+
34+
config PCIE_CADENCE_PLAT_EP
35+
bool "Cadence PCIe platform endpoint controller"
36+
depends on OF
37+
depends on PCI_ENDPOINT
38+
select PCIE_CADENCE_EP
39+
select PCIE_CADENCE_PLAT
40+
help
41+
Say Y here if you want to support the Cadence PCIe platform controller in
42+
endpoint mode. This PCIe controller may be embedded into many
43+
different vendors SoCs.
44+
45+
endmenu
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_PCIE_CADENCE) += pcie-cadence.o
3+
obj-$(CONFIG_PCIE_CADENCE_HOST) += pcie-cadence-host.o
4+
obj-$(CONFIG_PCIE_CADENCE_EP) += pcie-cadence-ep.o
5+
obj-$(CONFIG_PCIE_CADENCE_PLAT) += pcie-cadence-plat.o

0 commit comments

Comments
 (0)