.. | .. |
---|
1 | | -/* |
---|
2 | | - * Copyright (C) 2015-2017 Socionext Inc. |
---|
3 | | - * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
8 | | - * (at your option) any later version. |
---|
9 | | - * |
---|
10 | | - * This program5 is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | | - */ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
| 2 | +// |
---|
| 3 | +// Copyright (C) 2015-2017 Socionext Inc. |
---|
| 4 | +// Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
15 | 5 | |
---|
16 | 6 | #include <linux/kernel.h> |
---|
17 | 7 | #include <linux/init.h> |
---|
.. | .. |
---|
1048 | 1038 | static const int nand_cs1_muxvals[] = {1, 1}; |
---|
1049 | 1039 | static const unsigned sd_pins[] = {150, 151, 152, 153, 154, 155, 156, 157, 158}; |
---|
1050 | 1040 | static const int sd_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; |
---|
1051 | | -static const unsigned sd1_pins[] = {319, 320, 321, 322, 323, 324, 325, 326, |
---|
1052 | | - 327}; |
---|
1053 | | -static const int sd1_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0}; |
---|
| 1041 | +static const unsigned int sd1_pins[] = {319, 320, 321, 322, 323, 324, 325, 326}; |
---|
| 1042 | +static const int sd1_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0}; |
---|
1054 | 1043 | static const unsigned spi0_pins[] = {199, 200, 201, 202}; |
---|
1055 | 1044 | static const int spi0_muxvals[] = {11, 11, 11, 11}; |
---|
1056 | 1045 | static const unsigned spi1_pins[] = {195, 196, 197, 198, 235, 238, 239}; |
---|
.. | .. |
---|
1083 | 1072 | static const int uart2_muxvals[] = {0, 0}; |
---|
1084 | 1073 | static const unsigned uart3_pins[] = {88, 89}; |
---|
1085 | 1074 | static const int uart3_muxvals[] = {2, 2}; |
---|
1086 | | -static const unsigned uart3_ctsrts_pins[] = {80, 81, 82, 83, 90, 91}; |
---|
1087 | | -static const int uart3_ctsrts_muxvals[] = {2, 2, 2, 2, 2, 2}; |
---|
| 1075 | +static const unsigned uart3_ctsrts_pins[] = {90, 91}; |
---|
| 1076 | +static const int uart3_ctsrts_muxvals[] = {2, 2}; |
---|
| 1077 | +static const unsigned uart3_modem_pins[] = {80, 81, 82, 83}; |
---|
| 1078 | +static const int uart3_modem_muxvals[] = {2, 2, 2, 2}; |
---|
1088 | 1079 | static const unsigned usb0_pins[] = {180, 181}; |
---|
1089 | 1080 | static const int usb0_muxvals[] = {0, 0}; |
---|
1090 | 1081 | static const unsigned usb1_pins[] = {182, 183}; |
---|
.. | .. |
---|
1159 | 1150 | UNIPHIER_PINCTRL_GROUP(uart2), |
---|
1160 | 1151 | UNIPHIER_PINCTRL_GROUP(uart3), |
---|
1161 | 1152 | UNIPHIER_PINCTRL_GROUP(uart3_ctsrts), |
---|
| 1153 | + UNIPHIER_PINCTRL_GROUP(uart3_modem), |
---|
1162 | 1154 | UNIPHIER_PINCTRL_GROUP(usb0), |
---|
1163 | 1155 | UNIPHIER_PINCTRL_GROUP(usb1), |
---|
1164 | 1156 | UNIPHIER_PINCTRL_GROUP(usb2), |
---|
.. | .. |
---|
1192 | 1184 | static const char * const uart0_groups[] = {"uart0"}; |
---|
1193 | 1185 | static const char * const uart1_groups[] = {"uart1"}; |
---|
1194 | 1186 | static const char * const uart2_groups[] = {"uart2"}; |
---|
1195 | | -static const char * const uart3_groups[] = {"uart3", "uart3_ctsrts"}; |
---|
| 1187 | +static const char * const uart3_groups[] = {"uart3", "uart3_ctsrts", |
---|
| 1188 | + "uart3_modem"}; |
---|
1196 | 1189 | static const char * const usb0_groups[] = {"usb0"}; |
---|
1197 | 1190 | static const char * const usb1_groups[] = {"usb1"}; |
---|
1198 | 1191 | static const char * const usb2_groups[] = {"usb2"}; |
---|
.. | .. |
---|
1233 | 1226 | return 7; |
---|
1234 | 1227 | } |
---|
1235 | 1228 | |
---|
1236 | | -static struct uniphier_pinctrl_socdata uniphier_pro4_pindata = { |
---|
| 1229 | +static const struct uniphier_pinctrl_socdata uniphier_pro4_pindata = { |
---|
1237 | 1230 | .pins = uniphier_pro4_pins, |
---|
1238 | 1231 | .npins = ARRAY_SIZE(uniphier_pro4_pins), |
---|
1239 | 1232 | .groups = uniphier_pro4_groups, |
---|