-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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]>
- Loading branch information
Showing
8 changed files
with
2,923 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ config RT_PCI_HOST_GENERIC | |
depends on RT_PCI_ECAM | ||
select RT_PCI_HOST_COMMON | ||
default y | ||
|
||
rsource "dw/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Oops, something went wrong.