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

Commit c70a699d authored by Lina Iyer's avatar Lina Iyer Committed by Gerrit - the friendly Code Review server
Browse files

pinctrl: qcom: lahaina: add GPIO wakeup interrupt map



GPIOs that can be configured as wakeup sources, have their
interrupt lines routed to PDC interrupt controller. Provide
the interrupt map of the GPIO to its wakeup capable interrupt
parent.

Change-Id: I969388b9a5035e8e1c3303451ef07f89b906bbd7
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 1ec1dc87
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -1859,6 +1859,25 @@ static struct pinctrl_qup lahaina_qup_regs[] = {
	QUP_I3C(15, QUP_I3C_15_MODE_OFFSET),
};

static const struct msm_gpio_wakeirq_map lahaina_pdc_map[] = {
	{ 2, 117 }, { 7, 82 }, { 11, 83 }, { 14, 80 }, { 15, 146 },
	{ 19, 121 }, { 23, 84 }, { 26, 86 }, { 27, 75 }, { 31, 85 },
	{ 32, 97 }, { 34, 98 }, { 35, 131 }, { 36, 79 }, { 38, 99 },
	{ 39, 92 }, { 40, 101 }, { 43, 137 }, { 44, 102 }, { 46, 96 },
	{ 47, 93 }, { 50, 108 }, { 51, 127 }, { 55, 128 }, { 56, 81 },
	{ 59, 112 }, { 60, 119 }, { 63, 73 }, { 67, 74 }, { 71, 134 },
	{ 75, 103 }, { 79, 104 }, { 80, 126 }, { 81, 139 }, { 82, 140 },
	{ 83, 141 }, { 84, 124 }, { 85, 109 }, { 86, 143 }, { 87, 138 },
	{ 88, 122 }, { 89, 113 }, { 90, 114 }, { 91, 115 }, { 92, 76 },
	{ 95, 147 }, { 96, 148 }, { 98, 149 }, { 99, 150 }, { 115, 125 },
	{ 116, 106 }, { 117, 105 }, { 118, 116 }, { 119, 123 }, { 130, 145 },
	{ 136, 72 }, { 140, 100 }, { 151, 110 }, { 153, 95 }, { 155, 107 },
	{ 156, 94 }, { 157, 111 }, { 159, 118 }, { 162, 77 }, { 165, 78 },
	{ 169, 70 }, { 172, 132 }, { 174, 87 }, { 175, 88 }, { 177, 89 },
	{ 179, 120 }, { 180, 129 }, { 183, 90 }, { 185, 136 }, { 187, 142 },
	{ 190, 144 }, { 198, 91 }, { 200, 133 }, { 202, 135 },
};

static const struct msm_pinctrl_soc_data lahaina_pinctrl = {
	.pins = lahaina_pins,
	.npins = ARRAY_SIZE(lahaina_pins),
@@ -1870,6 +1889,8 @@ static const struct msm_pinctrl_soc_data lahaina_pinctrl = {
	.ngpios = 203,
	.qup_regs = lahaina_qup_regs,
	.nqup_regs = ARRAY_SIZE(lahaina_qup_regs),
	.wakeirq_map = lahaina_pdc_map,
	.nwakeirq_map = ARRAY_SIZE(lahaina_pdc_map),
};

static int lahaina_pinctrl_probe(struct platform_device *pdev)