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

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

drivers: pinctrl: sdxlemur: add GPIO PDC map



Add GPIO pins that are routed to PDC interrupt controller and can be
used as wakeup capable GPIOs.

Change-Id: If2044dfe89f7593ee3a6fd843866d4f86f3f42a6
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
Signed-off-by: default avatarTushar Nimkar <tnimkar@codeaurora.org>
parent 930b53c4
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -1035,6 +1035,18 @@ static const struct msm_pingroup sdxlemur_groups[] = {
	[112] = UFS_RESET(ufs_reset, 0x0),
	[112] = UFS_RESET(ufs_reset, 0x0),
};
};


static const struct msm_gpio_wakeirq_map sdxlemur_pdc_map[] = {
	{1, 20}, {2, 21}, {5, 22}, {6, 23}, {9, 24}, {10, 25},
	{11, 26}, {12, 27}, {13, 28}, {14, 29}, {15, 30}, {16, 31},
	{17, 32}, {18, 33}, {19, 34}, {21, 35}, {22, 36}, {23, 70},
	{24, 37}, {25, 38}, {35, 40}, {43, 41}, {46, 44}, {48, 45},
	{49, 57}, {50, 46}, {52, 47}, {54, 49}, {55, 50}, {60, 53},
	{61, 54}, {64, 55}, {65, 81}, {68, 56}, {71, 58}, {73, 59},
	{77, 77}, {81, 65}, {83, 63}, {84, 64}, {86, 66}, {88, 67},
	{89, 68}, {90, 69}, {93, 71}, {94, 72}, {95, 73}, {96, 74},
	{99, 75}, {103, 78}, {104, 79}
};

static const struct msm_pinctrl_soc_data sdxlemur_pinctrl = {
static const struct msm_pinctrl_soc_data sdxlemur_pinctrl = {
	.pins = sdxlemur_pins,
	.pins = sdxlemur_pins,
	.npins = ARRAY_SIZE(sdxlemur_pins),
	.npins = ARRAY_SIZE(sdxlemur_pins),
@@ -1043,6 +1055,8 @@ static const struct msm_pinctrl_soc_data sdxlemur_pinctrl = {
	.groups = sdxlemur_groups,
	.groups = sdxlemur_groups,
	.ngroups = ARRAY_SIZE(sdxlemur_groups),
	.ngroups = ARRAY_SIZE(sdxlemur_groups),
	.ngpios = 108,
	.ngpios = 108,
	.wakeirq_map = sdxlemur_pdc_map,
	.nwakeirq_map = ARRAY_SIZE(sdxlemur_pdc_map),
};
};


static int sdxlemur_pinctrl_probe(struct platform_device *pdev)
static int sdxlemur_pinctrl_probe(struct platform_device *pdev)