pinctrl: distinguish reserve gpio list by macro definition

For each project has its own reserve gpio list. So we should have
the way to distinguish it in every different products.
We use a macro definition for this. If the gpios are not assigned to
TZ, they should be removed from the list.

Change-Id: I0837a3abdf8d7398aa2e7138563cb891b9f53780
Reviewed-on: https://gerrit.mot.com/2121376
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weiweij 2021-11-19 10:23:44 +08:00 • committed by Xiaojun Ji
commit 8bbe2b36c3
4 changed files with 10 additions and 0 deletions

View file

@ -21,3 +21,4 @@ CONFIG_ZRAM_WRITEBACK=y
# CONFIG_REGULATOR_QPNP_LCDB is not set
CONFIG_AW882XX_STEREO_SMARTPA=y
# CONFIG_MICRON_UFSHID is not set
CONFIG_QUP0_SE2_AP=y

View file

@ -343,4 +343,7 @@ config PINCTRL_BLAIR
Say Y here to compile statically, or M here to compile it as a module.
If unsure, say N.
config QUP0_SE2_AP
bool "Set GPIO of QUP0_SE2 as AP side"
endif

View file

@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
# Qualcomm pin control drivers
ccflags-$(CONFIG_QUP0_SE2_AP) += -DQUP0_SE2_AP
obj-$(CONFIG_PINCTRL_MSM) += pinctrl-msm.o
obj-$(CONFIG_PINCTRL_APQ8064) += pinctrl-apq8064.o
obj-$(CONFIG_PINCTRL_APQ8084) += pinctrl-apq8084.o

View file

@ -1593,7 +1593,11 @@ static const struct msm_pingroup blair_groups[] = {
};
static const int blair_reserved_gpios[] = {
#ifdef QUP0_SE2_AP
13, 14, 15, 16, -1
#else
13, 14, 15, 16, 45, 46, 56, 57, -1
#endif
};
static const struct msm_gpio_wakeirq_map blair_mpm_map[] = {