pinctrl: qcom: Import Xiaomi changes

From branch: redwood-s-oss

Change-Id: Ib47a937635ffbb1e249406945c5eba9d17f84e82
This commit is contained in:
Giovanni Ricca 2022-09-10 14:18:11 +05:30
parent 0312ee81ad
commit e9bb43575f
No known key found for this signature in database
4 changed files with 47 additions and 2 deletions

View File

@ -343,4 +343,16 @@ config PINCTRL_BLAIR
Say Y here to compile statically, or M here to compile it as a module.
If unsure, say N.
config PINCTRL_RENOIR
tristate "RENOIR GPIO condfig"
default n
config PINCTRL_REDWOOD
tristate "REDWOOD GPIO config"
default n
config PINCTRL_SM7325
tristate "SM7325 GPIO condfig"
default n
endif

View File

@ -1655,6 +1655,39 @@ int msm_pinctrl_probe(struct platform_device *pdev,
dev_dbg(&pdev->dev, "Probed Qualcomm pinctrl driver\n");
#ifdef CONFIG_PINCTRL_REDWOOD
// disable unused gpios for gic stuck
pr_err("Disable all unused GPIO wakeup\n");
msm_gpio_mpm_wake_set(20, false);
msm_gpio_mpm_wake_set(21, false);
msm_gpio_mpm_wake_set(23, false);
msm_gpio_mpm_wake_set(35, false);
msm_gpio_mpm_wake_set(43, false);
msm_gpio_mpm_wake_set(44, false);
msm_gpio_mpm_wake_set(68, false);
msm_gpio_mpm_wake_set(77, false);
msm_gpio_mpm_wake_set(78, false);
msm_gpio_mpm_wake_set(82, false);
msm_gpio_mpm_wake_set(83, false);
msm_gpio_mpm_wake_set(101, false);
msm_gpio_mpm_wake_set(140, false);
#endif
#ifdef CONFIG_PINCTRL_SM7325
return 0;
#endif
#ifdef CONFIG_PINCTRL_RENOIR
pr_err("Disable GPIO151, 202 wakeup\n");
msm_gpio_mpm_wake_set(151, false);
msm_gpio_mpm_wake_set(202, false);
#else
pr_err("Disable GPIO151, 200, 202 wakeup\n");
msm_gpio_mpm_wake_set(151, false);
msm_gpio_mpm_wake_set(200, false);
msm_gpio_mpm_wake_set(202, false);
#endif
return 0;
}
EXPORT_SYMBOL(msm_pinctrl_probe);

View File

@ -1853,7 +1853,7 @@ static const struct msm_pingroup shima_groups[] = {
};
static const int shima_reserved_gpios[] = {
4, 5, 6, 7, 40, 41, 52, 53, 54, 55, 56, 57, 58, 59, -1
4, 5, 7, 40, 41, 52, 53, 54, 55, 56, 57, 58, 59, -1
};
static struct pinctrl_qup shima_qup_regs[] = {

View File

@ -1808,7 +1808,7 @@ static const struct msm_pingroup yupik_groups[] = {
};
static const int yupik_reserved_gpios[] = {
32, 33, 48, 49, 50, 51, -1
32, 33, 48, 49, 50, 51, 56, 57, 58, 59, -1
};
static struct pinctrl_qup yupik_qup_regs[] = {
QUP_I3C(0, QUP_I3C_0_MODE_OFFSET),