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

Commit 9aa1399e authored by Mayank Grover's avatar Mayank Grover Committed by Gerrit - the friendly Code Review server
Browse files

driver: pinctrl: Add reserved GPIOs for Holi



Certain GPIOs are reserved for secure world and cannot be accessed by HLOS.
Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid.

Change-Id: I07807f37adfd6d90e7b1bdc72b2106520f378b02
Signed-off-by: default avatarMayank Grover <groverm@codeaurora.org>
parent e6f3b6b3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1532,6 +1532,10 @@ static const struct msm_pingroup holi_groups[] = {
	[163] = SDC_QDSD_PINGROUP(sdc2_data, 0x1a2000, 9, 0),
};

static const int holi_reserved_gpios[] = {
	13, 14, 15, 16, 45, 46, 56, 57, -1
};

static const struct msm_gpio_wakeirq_map holi_mpm_map[] = {
	{0, 84},
	{3, 6},
@@ -1609,6 +1613,7 @@ static const struct msm_pinctrl_soc_data holi_pinctrl = {
	.nfunctions = ARRAY_SIZE(holi_functions),
	.groups = holi_groups,
	.ngroups = ARRAY_SIZE(holi_groups),
	.reserved_gpios = holi_reserved_gpios,
	.ngpios = 157,
	.wakeirq_map = holi_mpm_map,
	.nwakeirq_map = ARRAY_SIZE(holi_mpm_map),