Skip to content

Commit

Permalink
[DM/PCI] Add DesignWare PCIe RC/EP base drivers
Browse files Browse the repository at this point in the history
Too many PCI controllers base on DesignWare PCIe.
This is a modules.

Signed-off-by: GuEe-GUI <[email protected]>
  • Loading branch information
GuEe-GUI authored and Rbb666 committed Nov 28, 2024
1 parent 50982cd commit 88b8310
Show file tree
Hide file tree
Showing 8 changed files with 2,923 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/drivers/pci/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ config RT_PCI_HOST_GENERIC
depends on RT_PCI_ECAM
select RT_PCI_HOST_COMMON
default y

rsource "dw/Kconfig"
13 changes: 13 additions & 0 deletions components/drivers/pci/host/dw/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
config RT_PCI_DW
bool "DesignWare-based PCIe"
depends on RT_MFD_SYSCON
depends on RT_USING_DMA
default n

config RT_PCI_DW_HOST
bool
depends on RT_PCI_DW

config RT_PCI_DW_EP
bool
depends on RT_PCI_DW
21 changes: 21 additions & 0 deletions components/drivers/pci/host/dw/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from building import *

group = []

if not GetDepend(['RT_PCI_DW']):
Return('group')

cwd = GetCurrentDir()
CPPPATH = [cwd + '/../../../include']

src = ['pcie-dw.c', 'pcie-dw_platfrom.c']

if GetDepend(['RT_PCI_DW_HOST']):
src += ['pcie-dw_host.c']

if GetDepend(['RT_PCI_DW_EP']):
src += ['pcie-dw_ep.c']

group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
Loading

0 comments on commit 88b8310

Please sign in to comment.