aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-l2x0.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-03-15 12:48:01 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-05-29 19:47:25 -0400
commita65bb925601cf35ef5db54c8a9ad9e6575c6fe8c (patch)
tree746133ab2424449b496f00bd7511b612dc8b3112 /arch/arm/mm/cache-l2x0.c
parent1f1d5b745a4617a2cb2ffd8f4a9bc3be664cfc98 (diff)
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>
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r--arch/arm/mm/cache-l2x0.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index f9985e5a208c..ac410b21edfb 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -946,20 +946,17 @@ static const struct l2x0_of_data bcm_l2x0_data = {
946 }, 946 },
947}; 947};
948 948
949#define L2C_ID(name, fns) { .compatible = name, .data = (void *)&fns }
949static const struct of_device_id l2x0_ids[] __initconst = { 950static const struct of_device_id l2x0_ids[] __initconst = {
950 { .compatible = "arm,l210-cache", .data = (void *)&l2x0_data }, 951 L2C_ID("arm,l210-cache", l2x0_data),
951 { .compatible = "arm,l220-cache", .data = (void *)&l2x0_data }, 952 L2C_ID("arm,l220-cache", l2x0_data),
952 { .compatible = "arm,pl310-cache", .data = (void *)&pl310_data }, 953 L2C_ID("arm,pl310-cache", pl310_data),
953 { .compatible = "bcm,bcm11351-a2-pl310-cache", /* deprecated name */ 954 L2C_ID("brcm,bcm11351-a2-pl310-cache", bcm_l2x0_data),
954 .data = (void *)&bcm_l2x0_data}, 955 L2C_ID("marvell,aurora-outer-cache", aurora_with_outer_data),
955 { .compatible = "brcm,bcm11351-a2-pl310-cache", 956 L2C_ID("marvell,aurora-system-cache", aurora_no_outer_data),
956 .data = (void *)&bcm_l2x0_data}, 957 L2C_ID("marvell,tauros3-cache", tauros3_data),
957 { .compatible = "marvell,aurora-outer-cache", 958 /* Deprecated IDs */
958 .data = (void *)&aurora_with_outer_data}, 959 L2C_ID("bcm,bcm11351-a2-pl310-cache", bcm_l2x0_data),
959 { .compatible = "marvell,aurora-system-cache",
960 .data = (void *)&aurora_no_outer_data},
961 { .compatible = "marvell,tauros3-cache",
962 .data = (void *)&tauros3_data },
963 {} 960 {}
964}; 961};
965 962