qcom-pdc.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) qcom-pdc.c (4acd8a4be614a6c191273f2247aff7374a92f318)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 */
5
6#include <linux/err.h>
7#include <linux/init.h>
8#include <linux/interrupt.h>
9#include <linux/irq.h>
10#include <linux/irqchip.h>
11#include <linux/irqdomain.h>
12#include <linux/io.h>
13#include <linux/kernel.h>
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 */
5
6#include <linux/err.h>
7#include <linux/init.h>
8#include <linux/interrupt.h>
9#include <linux/irq.h>
10#include <linux/irqchip.h>
11#include <linux/irqdomain.h>
12#include <linux/io.h>
13#include <linux/kernel.h>
14#include <linux/module.h>
14#include <linux/of.h>
15#include <linux/of_address.h>
16#include <linux/of_device.h>
15#include <linux/of.h>
16#include <linux/of_address.h>
17#include <linux/of_device.h>
18#include <linux/of_irq.h>
17#include <linux/soc/qcom/irq.h>
18#include <linux/spinlock.h>
19#include <linux/slab.h>
20#include <linux/types.h>
21
22#define PDC_MAX_IRQS 168
23#define PDC_MAX_GPIO_IRQS 256
24

--- 429 unchanged lines hidden (view full) ---

454remove:
455 irq_domain_remove(pdc_domain);
456fail:
457 kfree(pdc_region);
458 iounmap(pdc_base);
459 return ret;
460}
461
19#include <linux/soc/qcom/irq.h>
20#include <linux/spinlock.h>
21#include <linux/slab.h>
22#include <linux/types.h>
23
24#define PDC_MAX_IRQS 168
25#define PDC_MAX_GPIO_IRQS 256
26

--- 429 unchanged lines hidden (view full) ---

456remove:
457 irq_domain_remove(pdc_domain);
458fail:
459 kfree(pdc_region);
460 iounmap(pdc_base);
461 return ret;
462}
463
462IRQCHIP_DECLARE(qcom_pdc, "qcom,pdc", qcom_pdc_init);
464IRQCHIP_PLATFORM_DRIVER_BEGIN(qcom_pdc)
465IRQCHIP_MATCH("qcom,pdc", qcom_pdc_init)
466IRQCHIP_PLATFORM_DRIVER_END(qcom_pdc)
467MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller");
468MODULE_LICENSE("GPL v2");