Skip to content

Commit 88b8310

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/PCI] Add DesignWare PCIe RC/EP base drivers
Too many PCI controllers base on DesignWare PCIe. This is a modules. Signed-off-by: GuEe-GUI <[email protected]>
1 parent 50982cd commit 88b8310

File tree

8 files changed

+2923
-0
lines changed

8 files changed

+2923
-0
lines changed

components/drivers/pci/host/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ config RT_PCI_HOST_GENERIC
88
depends on RT_PCI_ECAM
99
select RT_PCI_HOST_COMMON
1010
default y
11+
12+
rsource "dw/Kconfig"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
config RT_PCI_DW
2+
bool "DesignWare-based PCIe"
3+
depends on RT_MFD_SYSCON
4+
depends on RT_USING_DMA
5+
default n
6+
7+
config RT_PCI_DW_HOST
8+
bool
9+
depends on RT_PCI_DW
10+
11+
config RT_PCI_DW_EP
12+
bool
13+
depends on RT_PCI_DW
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from building import *
2+
3+
group = []
4+
5+
if not GetDepend(['RT_PCI_DW']):
6+
Return('group')
7+
8+
cwd = GetCurrentDir()
9+
CPPPATH = [cwd + '/../../../include']
10+
11+
src = ['pcie-dw.c', 'pcie-dw_platfrom.c']
12+
13+
if GetDepend(['RT_PCI_DW_HOST']):
14+
src += ['pcie-dw_host.c']
15+
16+
if GetDepend(['RT_PCI_DW_EP']):
17+
src += ['pcie-dw_ep.c']
18+
19+
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
20+
21+
Return('group')

0 commit comments

Comments
 (0)