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

Commit 598e0e2e authored by Srinivas Rao L's avatar Srinivas Rao L Committed by Gerrit - the friendly Code Review server
Browse files

drivers: pinctrl: Add gpio to mpm mapping for Monaco



Add gpio to mpm  mapping for the wakeup capable gpio interrupts

Change-Id: If366a57efdb33b68b3283a7d81760ab62eb634d3
Signed-off-by: default avatarSrinivas Rao L <lsrao@codeaurora.org>
parent 618e2b81
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
@@ -1594,6 +1594,61 @@ static struct pinctrl_qup monaco_qup_regs[] = {
	QUP_I3C(6, QUP_I3C_6_MODE_OFFSET),
};

static const struct msm_gpio_wakeirq_map monaco_mpm_map[] = {
	{0, 84},
	{3, 13},
	{4, 14},
	{6, 16},
	{7, 17},
	{8, 18},
	{9, 19},
	{10, 20},
	{13, 21},
	{14, 23},
	{16, 24},
	{17, 25},
	{18, 26},
	{19, 27},
	{20, 28},
	{23, 29},
	{24, 30},
	{25, 31},
	{26, 32},
	{29, 33},
	{31, 34},
	{33, 37},
	{34, 38},
	{36, 39},
	{39, 40},
	{40, 41},
	{41, 42},
	{42, 43},
	{45, 44},
	{47, 45},
	{48, 46},
	{49, 47},
	{52, 48},
	{55, 49},
	{56, 50},
	{61, 51},
	{62, 52},
	{63, 53},
	{64, 54},
	{66, 55},
	{67, 56},
	{68, 57},
	{72, 58},
	{73, 59},
	{74, 81},
	{76, 82},
	{78, 60},
	{79, 61},
	{80, 62},
	{82, 63},
	{83, 64},
	{84, 65},
};

static const struct msm_pinctrl_soc_data monaco_pinctrl = {
	.pins = monaco_pins,
	.npins = ARRAY_SIZE(monaco_pins),
@@ -1604,6 +1659,8 @@ static const struct msm_pinctrl_soc_data monaco_pinctrl = {
	.ngpios = 112,
	.qup_regs = monaco_qup_regs,
	.nqup_regs = ARRAY_SIZE(monaco_qup_regs),
	.wakeirq_map = monaco_mpm_map,
	.nwakeirq_map = ARRAY_SIZE(monaco_mpm_map),
};

static int monaco_pinctrl_probe(struct platform_device *pdev)