Skip to content
Snippets Groups Projects
Commit 5e8e27b7 authored by Stuart Yoder's avatar Stuart Yoder Committed by York Sun
Browse files

pci/layerscape: set LUT and msi-map for discovered PCI devices


msi-map properties are used to tell an OS how PCI requester IDs are
mapped to ARM SMMU stream IDs.

for all PCI devices discovered in a system:
  -allocate a LUT (look-up-table) entry in that PCI controller
  -allocate a stream ID for the device
  -program and enable a LUT entry (maps PCI requester id to stream ID)
  -set the msi-map property on the controller reflecting the
   LUT mapping

basic bus scanning loop/logic was taken from drivers/pci/pci.c
pci_hose_scan_bus().

Signed-off-by: default avatarStuart Yoder <stuart.yoder@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 7e7e1264
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment