aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-layerscape.c
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2020-12-08 17:44:02 +0530
committerLorenzo Pieralisi <[email protected]>2020-12-09 15:07:11 +0000
commit4c9398822106c366d88c8c68ddf44bd371d39961 (patch)
tree39bbeef404ee4db7d1e3a00270657f62168e25fa /drivers/pci/controller/dwc/pci-layerscape.c
parente1dd639e374a1345c63eb7e8931e08de7cb8f904 (diff)
PCI: qcom: Add support for configuring BDF to SID mapping for SM8250
For SM8250, we need to write the BDF to SID mapping in PCIe controller register space for proper working. This is accomplished by extracting the BDF and SID values from "iommu-map" property in DT and writing those in the register address calculated from the hash value of BDF. In case of collisions, the index of the next entry will also be written. For the sake of it, let's introduce a "config_sid" callback and do it conditionally for SM8250. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions