| .. | .. |
|---|
| 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 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) 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> |
|---|
| .. | .. |
|---|
| 593 | 583 | static const int system_bus_cs3_muxvals[] = {1}; |
|---|
| 594 | 584 | static const unsigned uart0_pins[] = {85, 88}; |
|---|
| 595 | 585 | static const int uart0_muxvals[] = {1, 1}; |
|---|
| 596 | | -static const unsigned uart0_ctsrts_pins[] = {86, 87, 89}; |
|---|
| 597 | | -static const int uart0_ctsrts_muxvals[] = {1, 1, 1}; |
|---|
| 586 | +static const unsigned uart0_ctsrts_pins[] = {86, 89}; |
|---|
| 587 | +static const int uart0_ctsrts_muxvals[] = {1, 1}; |
|---|
| 588 | +static const unsigned uart0_modem_pins[] = {87}; |
|---|
| 589 | +static const int uart0_modem_muxvals[] = {1}; |
|---|
| 598 | 590 | static const unsigned uart1_pins[] = {155, 156}; |
|---|
| 599 | 591 | static const int uart1_muxvals[] = {13, 13}; |
|---|
| 600 | 592 | static const unsigned uart1b_pins[] = {69, 70}; |
|---|
| .. | .. |
|---|
| 651 | 643 | UNIPHIER_PINCTRL_GROUP(system_bus_cs3), |
|---|
| 652 | 644 | UNIPHIER_PINCTRL_GROUP(uart0), |
|---|
| 653 | 645 | UNIPHIER_PINCTRL_GROUP(uart0_ctsrts), |
|---|
| 646 | + UNIPHIER_PINCTRL_GROUP(uart0_modem), |
|---|
| 654 | 647 | UNIPHIER_PINCTRL_GROUP(uart1), |
|---|
| 655 | 648 | UNIPHIER_PINCTRL_GROUP(uart1b), |
|---|
| 656 | 649 | UNIPHIER_PINCTRL_GROUP(uart2), |
|---|
| .. | .. |
|---|
| 677 | 670 | "system_bus_cs1", |
|---|
| 678 | 671 | "system_bus_cs2", |
|---|
| 679 | 672 | "system_bus_cs3"}; |
|---|
| 680 | | -static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts"}; |
|---|
| 673 | +static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts", |
|---|
| 674 | + "uart0_modem"}; |
|---|
| 681 | 675 | static const char * const uart1_groups[] = {"uart1", "uart1b"}; |
|---|
| 682 | 676 | static const char * const uart2_groups[] = {"uart2"}; |
|---|
| 683 | 677 | static const char * const uart3_groups[] = {"uart3"}; |
|---|
| .. | .. |
|---|
| 723 | 717 | } |
|---|
| 724 | 718 | } |
|---|
| 725 | 719 | |
|---|
| 726 | | -static struct uniphier_pinctrl_socdata uniphier_ld4_pindata = { |
|---|
| 720 | +static const struct uniphier_pinctrl_socdata uniphier_ld4_pindata = { |
|---|
| 727 | 721 | .pins = uniphier_ld4_pins, |
|---|
| 728 | 722 | .npins = ARRAY_SIZE(uniphier_ld4_pins), |
|---|
| 729 | 723 | .groups = uniphier_ld4_groups, |
|---|