1 // SPDX-License-Identifier: GPL-2.0-only
3 * PMU IRQ registration for the iop3xx xscale PMU families.
4 * Copyright (C) 2010 Will Deacon, ARM Ltd.
7 #include <linux/platform_device.h>
10 static struct resource pmu_resource = {
11 #ifdef CONFIG_ARCH_IOP32X
12 .start = IRQ_IOP32X_CORE_PMU,
13 .end = IRQ_IOP32X_CORE_PMU,
15 #ifdef CONFIG_ARCH_IOP33X
16 .start = IRQ_IOP33X_CORE_PMU,
17 .end = IRQ_IOP33X_CORE_PMU,
19 .flags = IORESOURCE_IRQ,
22 static struct platform_device pmu_device = {
25 .resource = &pmu_resource,
29 static int __init iop3xx_pmu_init(void)
31 platform_device_register(&pmu_device);
35 arch_initcall(iop3xx_pmu_init);