5f6b8a2b36
To make the mpm driver as module driver, register the mpm driver to platform bus driver and create the both gic and gpio irq domains in its probe function. Also add the support for mpm pin to gic irq number translation to send irq info to its parent gic domain. Also add the select and match function support to gpio chip domain to differentiate it from gic interrupt domain. Change-Id: I433f3a5b895d0ca074bae986ad5154892d7a31c4 Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
21 lines
452 B
C
21 lines
452 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __QCOM_MPM_H__
|
|
#define __QCOM_MPM_H__
|
|
|
|
#include <linux/irq.h>
|
|
#include <linux/device.h>
|
|
|
|
struct mpm_pin {
|
|
int pin;
|
|
irq_hw_number_t hwirq;
|
|
};
|
|
|
|
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[];
|
|
#endif /* __QCOM_MPM_H__ */
|