drm/msm: activate iommu support
authorStephane Viau <sviau@codeaurora.org>
Tue, 17 Jun 2014 14:32:38 +0000 (10:32 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 4 Aug 2014 15:55:28 +0000 (11:55 -0400)
This changes activates the iommu support for MDP5, through the
platform config structure.

Signed-off-by: Stephane Viau <sviau@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c

index 71510ee..33b826d 100644 (file)
@@ -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;
 }