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

Commit 8a987160 authored by Elliot Berman's avatar Elliot Berman
Browse files

driver: pinctrl: Add reserved GPIOs for Lahaina



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: I896b1cc02221873341cb79db63fd61db155f5590
Signed-off-by: default avatarElliot Berman <eberman@codeaurora.org>
parent 3adfbb92
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1836,6 +1836,10 @@ static const struct msm_pingroup lahaina_groups[] = {
	[206] = UFS_RESET(ufs_reset, 0x1d8000),
};

static const int lahaina_reserved_gpios[] = {
	52, 53, 54, 55, 56, 57, 58, 59, -1
};

static const struct msm_pinctrl_soc_data lahaina_pinctrl = {
	.pins = lahaina_pins,
	.npins = ARRAY_SIZE(lahaina_pins),
@@ -1843,6 +1847,7 @@ static const struct msm_pinctrl_soc_data lahaina_pinctrl = {
	.nfunctions = ARRAY_SIZE(lahaina_functions),
	.groups = lahaina_groups,
	.ngroups = ARRAY_SIZE(lahaina_groups),
	.reserved_gpios = lahaina_reserved_gpios,
	.ngpios = 203,
};