aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2014-05-23 07:12:04 -0400
committerOlof Johansson <olof@lixom.net>2015-02-06 03:12:55 -0500
commitcbed8388bfd613da631cf3c1940ba3c8a34a915b (patch)
tree1df49df9963d1e8da357a77e9a61342baad0cdc2 /arch/arm/mach-realview
parentd073d7a1460ae1ae56a81bbb0a58d6f17917ca51 (diff)
arm: realview: specify PMU types
Now that we can specify which PMU variant we're likely to deal with, do so in the realview board code. This will allow us to split the ARMv6, ARMv7, and XScale PMU drivers. The Realview EB may be used with ARMv6 or ARMv7 CPUs, but luckily there's only a single ARMv7 CPU, so we can match that explicitly to determine whether or not we have an ARMv7 PMU. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Olof Johansson <olof@lixom.net> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r--arch/arm/mach-realview/realview_eb.c3
-rw-r--r--arch/arm/mach-realview/realview_pb1176.c2
-rw-r--r--arch/arm/mach-realview/realview_pb11mp.c2
-rw-r--r--arch/arm/mach-realview/realview_pba8.c2
-rw-r--r--arch/arm/mach-realview/realview_pbx.c2
5 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c
index 739d4f113097..64c88d657f9e 100644
--- a/arch/arm/mach-realview/realview_eb.c
+++ b/arch/arm/mach-realview/realview_eb.c
@@ -37,6 +37,7 @@
37#include <asm/pgtable.h> 37#include <asm/pgtable.h>
38#include <asm/hardware/cache-l2x0.h> 38#include <asm/hardware/cache-l2x0.h>
39#include <asm/smp_twd.h> 39#include <asm/smp_twd.h>
40#include <asm/system_info.h>
40 41
41#include <asm/mach/arch.h> 42#include <asm/mach/arch.h>
42#include <asm/mach/map.h> 43#include <asm/mach/map.h>
@@ -296,7 +297,6 @@ static struct resource pmu_resources[] = {
296}; 297};
297 298
298static struct platform_device pmu_device = { 299static struct platform_device pmu_device = {
299 .name = "arm-pmu",
300 .id = -1, 300 .id = -1,
301 .num_resources = ARRAY_SIZE(pmu_resources), 301 .num_resources = ARRAY_SIZE(pmu_resources),
302 .resource = pmu_resources, 302 .resource = pmu_resources,
@@ -451,6 +451,7 @@ static void __init realview_eb_init(void)
451 */ 451 */
452 l2x0_init(__io_address(REALVIEW_EB11MP_L220_BASE), 0x00790000, 0xfe000fff); 452 l2x0_init(__io_address(REALVIEW_EB11MP_L220_BASE), 0x00790000, 0xfe000fff);
453#endif 453#endif
454 pmu_device.name = core_tile_a9mp() ? "armv7-pmu" : "armv6-pmu";
454 platform_device_register(&pmu_device); 455 platform_device_register(&pmu_device);
455 } 456 }
456 457
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c
index b0e0dcaed944..ce92c1823494 100644
--- a/arch/arm/mach-realview/realview_pb1176.c
+++ b/arch/arm/mach-realview/realview_pb1176.c
@@ -280,7 +280,7 @@ static struct resource pmu_resource = {
280}; 280};
281 281
282static struct platform_device pmu_device = { 282static struct platform_device pmu_device = {
283 .name = "arm-pmu", 283 .name = "armv6-pmu",
284 .id = -1, 284 .id = -1,
285 .num_resources = 1, 285 .num_resources = 1,
286 .resource = &pmu_resource, 286 .resource = &pmu_resource,
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c
index 47bf55fdbf27..15c45e25095f 100644
--- a/arch/arm/mach-realview/realview_pb11mp.c
+++ b/arch/arm/mach-realview/realview_pb11mp.c
@@ -262,7 +262,7 @@ static struct resource pmu_resources[] = {
262}; 262};
263 263
264static struct platform_device pmu_device = { 264static struct platform_device pmu_device = {
265 .name = "arm-pmu", 265 .name = "armv6-pmu",
266 .id = -1, 266 .id = -1,
267 .num_resources = ARRAY_SIZE(pmu_resources), 267 .num_resources = ARRAY_SIZE(pmu_resources),
268 .resource = pmu_resources, 268 .resource = pmu_resources,
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c
index 4e57a8599265..4c64662f5437 100644
--- a/arch/arm/mach-realview/realview_pba8.c
+++ b/arch/arm/mach-realview/realview_pba8.c
@@ -240,7 +240,7 @@ static struct resource pmu_resource = {
240}; 240};
241 241
242static struct platform_device pmu_device = { 242static struct platform_device pmu_device = {
243 .name = "arm-pmu", 243 .name = "armv7-pmu",
244 .id = -1, 244 .id = -1,
245 .num_resources = 1, 245 .num_resources = 1,
246 .resource = &pmu_resource, 246 .resource = &pmu_resource,
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c
index d89eb4023467..9a22b864219f 100644
--- a/arch/arm/mach-realview/realview_pbx.c
+++ b/arch/arm/mach-realview/realview_pbx.c
@@ -280,7 +280,7 @@ static struct resource pmu_resources[] = {
280}; 280};
281 281
282static struct platform_device pmu_device = { 282static struct platform_device pmu_device = {
283 .name = "arm-pmu", 283 .name = "armv7-pmu",
284 .id = -1, 284 .id = -1,
285 .num_resources = ARRAY_SIZE(pmu_resources), 285 .num_resources = ARRAY_SIZE(pmu_resources),
286 .resource = pmu_resources, 286 .resource = pmu_resources,