summaryrefslogtreecommitdiffstats
path: root/lib/parser.c
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2020-12-08 17:44:02 +0530
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-12-09 15:07:11 +0000
commit4c9398822106c366d88c8c68ddf44bd371d39961 (patch)
tree39bbeef404ee4db7d1e3a00270657f62168e25fa /lib/parser.c
parente1dd639e374a1345c63eb7e8931e08de7cb8f904 (diff)
downloadlinux-4c9398822106c366d88c8c68ddf44bd371d39961.tar.bz2
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/20201208121402.178011-4-mani@kernel.org Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions