From: Stephane Viau Date: Tue, 17 Jun 2014 14:32:38 +0000 (-0400) Subject: drm/msm: activate iommu support X-Git-Tag: v3.17-rc1~82^2~18^2~12 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3bf6c1ecaecba6290afa6db23155cd8b9865fd6a;p=~emulex%2Finfiniband.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 71510ee26e9..33b826dc493 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; }