[PATCH 7/7] iommu/fsl: Added cache controller compatible strings for SOCs
Codrin Ciubotariu
codrin.ciubotariu at nxp.com
Tue Mar 8 02:34:23 AEDT 2016
From: Varun Sethi <Varun.Sethi at freescale.com>
Added cache controller compatible strings for T2080, B4420, T1040
and T1024. PAMU driver searches for a matching string while setting
up L3 cache stashing.
Signed-off-by: Varun Sethi <Varun.Sethi at freescale.com>
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu at nxp.com>
---
drivers/iommu/fsl_pamu.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c
index 290231a..47f54fe 100644
--- a/drivers/iommu/fsl_pamu.c
+++ b/drivers/iommu/fsl_pamu.c
@@ -63,12 +63,20 @@ static const struct of_device_id guts_device_ids[] = {
/*
* Table for matching compatible strings, for device tree
* L3 cache controller node.
+ * "fsl,t1024-l3-cache-controller" corresponds to T1024,
+ * "fsl,t1040-l3-cache-controller" corresponds to T1040,
+ * "fsl,b4420-l3-cache-controller" corresponds to B4420,
+ * "fsl,t2080-l3-cache-controller" corresponds to T2080,
* "fsl,t4240-l3-cache-controller" corresponds to T4,
* "fsl,b4860-l3-cache-controller" corresponds to B4 &
* "fsl,p4080-l3-cache-controller" corresponds to other,
* SOCs.
*/
static const struct of_device_id l3_device_ids[] = {
+ { .compatible = "fsl,t1024-l3-cache-controller", },
+ { .compatible = "fsl,t1040-l3-cache-controller", },
+ { .compatible = "fsl,b4420-l3-cache-controller", },
+ { .compatible = "fsl,t2080-l3-cache-controller", },
{ .compatible = "fsl,t4240-l3-cache-controller", },
{ .compatible = "fsl,b4860-l3-cache-controller", },
{ .compatible = "fsl,p4080-l3-cache-controller", },
@@ -647,6 +655,8 @@ u32 get_stash_id(u32 stash_dest_hint, u32 vcpu)
of_node_put(node);
return be32_to_cpup(prop);
}
+ pr_err("%s: Failed to get L3 cache controller information\n",
+ __func__);
return ~(u32)0;
}
--
1.9.3
More information about the Linuxppc-dev
mailing list