Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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