mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rk: l2c: only init when chip is rockchip
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user