android_kernel_xiaomi_sm8350/include/soc/qcom/mpm.h
Pavankumar Kondeti cea7789bf1 irqchip: mpm: Add mpm mapping for Blair
Currently both Blair and Holi use the same MPM pins mapping
configuration as they use the same compatible string. USB PHY
has a different GIC IRQ on Blair, so different MPM configuration
is required.

Change-Id: I1d72a70c0139abeac2d2ee32d103b7119a192ec9
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2021-06-16 00:24:21 +05:30

25 lines
680 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2018-2021, 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[];
extern const struct mpm_pin mpm_sdxnightjar_gic_chip_data[];
extern const struct mpm_pin mpm_monaco_gic_chip_data[];
extern const struct mpm_pin mpm_qcs405_gic_chip_data[];
extern const struct mpm_pin mpm_blair_gic_chip_data[];
#endif /* __QCOM_MPM_H__ */