mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
driver: pinctrl: Add reserved GPIOs for Yupik
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: I7ff8444af2819a68c60e66bd4e4e9f5ecf4990fa Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>
This commit is contained in:
parent
4afb66961f
commit
67d881e295
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
|
|
@ -1806,6 +1806,10 @@ static const struct msm_pingroup yupik_groups[] = {
|
|||
[181] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x1b4000, 11, 3),
|
||||
[182] = SDC_QDSD_PINGROUP(sdc2_data, 0x1b4000, 9, 0),
|
||||
};
|
||||
|
||||
static const int yupik_reserved_gpios[] = {
|
||||
32, 33, 48, 49, 50, 51, -1
|
||||
};
|
||||
static struct pinctrl_qup yupik_qup_regs[] = {
|
||||
QUP_I3C(0, QUP_I3C_0_MODE_OFFSET),
|
||||
QUP_I3C(1, QUP_I3C_1_MODE_OFFSET),
|
||||
|
|
@ -1842,6 +1846,7 @@ static const struct msm_pinctrl_soc_data yupik_pinctrl = {
|
|||
.nfunctions = ARRAY_SIZE(yupik_functions),
|
||||
.groups = yupik_groups,
|
||||
.ngroups = ARRAY_SIZE(yupik_groups),
|
||||
.reserved_gpios = yupik_reserved_gpios,
|
||||
.ngpios = 176,
|
||||
.qup_regs = yupik_qup_regs,
|
||||
.nqup_regs = ARRAY_SIZE(yupik_qup_regs),
|
||||
|
|
|
|||
Loading…
Reference in a new issue