forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.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>
....@@ -593,8 +583,10 @@
593583 static const int system_bus_cs3_muxvals[] = {1};
594584 static const unsigned uart0_pins[] = {85, 88};
595585 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};
598590 static const unsigned uart1_pins[] = {155, 156};
599591 static const int uart1_muxvals[] = {13, 13};
600592 static const unsigned uart1b_pins[] = {69, 70};
....@@ -651,6 +643,7 @@
651643 UNIPHIER_PINCTRL_GROUP(system_bus_cs3),
652644 UNIPHIER_PINCTRL_GROUP(uart0),
653645 UNIPHIER_PINCTRL_GROUP(uart0_ctsrts),
646
+ UNIPHIER_PINCTRL_GROUP(uart0_modem),
654647 UNIPHIER_PINCTRL_GROUP(uart1),
655648 UNIPHIER_PINCTRL_GROUP(uart1b),
656649 UNIPHIER_PINCTRL_GROUP(uart2),
....@@ -677,7 +670,8 @@
677670 "system_bus_cs1",
678671 "system_bus_cs2",
679672 "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"};
681675 static const char * const uart1_groups[] = {"uart1", "uart1b"};
682676 static const char * const uart2_groups[] = {"uart2"};
683677 static const char * const uart3_groups[] = {"uart3"};
....@@ -723,7 +717,7 @@
723717 }
724718 }
725719
726
-static struct uniphier_pinctrl_socdata uniphier_ld4_pindata = {
720
+static const struct uniphier_pinctrl_socdata uniphier_ld4_pindata = {
727721 .pins = uniphier_ld4_pins,
728722 .npins = ARRAY_SIZE(uniphier_ld4_pins),
729723 .groups = uniphier_ld4_groups,