rk: l2c: only init when chip is rockchip

This commit is contained in:
黄涛
2014-01-06 10:43:36 +08:00
parent 176fe4946e
commit 4a7bf65a43
2 changed files with 2 additions and 7 deletions

View File

@@ -60,7 +60,7 @@
};
L2: cache-controller@10138000 {
compatible = "arm,pl310-cache";
compatible = "rockchip,pl310-cache", "arm,pl310-cache";
reg = <0x10138000 0x1000>;
cache-unified;
cache-level = <2>;

View File

@@ -68,18 +68,13 @@ static int __init rockchip_cpu_axi_init(void)
}
early_initcall(rockchip_cpu_axi_init);
static const struct of_device_id pl330_ids[] __initconst = {
{ .compatible = "arm,pl310-cache" },
{}
};
static int __init rockchip_pl330_l2_cache_init(void)
{
struct device_node *np;
void __iomem *base;
u32 aux[2] = { 0, ~0 }, prefetch, power;
np = of_find_matching_node(NULL, pl330_ids);
np = of_find_compatible_node(NULL, NULL, "rockchip,pl310-cache");
if (!np)
return -ENODEV;