Root/
1 | /* |
2 | * PMU IRQ registration for the iop3xx 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 | #ifdef CONFIG_ARCH_IOP32X |
17 | .start = IRQ_IOP32X_CORE_PMU, |
18 | .end = IRQ_IOP32X_CORE_PMU, |
19 | #endif |
20 | #ifdef CONFIG_ARCH_IOP33X |
21 | .start = IRQ_IOP33X_CORE_PMU, |
22 | .end = IRQ_IOP33X_CORE_PMU, |
23 | #endif |
24 | .flags = IORESOURCE_IRQ, |
25 | }; |
26 | |
27 | static struct platform_device pmu_device = { |
28 | .name = "arm-pmu", |
29 | .id = ARM_PMU_DEVICE_CPU, |
30 | .resource = &pmu_resource, |
31 | .num_resources = 1, |
32 | }; |
33 | |
34 | static int __init iop3xx_pmu_init(void) |
35 | { |
36 | platform_device_register(&pmu_device); |
37 | return 0; |
38 | } |
39 | |
40 | arch_initcall(iop3xx_pmu_init); |
41 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9