forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
....@@ -1,17 +1,7 @@
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>
155
166 #include <linux/kernel.h>
177 #include <linux/init.h>
....@@ -536,8 +526,10 @@
536526 static const int uart2_muxvals[] = {1, 1};
537527 static const unsigned uart3_pins[] = {94, 95};
538528 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};
541533 static const unsigned usb0_pins[] = {46, 47};
542534 static const int usb0_muxvals[] = {0, 0};
543535 static const unsigned usb1_pins[] = {48, 49};
....@@ -610,6 +602,7 @@
610602 UNIPHIER_PINCTRL_GROUP(uart2),
611603 UNIPHIER_PINCTRL_GROUP(uart3),
612604 UNIPHIER_PINCTRL_GROUP(uart3_ctsrts),
605
+ UNIPHIER_PINCTRL_GROUP(uart3_modem),
613606 UNIPHIER_PINCTRL_GROUP(usb0),
614607 UNIPHIER_PINCTRL_GROUP(usb1),
615608 UNIPHIER_PINCTRL_GROUP(usb2),
....@@ -646,7 +639,8 @@
646639 static const char * const uart0_groups[] = {"uart0"};
647640 static const char * const uart1_groups[] = {"uart1"};
648641 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"};
650644 static const char * const usb0_groups[] = {"usb0"};
651645 static const char * const usb1_groups[] = {"usb1"};
652646 static const char * const usb2_groups[] = {"usb2"};
....@@ -690,7 +684,7 @@
690684 return 15;
691685 }
692686
693
-static struct uniphier_pinctrl_socdata uniphier_ld11_pindata = {
687
+static const struct uniphier_pinctrl_socdata uniphier_ld11_pindata = {
694688 .pins = uniphier_ld11_pins,
695689 .npins = ARRAY_SIZE(uniphier_ld11_pins),
696690 .groups = uniphier_ld11_groups,