iommu: provide helper function to configure an IOMMU for an of master
authorWill Deacon <will.deacon@arm.com>
Wed, 27 Aug 2014 15:20:32 +0000 (16:20 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 1 Dec 2014 16:50:38 +0000 (16:50 +0000)
commit7eba1d51485197fa77c43c42eae3ce04b4b1c1c0
treeace7a25c7d2aaf0e6250d60db0ee08faf55bf201
parentd0f60a44f5120a8e1c48995285c7d8d1e4915b35
iommu: provide helper function to configure an IOMMU for an of master

The generic IOMMU device-tree bindings can be used to add arbitrary OF
masters to an IOMMU with a compliant binding.

This patch introduces of_iommu_configure, which does exactly that.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Joerg Roedel <jroedel@suse.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/Kconfig
drivers/iommu/of_iommu.c
include/linux/of_iommu.h