OSDN Git Service

iommu/qcom: Add qcom_iommu
authorRob Clark <robdclark@gmail.com>
Wed, 9 Aug 2017 14:43:04 +0000 (10:43 -0400)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 15:34:49 +0000 (17:34 +0200)
commit0ae349a0f33fb040a2bc228fdc6d60111455feab
tree19a43227771e950ff70ae121a913d94e57fb57be
parent2b03774bae5f95091dac125a492caad71644b6db
iommu/qcom: Add qcom_iommu

An iommu driver for Qualcomm "B" family devices which do implement the
ARM SMMU spec, but not in a way that is compatible with how the arm-smmu
driver is designed.  It seems SMMU_SCR1.GASRAE=1 so the global register
space is not accessible.  This means it needs to get configuration from
devicetree instead of setting it up dynamically.

In the end, other than register definitions, there is not much code to
share with arm-smmu (other than what has already been refactored out
into the pgtable helpers).

Signed-off-by: Rob Clark <robdclark@gmail.com>
Tested-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/Makefile
drivers/iommu/qcom_iommu.c [new file with mode: 0644]