forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pinctrl/tegra/pinctrl-tegra114.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Pinctrl data for the NVIDIA Tegra114 pinmux
34 *
45 * Author: Pritesh Raithatha <praithatha@nvidia.com>
56 *
67 * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms and conditions of the GNU General Public License,
10
- * version 2, as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
168 */
179
1810 #include <linux/init.h>
....@@ -1580,8 +1572,8 @@
15801572 .lock_bit = 7, \
15811573 .ioreset_bit = PINGROUP_BIT_##ior(8), \
15821574 .rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \
1583
- .parked_bit = -1, \
15841575 .drv_reg = -1, \
1576
+ .parked_bitmask = 0, \
15851577 }
15861578
15871579 #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, \
....@@ -1601,7 +1593,6 @@
16011593 .rcv_sel_bit = -1, \
16021594 .drv_reg = DRV_PINGROUP_REG(r), \
16031595 .drv_bank = 0, \
1604
- .parked_bit = -1, \
16051596 .hsm_bit = hsm_b, \
16061597 .schmitt_bit = schmitt_b, \
16071598 .lpmd_bit = lpmd_b, \
....@@ -1614,6 +1605,7 @@
16141605 .slwf_bit = slwf_b, \
16151606 .slwf_width = slwf_w, \
16161607 .drvtype_bit = PINGROUP_BIT_##drvtype(6), \
1608
+ .parked_bitmask = 0, \
16171609 }
16181610
16191611 static const struct tegra_pingroup tegra114_groups[] = {
....@@ -1839,7 +1831,7 @@
18391831
18401832 static const struct tegra_pinctrl_soc_data tegra114_pinctrl = {
18411833 .ngpios = NUM_GPIOS,
1842
- .gpio_compatible = "nvidia,tegra30-gpio",
1834
+ .gpio_compatible = "nvidia,tegra114-gpio",
18431835 .pins = tegra114_pins,
18441836 .npins = ARRAY_SIZE(tegra114_pins),
18451837 .functions = tegra114_functions,