forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/ralink/rt305x.c
....@@ -1,7 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify it
3
- * under the terms of the GNU General Public License version 2 as published
4
- * by the Free Software Foundation.
53 *
64 * Parts of this file are based on Ralink's 2.6.21 BSP
75 *
....@@ -49,6 +47,10 @@
4947 static struct rt2880_pmx_func rt3352_lna_func[] = { FUNC("lna", 0, 36, 2) };
5048 static struct rt2880_pmx_func rt3352_pa_func[] = { FUNC("pa", 0, 38, 2) };
5149 static struct rt2880_pmx_func rt3352_led_func[] = { FUNC("led", 0, 40, 5) };
50
+static struct rt2880_pmx_func rt3352_cs1_func[] = {
51
+ FUNC("spi_cs1", 0, 45, 1),
52
+ FUNC("wdg_cs1", 1, 45, 1),
53
+};
5254
5355 static struct rt2880_pmx_group rt3050_pinmux_data[] = {
5456 GRP("i2c", i2c_func, 1, RT305X_GPIO_MODE_I2C),
....@@ -75,6 +77,7 @@
7577 GRP("lna", rt3352_lna_func, 1, RT3352_GPIO_MODE_LNA),
7678 GRP("pa", rt3352_pa_func, 1, RT3352_GPIO_MODE_PA),
7779 GRP("led", rt3352_led_func, 1, RT5350_GPIO_MODE_PHY_LED),
80
+ GRP("spi_cs1", rt3352_cs1_func, 2, RT5350_GPIO_MODE_SPI_CS1),
7881 { 0 }
7982 };
8083