| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * Copyright (C) 2016-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) 2016-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> |
|---|
| .. | .. |
|---|
| 536 | 526 | static const int uart2_muxvals[] = {1, 1}; |
|---|
| 537 | 527 | static const unsigned uart3_pins[] = {94, 95}; |
|---|
| 538 | 528 | static const int uart3_muxvals[] = {1, 1}; |
|---|
| 539 | | -static const unsigned uart3_ctsrts_pins[] = {96, 97, 98, 99, 100, 101}; |
|---|
| 540 | | -static const int uart3_ctsrts_muxvals[] = {1, 1, 1, 1, 1, 1}; |
|---|
| 529 | +static const unsigned uart3_ctsrts_pins[] = {96, 98}; |
|---|
| 530 | +static const int uart3_ctsrts_muxvals[] = {1, 1}; |
|---|
| 531 | +static const unsigned uart3_modem_pins[] = {97, 99, 100, 101}; |
|---|
| 532 | +static const int uart3_modem_muxvals[] = {1, 1, 1, 1}; |
|---|
| 541 | 533 | static const unsigned usb0_pins[] = {46, 47}; |
|---|
| 542 | 534 | static const int usb0_muxvals[] = {0, 0}; |
|---|
| 543 | 535 | static const unsigned usb1_pins[] = {48, 49}; |
|---|
| .. | .. |
|---|
| 610 | 602 | UNIPHIER_PINCTRL_GROUP(uart2), |
|---|
| 611 | 603 | UNIPHIER_PINCTRL_GROUP(uart3), |
|---|
| 612 | 604 | UNIPHIER_PINCTRL_GROUP(uart3_ctsrts), |
|---|
| 605 | + UNIPHIER_PINCTRL_GROUP(uart3_modem), |
|---|
| 613 | 606 | UNIPHIER_PINCTRL_GROUP(usb0), |
|---|
| 614 | 607 | UNIPHIER_PINCTRL_GROUP(usb1), |
|---|
| 615 | 608 | UNIPHIER_PINCTRL_GROUP(usb2), |
|---|
| .. | .. |
|---|
| 646 | 639 | static const char * const uart0_groups[] = {"uart0"}; |
|---|
| 647 | 640 | static const char * const uart1_groups[] = {"uart1"}; |
|---|
| 648 | 641 | static const char * const uart2_groups[] = {"uart2"}; |
|---|
| 649 | | -static const char * const uart3_groups[] = {"uart3", "uart3_ctsrts"}; |
|---|
| 642 | +static const char * const uart3_groups[] = {"uart3", "uart3_ctsrts", |
|---|
| 643 | + "uart3_modem"}; |
|---|
| 650 | 644 | static const char * const usb0_groups[] = {"usb0"}; |
|---|
| 651 | 645 | static const char * const usb1_groups[] = {"usb1"}; |
|---|
| 652 | 646 | static const char * const usb2_groups[] = {"usb2"}; |
|---|
| .. | .. |
|---|
| 690 | 684 | return 15; |
|---|
| 691 | 685 | } |
|---|
| 692 | 686 | |
|---|
| 693 | | -static struct uniphier_pinctrl_socdata uniphier_ld11_pindata = { |
|---|
| 687 | +static const struct uniphier_pinctrl_socdata uniphier_ld11_pindata = { |
|---|
| 694 | 688 | .pins = uniphier_ld11_pins, |
|---|
| 695 | 689 | .npins = ARRAY_SIZE(uniphier_ld11_pins), |
|---|
| 696 | 690 | .groups = uniphier_ld11_groups, |
|---|