]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - arch/arm/plat-pxa/pmu.c
Merge branch 'docs-next' of git://git.lwn.net/linux-2.6
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / plat-pxa / pmu.c
1 /*
2 * PMU IRQ registration for the PXA xscale PMU families.
3 * Copyright (C) 2010 Will Deacon, ARM Ltd.
4 *
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.
8 *
9 */
10
11 #include <linux/platform_device.h>
12 #include <asm/pmu.h>
13 #include <mach/irqs.h>
14
15 static struct resource pmu_resource = {
16 .start = IRQ_PMU,
17 .end = IRQ_PMU,
18 .flags = IORESOURCE_IRQ,
19 };
20
21 static struct platform_device pmu_device = {
22 .name = "arm-pmu",
23 .id = ARM_PMU_DEVICE_CPU,
24 .resource = &pmu_resource,
25 .num_resources = 1,
26 };
27
28 static int __init pxa_pmu_init(void)
29 {
30 platform_device_register(&pmu_device);
31 return 0;
32 }
33 arch_initcall(pxa_pmu_init);