diff options
author | Nipun Gupta <nipun.gupta@nxp.com> | 2016-12-05 01:17:08 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:46 (GMT) |
commit | 59043b188dd2813d8422de372869811bca1237b7 (patch) | |
tree | 6f8c7568bac54bf0c91b3315ab577abdc26b2784 /arch/arm64/mm | |
parent | 0507539f16491b27099e801915680038b83db229 (diff) | |
download | linux-59043b188dd2813d8422de372869811bca1237b7.tar.xz |
arm64: dma-mapping: Add support for the fsl-mc bus
Register the DMA ops for fsl-mc bus
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/dma-mapping.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index e072daa..1ef0d6d 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -30,6 +30,7 @@ #include <linux/swiotlb.h> #include <asm/cacheflush.h> +#include <../../../drivers/staging/fsl-mc/include/mc-bus.h> static int swiotlb __ro_after_init; @@ -918,6 +919,10 @@ static int __init __iommu_dma_init(void) if (!ret) ret = register_iommu_dma_ops_notifier(&pci_bus_type); #endif +#ifdef CONFIG_FSL_MC_BUS + if (!ret) + ret = register_iommu_dma_ops_notifier(&fsl_mc_bus_type); +#endif return ret; } arch_initcall(__iommu_dma_init); |