pmu.c 599 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * PMU IRQ registration for the iop3xx xscale PMU families.
  4. * Copyright (C) 2010 Will Deacon, ARM Ltd.
  5. */
  6. #include <linux/platform_device.h>
  7. #include "irqs.h"
  8. static struct resource pmu_resource = {
  9. .start = IRQ_IOP32X_CORE_PMU,
  10. .end = IRQ_IOP32X_CORE_PMU,
  11. .flags = IORESOURCE_IRQ,
  12. };
  13. static struct platform_device pmu_device = {
  14. .name = "xscale-pmu",
  15. .id = -1,
  16. .resource = &pmu_resource,
  17. .num_resources = 1,
  18. };
  19. static int __init iop3xx_pmu_init(void)
  20. {
  21. platform_device_register(&pmu_device);
  22. return 0;
  23. }
  24. arch_initcall(iop3xx_pmu_init);