HACK: iommu/arm-smmu: c-model hack
Hiroshi Doyu [Fri, 7 Nov 2014 09:03:05 +0000 (11:03 +0200)]
MC_SMMU_CONFIG needs to be enabled.

Change-Id: I24d5a4b77302abf75b083ec2f5dc76ccf6d72097
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/595862
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/iommu/arm-smmu.c

index a79ac71..b77a81d 100644 (file)
@@ -59,6 +59,7 @@
 #include <trace/events/arm_smmu.h>
 
 #include "of_tegra-smmu.h" /* FIXME: to parse implicitly */
+#include "tegra-smmu.h"
 
 /* Maximum number of stream IDs assigned to a single device */
 #define MAX_MASTER_STREAMIDS           MAX_PHANDLE_ARGS
@@ -2550,6 +2551,7 @@ static int __init arm_smmu_init(void)
        else
                pr_info("%s(): 0x%08x is mapped to %p\n",
                        __func__, MC_BASE, mc_base);
+       __writel(SMMU_CONFIG_ENABLE, mc_base + SMMU_CONFIG);
 
        ret = platform_driver_register(&arm_smmu_driver);
        if (ret)