hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pinctrl/tegra/pinctrl-tegra124.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Pinctrl data for the NVIDIA Tegra124 pinmux
34 *
45 * Author: Ashwini Ghuge <aghuge@nvidia.com>
56 *
67 * Copyright (c) 2013-2014, 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>
....@@ -1749,8 +1741,8 @@
17491741 .lock_bit = 7, \
17501742 .ioreset_bit = PINGROUP_BIT_##ior(8), \
17511743 .rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \
1752
- .parked_bit = -1, \
17531744 .drv_reg = -1, \
1745
+ .parked_bitmask = 0, \
17541746 }
17551747
17561748 #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, \
....@@ -1770,7 +1762,6 @@
17701762 .rcv_sel_bit = -1, \
17711763 .drv_reg = DRV_PINGROUP_REG(r), \
17721764 .drv_bank = 0, \
1773
- .parked_bit = -1, \
17741765 .hsm_bit = hsm_b, \
17751766 .schmitt_bit = schmitt_b, \
17761767 .lpmd_bit = lpmd_b, \
....@@ -1783,6 +1774,7 @@
17831774 .slwf_bit = slwf_b, \
17841775 .slwf_width = slwf_w, \
17851776 .drvtype_bit = PINGROUP_BIT_##drvtype(6), \
1777
+ .parked_bitmask = 0, \
17861778 }
17871779
17881780 #define MIPI_PAD_CTRL_PINGROUP(pg_name, r, b, f0, f1) \
....@@ -2051,7 +2043,7 @@
20512043
20522044 static const struct tegra_pinctrl_soc_data tegra124_pinctrl = {
20532045 .ngpios = NUM_GPIOS,
2054
- .gpio_compatible = "nvidia,tegra30-gpio",
2046
+ .gpio_compatible = "nvidia,tegra124-gpio",
20552047 .pins = tegra124_pins,
20562048 .npins = ARRAY_SIZE(tegra124_pins),
20572049 .functions = tegra124_functions,