| .. | .. |
|---|
| 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> |
|---|
| .. | .. |
|---|
| 523 | 513 | static const int system_bus_cs5_muxvals[] = {1}; |
|---|
| 524 | 514 | static const unsigned uart0_pins[] = {70, 71}; |
|---|
| 525 | 515 | static const int uart0_muxvals[] = {3, 3}; |
|---|
| 526 | | -static const unsigned uart0_ctsrts_pins[] = {72, 73, 74}; |
|---|
| 527 | | -static const int uart0_ctsrts_muxvals[] = {3, 3, 3}; |
|---|
| 516 | +static const unsigned uart0_ctsrts_pins[] = {72, 74}; |
|---|
| 517 | +static const int uart0_ctsrts_muxvals[] = {3, 3}; |
|---|
| 518 | +static const unsigned uart0_modem_pins[] = {73}; |
|---|
| 519 | +static const int uart0_modem_muxvals[] = {3}; |
|---|
| 528 | 520 | static const unsigned uart1_pins[] = {114, 115}; |
|---|
| 529 | 521 | static const int uart1_muxvals[] = {0, 0}; |
|---|
| 530 | 522 | static const unsigned uart2_pins[] = {112, 113}; |
|---|
| .. | .. |
|---|
| 582 | 574 | UNIPHIER_PINCTRL_GROUP(system_bus_cs5), |
|---|
| 583 | 575 | UNIPHIER_PINCTRL_GROUP(uart0), |
|---|
| 584 | 576 | UNIPHIER_PINCTRL_GROUP(uart0_ctsrts), |
|---|
| 577 | + UNIPHIER_PINCTRL_GROUP(uart0_modem), |
|---|
| 585 | 578 | UNIPHIER_PINCTRL_GROUP(uart1), |
|---|
| 586 | 579 | UNIPHIER_PINCTRL_GROUP(uart2), |
|---|
| 587 | 580 | UNIPHIER_PINCTRL_GROUP(uart3), |
|---|
| .. | .. |
|---|
| 609 | 602 | "system_bus_cs3", |
|---|
| 610 | 603 | "system_bus_cs4", |
|---|
| 611 | 604 | "system_bus_cs5"}; |
|---|
| 612 | | -static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts"}; |
|---|
| 605 | +static const char * const uart0_groups[] = {"uart0", "uart0_ctsrts", |
|---|
| 606 | + "uart0_modem"}; |
|---|
| 613 | 607 | static const char * const uart1_groups[] = {"uart1"}; |
|---|
| 614 | 608 | static const char * const uart2_groups[] = {"uart2"}; |
|---|
| 615 | 609 | static const char * const uart3_groups[] = {"uart3"}; |
|---|
| .. | .. |
|---|
| 652 | 646 | } |
|---|
| 653 | 647 | } |
|---|
| 654 | 648 | |
|---|
| 655 | | -static struct uniphier_pinctrl_socdata uniphier_sld8_pindata = { |
|---|
| 649 | +static const struct uniphier_pinctrl_socdata uniphier_sld8_pindata = { |
|---|
| 656 | 650 | .pins = uniphier_sld8_pins, |
|---|
| 657 | 651 | .npins = ARRAY_SIZE(uniphier_sld8_pins), |
|---|
| 658 | 652 | .groups = uniphier_sld8_groups, |
|---|