.. | .. |
---|
1 | | -/* |
---|
2 | | - * Copyright (C) 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 program 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) 2017 Socionext Inc. |
---|
| 4 | +// Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
15 | 5 | |
---|
16 | 6 | #include <linux/init.h> |
---|
17 | 7 | #include <linux/kernel.h> |
---|
.. | .. |
---|
821 | 811 | static const int system_bus_cs1_muxvals[] = {0}; |
---|
822 | 812 | static const unsigned int uart0_pins[] = {92, 93}; |
---|
823 | 813 | static const int uart0_muxvals[] = {0, 0}; |
---|
824 | | -static const unsigned int uart0_ctsrts_pins[] = {243, 244, 245, 246, 247, 248}; |
---|
825 | | -static const int uart0_ctsrts_muxvals[] = {3, 3, 3, 3, 3, 3}; |
---|
| 814 | +static const unsigned int uart0_ctsrts_pins[] = {243, 247}; |
---|
| 815 | +static const int uart0_ctsrts_muxvals[] = {3, 3}; |
---|
| 816 | +static const unsigned int uart0_modem_pins[] = {244, 245, 246, 248}; |
---|
| 817 | +static const int uart0_modem_muxvals[] = {3, 3, 3, 3}; |
---|
826 | 818 | static const unsigned int uart1_pins[] = {94, 95}; |
---|
827 | 819 | static const int uart1_muxvals[] = {0, 0}; |
---|
828 | 820 | static const unsigned int uart2_pins[] = {96, 97}; |
---|
.. | .. |
---|
897 | 889 | UNIPHIER_PINCTRL_GROUP(system_bus_cs1), |
---|
898 | 890 | UNIPHIER_PINCTRL_GROUP(uart0), |
---|
899 | 891 | UNIPHIER_PINCTRL_GROUP(uart0_ctsrts), |
---|
| 892 | + UNIPHIER_PINCTRL_GROUP(uart0_modem), |
---|
900 | 893 | UNIPHIER_PINCTRL_GROUP(uart1), |
---|
901 | 894 | UNIPHIER_PINCTRL_GROUP(uart2), |
---|
902 | 895 | UNIPHIER_PINCTRL_GROUP(uart3), |
---|
.. | .. |
---|
924 | 917 | static const char * const spi1_groups[] = {"spi1"}; |
---|
925 | 918 | static const char * const system_bus_groups[] = {"system_bus", |
---|
926 | 919 | "system_bus_cs1"}; |
---|
927 | | -static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts"}; |
---|
| 920 | +static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts", |
---|
| 921 | + "uart0_modem"}; |
---|
928 | 922 | static const char * const uart1_groups[] = {"uart1"}; |
---|
929 | 923 | static const char * const uart2_groups[] = {"uart2"}; |
---|
930 | 924 | static const char * const uart3_groups[] = {"uart3"}; |
---|
.. | .. |
---|
971 | 965 | return 15; |
---|
972 | 966 | } |
---|
973 | 967 | |
---|
974 | | -static struct uniphier_pinctrl_socdata uniphier_pxs3_pindata = { |
---|
| 968 | +static const struct uniphier_pinctrl_socdata uniphier_pxs3_pindata = { |
---|
975 | 969 | .pins = uniphier_pxs3_pins, |
---|
976 | 970 | .npins = ARRAY_SIZE(uniphier_pxs3_pins), |
---|
977 | 971 | .groups = uniphier_pxs3_groups, |
---|