2 * PMU IRQ registration for the PXA xscale PMU families.
3 * Copyright (C) 2010 Will Deacon, ARM Ltd.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
11 #include <linux/platform_device.h>
13 #include <mach/irqs.h>
15 static struct resource pmu_resource = {
18 .flags = IORESOURCE_IRQ,
21 static struct platform_device pmu_device = {
23 .id = ARM_PMU_DEVICE_CPU,
24 .resource = &pmu_resource,
28 static int __init pxa_pmu_init(void)
30 platform_device_register(&pmu_device);
33 arch_initcall(pxa_pmu_init);