From: Stephane Viau Date: Tue, 17 Jun 2014 14:32:38 +0000 (-0400) Subject: drm/msm: activate iommu support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3bf6c1ecaecba6290afa6db23155cd8b9865fd6a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/msm: activate iommu support This changes activates the iommu support for MDP5, through the platform config structure. Signed-off-by: Stephane Viau Signed-off-by: Rob Clark --- diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c index 71510ee26e96..33b826dc493d 100644 --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c @@ -368,5 +368,11 @@ static struct mdp5_platform_config *mdp5_get_config(struct platform_device *dev) #ifdef CONFIG_OF /* TODO */ #endif + config.iommu = iommu_domain_alloc(&platform_bus_type); + /* TODO hard-coded in downstream mdss, but should it be? */ + config.max_clk = 200000000; + /* TODO get from DT: */ + config.smp_blk_cnt = 22; + return &config; }