forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pci: add interface to create pci-ep device tree node
This patch enables PCIe device to uses flattened device tree to describe apertures in its PCIe BARs. The aperture address consists of PCIe BAR index and offset. For this kind of device, the driver probe routine calls the new added interface to create a device tree node. This device tree node is attached under system device tree root. Then the driver may load the flatten device tree overlay and attach it under this node. And the node also contains 'ranges' property which is used to translate aperture address(BAR index and offset) to CPU address. Signed-off-by: Sonal Santan <sonal.santan@xilinx.com> Signed-off-by: Max Zhen <max.zhen@xilinx.com> Signed-off-by: Lizhi Hou <lizhi.hou@xilinx.com>
- Loading branch information
1 parent
dca6693
commit 3a2c08c
Showing
2 changed files
with
195 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
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