@@ -999,11 +999,22 @@ static const struct ipmmu_features ipmmu
.use_of_iommu = false,
};
+static const struct ipmmu_features ipmmu_features_r8a7795 = {
+ .use_ns_alias_offset = false,
+ .has_cache_leaf_nodes = true,
+ .setup_imbuscr = false,
+ .twobit_imttbcr_sl0 = true,
+ .use_of_iommu = true,
+};
+
static const struct of_device_id ipmmu_of_ids[] = {
{
.compatible = "renesas,ipmmu-vmsa",
.data = &ipmmu_features_default,
}, {
+ .compatible = "renesas,ipmmu-r8a7795",
+ .data = &ipmmu_features_r8a7795,
+ }, {
/* Terminator */
},
};
@@ -1163,7 +1174,7 @@ static int __init ipmmu_vmsa_iommu_of_se
return 0;
}
-IOMMU_OF_DECLARE(ipmmu_vmsa_iommu_of, "renesas,ipmmu-vmsa",
+IOMMU_OF_DECLARE(ipmmu_vmsa_iommu_of, "renesas,ipmmu-r8a7795",
ipmmu_vmsa_iommu_of_setup);
MODULE_DESCRIPTION("IOMMU API for Renesas VMSA-compatible IPMMU");