2 * PMU IRQ registration for the iop3xx 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>
12 #include <mach/irqs.h>
14 static struct resource pmu_resource
= {
15 #ifdef CONFIG_ARCH_IOP32X
16 .start
= IRQ_IOP32X_CORE_PMU
,
17 .end
= IRQ_IOP32X_CORE_PMU
,
19 #ifdef CONFIG_ARCH_IOP33X
20 .start
= IRQ_IOP33X_CORE_PMU
,
21 .end
= IRQ_IOP33X_CORE_PMU
,
23 .flags
= IORESOURCE_IRQ
,
26 static struct platform_device pmu_device
= {
29 .resource
= &pmu_resource
,
33 static int __init
iop3xx_pmu_init(void)
35 platform_device_register(&pmu_device
);
39 arch_initcall(iop3xx_pmu_init
);