diff options
Diffstat (limited to 'arch/arm/mach-realview/realview_pb1176.c')
-rw-r--r-- | arch/arm/mach-realview/realview_pb1176.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index 217f7c19551e..96568ebfa2bb 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
32 | #include <asm/leds.h> | 32 | #include <asm/leds.h> |
33 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
34 | #include <asm/pmu.h> | ||
34 | #include <asm/hardware/gic.h> | 35 | #include <asm/hardware/gic.h> |
35 | #include <asm/hardware/cache-l2x0.h> | 36 | #include <asm/hardware/cache-l2x0.h> |
36 | 37 | ||
@@ -261,6 +262,19 @@ static struct resource realview_pb1176_isp1761_resources[] = { | |||
261 | }, | 262 | }, |
262 | }; | 263 | }; |
263 | 264 | ||
265 | static struct resource pmu_resource = { | ||
266 | .start = IRQ_DC1176_CORE_PMU, | ||
267 | .end = IRQ_DC1176_CORE_PMU, | ||
268 | .flags = IORESOURCE_IRQ, | ||
269 | }; | ||
270 | |||
271 | static struct platform_device pmu_device = { | ||
272 | .name = "arm-pmu", | ||
273 | .id = ARM_PMU_DEVICE_CPU, | ||
274 | .num_resources = 1, | ||
275 | .resource = &pmu_resource, | ||
276 | }; | ||
277 | |||
264 | static void __init gic_init_irq(void) | 278 | static void __init gic_init_irq(void) |
265 | { | 279 | { |
266 | /* ARM1176 DevChip GIC, primary */ | 280 | /* ARM1176 DevChip GIC, primary */ |
@@ -322,6 +336,7 @@ static void __init realview_pb1176_init(void) | |||
322 | realview_eth_register(NULL, realview_pb1176_smsc911x_resources); | 336 | realview_eth_register(NULL, realview_pb1176_smsc911x_resources); |
323 | platform_device_register(&realview_i2c_device); | 337 | platform_device_register(&realview_i2c_device); |
324 | realview_usb_register(realview_pb1176_isp1761_resources); | 338 | realview_usb_register(realview_pb1176_isp1761_resources); |
339 | platform_device_register(&pmu_device); | ||
325 | 340 | ||
326 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | 341 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
327 | struct amba_device *d = amba_devs[i]; | 342 | struct amba_device *d = amba_devs[i]; |