|
@@ -37,6 +37,7 @@
|
|
#include <asm/pgtable.h>
|
|
#include <asm/pgtable.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include <asm/smp_twd.h>
|
|
#include <asm/smp_twd.h>
|
|
|
|
+#include <asm/system_info.h>
|
|
|
|
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/map.h>
|
|
#include <asm/mach/map.h>
|
|
@@ -296,7 +297,6 @@ static struct resource pmu_resources[] = {
|
|
};
|
|
};
|
|
|
|
|
|
static struct platform_device pmu_device = {
|
|
static struct platform_device pmu_device = {
|
|
- .name = "arm-pmu",
|
|
|
|
.id = -1,
|
|
.id = -1,
|
|
.num_resources = ARRAY_SIZE(pmu_resources),
|
|
.num_resources = ARRAY_SIZE(pmu_resources),
|
|
.resource = pmu_resources,
|
|
.resource = pmu_resources,
|
|
@@ -451,6 +451,7 @@ static void __init realview_eb_init(void)
|
|
*/
|
|
*/
|
|
l2x0_init(__io_address(REALVIEW_EB11MP_L220_BASE), 0x00790000, 0xfe000fff);
|
|
l2x0_init(__io_address(REALVIEW_EB11MP_L220_BASE), 0x00790000, 0xfe000fff);
|
|
#endif
|
|
#endif
|
|
|
|
+ pmu_device.name = core_tile_a9mp() ? "armv7-pmu" : "armv6-pmu";
|
|
platform_device_register(&pmu_device);
|
|
platform_device_register(&pmu_device);
|
|
}
|
|
}
|
|
|
|
|