Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 452ce8cb authored by Raja Mallik's avatar Raja Mallik Committed by Gerrit - the friendly Code Review server
Browse files

drivers: irqchip: qcom: Add MSM8909 pin data for MPM



Add MPM pin interrupt mapping for msm8909 chip.

Change-Id: I6b7c467bc3ea7216abb0afc157440e005a3bdfa5
Signed-off-by: default avatarChinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
parent cd4a99b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ Properties:
Example:

wakegic: wake-gic@7781b8 {
	compatible = "qcom,mpm-gic", "qcom,mpm-gic-msm8953", "qcom,mpm-gic-msm8937";
	compatible = "qcom,mpm-gic", "qcom,mpm-gic-msm8953", "qcom,mpm-gic-msm8937", "qcom,mpm-gic-msm8909";
	interrupts = <GIC_SPI 171 IRQ_TYPE_EDGE_RISING>;
	reg = <0x601d4 0x1000>,
	    <0xb011008 0x4>;  /* MSM_APCS_GCC_BASE 4K */
@@ -85,7 +85,7 @@ properties:
Example:

wakegpio: wake-gpio {
	compatible = "qcom,mpm-gpio", "qcom,mpm-gpio-msm8953", "qcom,mpm-gpio-msm8937";
	compatible = "qcom,mpm-gpio", "qcom,mpm-gpio-msm8953", "qcom,mpm-gpio-msm8937","qcom,mpm-gpio-msm8909";
	interrupt-controller;
	interrupt-parent = <&tlmm>;
	#interrupt-cells = <2>;
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@ obj-$(CONFIG_QTI_PDC) += pdc.o
obj-$(CONFIG_QTI_PDC_SDM845)		+= pdc-sdm845.o
obj-$(CONFIG_QTI_PDC_SDM670)		+= pdc-sdm670.o
obj-$(CONFIG_QTI_PDC_SDXPOORWILLS)	+= pdc-sdxpoorwills.o
obj-$(CONFIG_QTI_MPM)			+= mpm.o mpm-8953.o mpm-8937.o
obj-$(CONFIG_QTI_MPM)			+= mpm.o mpm-8909.o mpm-8953.o mpm-8937.o
+70 −0
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#include "mpm.h"

const struct mpm_pin mpm_msm8909_gic_chip_data[] = {
	{2, 216}, /* tsens_upper_lower_int */
	{48, 168}, /* usb_phy_id_irq */
	{49, 172}, /* usb1_hs_async_wakeup_irq */
	{58, 166}, /* usb_hs_irq */
	{53, 104}, /* mdss_irq */
	{62, 222}, /* ee0_krait_hlos_spmi_periph_irq */
	{-1},
};

const struct mpm_pin mpm_msm8909_gpio_chip_data[] = {
	{3, 65 },
	{4, 5},
	{5, 11},
	{6, 12},
	{7, 64},
	{8, 58},
	{9, 50},
	{10, 13},
	{11, 49},
	{12, 20},
	{13, 21},
	{14, 25},
	{15, 46},
	{16, 45},
	{17, 28},
	{18, 44},
	{19, 31},
	{20, 43},
	{21, 42},
	{22, 34},
	{23, 35},
	{24, 36},
	{25, 37},
	{26, 38},
	{27, 39},
	{28, 40},
	{29, 41},
	{30, 90},
	{32, 91},
	{33, 92},
	{34, 94},
	{35, 95},
	{36, 96},
	{37, 97},
	{38, 98},
	{39, 110},
	{40, 111},
	{41, 112},
	{42, 105},
	{43, 107},
	{50, 47},
	{51, 48},
	{-1},
};
+8 −0
Original line number Diff line number Diff line
@@ -597,6 +597,10 @@ static const struct of_device_id mpm_gic_chip_data_table[] = {
		.compatible = "qcom,mpm-gic-msm8937",
		.data = mpm_msm8937_gic_chip_data,
	},
	{
		.compatible = "qcom,mpm-gic-msm8909",
		.data = mpm_msm8909_gic_chip_data,
	},
	{}
};

@@ -611,6 +615,10 @@ static const struct of_device_id mpm_gpio_chip_data_table[] = {
		.compatible = "qcom,mpm-gpio-msm8937",
		.data = mpm_msm8937_gpio_chip_data,
	},
	{
		.compatible = "qcom,mpm-gpio-msm8909",
		.data = mpm_msm8909_gpio_chip_data,
	},
	{}
};

+3 −0
Original line number Diff line number Diff line
@@ -27,4 +27,7 @@ extern const struct mpm_pin mpm_msm8953_gpio_chip_data[];
extern const struct mpm_pin mpm_msm8937_gic_chip_data[];
extern const struct mpm_pin mpm_msm8937_gpio_chip_data[];

extern const struct mpm_pin mpm_msm8909_gic_chip_data[];
extern const struct mpm_pin mpm_msm8909_gpio_chip_data[];

#endif /* __QCOM_MPM_H__ */