mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 06:35:12 +00:00
ARM: l2c: add helper for L2 cache controller DT IDs
Make it easier to declare L2 cache controller DT IDs by using a macro. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
1f1d5b745a
commit
a65bb92560
1 changed files with 10 additions and 13 deletions
|
@ -946,20 +946,17 @@ static const struct l2x0_of_data bcm_l2x0_data = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define L2C_ID(name, fns) { .compatible = name, .data = (void *)&fns }
|
||||||
static const struct of_device_id l2x0_ids[] __initconst = {
|
static const struct of_device_id l2x0_ids[] __initconst = {
|
||||||
{ .compatible = "arm,l210-cache", .data = (void *)&l2x0_data },
|
L2C_ID("arm,l210-cache", l2x0_data),
|
||||||
{ .compatible = "arm,l220-cache", .data = (void *)&l2x0_data },
|
L2C_ID("arm,l220-cache", l2x0_data),
|
||||||
{ .compatible = "arm,pl310-cache", .data = (void *)&pl310_data },
|
L2C_ID("arm,pl310-cache", pl310_data),
|
||||||
{ .compatible = "bcm,bcm11351-a2-pl310-cache", /* deprecated name */
|
L2C_ID("brcm,bcm11351-a2-pl310-cache", bcm_l2x0_data),
|
||||||
.data = (void *)&bcm_l2x0_data},
|
L2C_ID("marvell,aurora-outer-cache", aurora_with_outer_data),
|
||||||
{ .compatible = "brcm,bcm11351-a2-pl310-cache",
|
L2C_ID("marvell,aurora-system-cache", aurora_no_outer_data),
|
||||||
.data = (void *)&bcm_l2x0_data},
|
L2C_ID("marvell,tauros3-cache", tauros3_data),
|
||||||
{ .compatible = "marvell,aurora-outer-cache",
|
/* Deprecated IDs */
|
||||||
.data = (void *)&aurora_with_outer_data},
|
L2C_ID("bcm,bcm11351-a2-pl310-cache", bcm_l2x0_data),
|
||||||
{ .compatible = "marvell,aurora-system-cache",
|
|
||||||
.data = (void *)&aurora_no_outer_data},
|
|
||||||
{ .compatible = "marvell,tauros3-cache",
|
|
||||||
.data = (void *)&tauros3_data },
|
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue