Browse Source

drm/msm: activate iommu support

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>
Stephane Viau 11 years ago
parent
commit
3bf6c1ecae
1 changed files with 6 additions and 0 deletions
  1. 6 0
      drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c

+ 6 - 0
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;
 }