drivers: irqchip: Add Monaco MPM wake interrupt mapping

Add wakeup capable interrupts mapping for MPM.

Change-Id: Ia2e02bf22ea32cafdb7a5327470aafd01cf05ad4
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
This commit is contained in:
Srinivas Rao L 2020-12-11 11:44:34 +05:30 committed by Gerrit - the friendly Code Review server
parent 38b09e6378
commit 618e2b8131
4 changed files with 21 additions and 1 deletions

View File

@ -99,7 +99,7 @@ obj-$(CONFIG_QCOM_PDC) += qcom-pdc.o
obj-$(CONFIG_CSKY_MPINTC) += irq-csky-mpintc.o
obj-$(CONFIG_CSKY_APB_INTC) += irq-csky-apb-intc.o
obj-$(CONFIG_QCOM_MPM) += mpm.o
mpm-objs += qcom-mpm.o qcom-mpm-holi.o qcom-mpm-sdxnightjar.o
mpm-objs += qcom-mpm.o qcom-mpm-holi.o qcom-mpm-sdxnightjar.o qcom-mpm-monaco.o
obj-$(CONFIG_SIFIVE_PLIC) += irq-sifive-plic.o
obj-$(CONFIG_IMX_IRQSTEER) += irq-imx-irqsteer.o
obj-$(CONFIG_MADERA_IRQ) += irq-madera.o

View File

@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#include <soc/qcom/mpm.h>
const struct mpm_pin mpm_monaco_gic_chip_data[] = {
{5, 296}, /* lpass_irq_out_sdc */
{8, 260}, /* eud_p0_dpse_int_mx */
{86, 183}, /* mpm_wake,spmi_m */
{89, 422}, /* tsens0_tsens_0C_int */
{91, 260}, /* eud_p0_dmse_int_mx */
{-1},
};

View File

@ -564,6 +564,10 @@ static const struct of_device_id mpm_gic_chip_data_table[] = {
.compatible = "qcom,mpm-gic-sdxnightjar",
.data = mpm_sdxnightjar_gic_chip_data,
},
{
.compatible = "qcom,mpm-gic-monaco",
.data = mpm_monaco_gic_chip_data,
},
{}
};
MODULE_DEVICE_TABLE(of, mpm_gic_chip_data_table);

View File

@ -18,4 +18,5 @@ void msm_mpm_timer_write(uint32_t *expiry);
void msm_mpm_enter_sleep(struct cpumask *cpumask);
extern const struct mpm_pin mpm_holi_gic_chip_data[];
extern const struct mpm_pin mpm_sdxnightjar_gic_chip_data[];
extern const struct mpm_pin mpm_monaco_gic_chip_data[];
#endif /* __QCOM_MPM_H__ */