hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
....@@ -1,17 +1,7 @@
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>
155
166 #include <linux/kernel.h>
177 #include <linux/init.h>
....@@ -523,8 +513,10 @@
523513 static const int system_bus_cs5_muxvals[] = {1};
524514 static const unsigned uart0_pins[] = {70, 71};
525515 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};
528520 static const unsigned uart1_pins[] = {114, 115};
529521 static const int uart1_muxvals[] = {0, 0};
530522 static const unsigned uart2_pins[] = {112, 113};
....@@ -582,6 +574,7 @@
582574 UNIPHIER_PINCTRL_GROUP(system_bus_cs5),
583575 UNIPHIER_PINCTRL_GROUP(uart0),
584576 UNIPHIER_PINCTRL_GROUP(uart0_ctsrts),
577
+ UNIPHIER_PINCTRL_GROUP(uart0_modem),
585578 UNIPHIER_PINCTRL_GROUP(uart1),
586579 UNIPHIER_PINCTRL_GROUP(uart2),
587580 UNIPHIER_PINCTRL_GROUP(uart3),
....@@ -609,7 +602,8 @@
609602 "system_bus_cs3",
610603 "system_bus_cs4",
611604 "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"};
613607 static const char * const uart1_groups[] = {"uart1"};
614608 static const char * const uart2_groups[] = {"uart2"};
615609 static const char * const uart3_groups[] = {"uart3"};
....@@ -652,7 +646,7 @@
652646 }
653647 }
654648
655
-static struct uniphier_pinctrl_socdata uniphier_sld8_pindata = {
649
+static const struct uniphier_pinctrl_socdata uniphier_sld8_pindata = {
656650 .pins = uniphier_sld8_pins,
657651 .npins = ARRAY_SIZE(uniphier_sld8_pins),
658652 .groups = uniphier_sld8_groups,