forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/ifx6x60.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 /****************************************************************************
33 *
44 * Driver for the IFX spi modem.
....@@ -9,6 +9,8 @@
99 *****************************************************************************/
1010 #ifndef _IFX6X60_H
1111 #define _IFX6X60_H
12
+
13
+struct gpio_desc;
1214
1315 #define DRVNAME "ifx6x60"
1416 #define TTYNAME "ttyIFX"
....@@ -94,11 +96,12 @@
9496
9597 struct {
9698 /* gpio lines */
97
- unsigned short srdy; /* slave-ready gpio */
98
- unsigned short mrdy; /* master-ready gpio */
99
- unsigned short reset; /* modem-reset gpio */
100
- unsigned short po; /* modem-on gpio */
101
- unsigned short reset_out; /* modem-in-reset gpio */
99
+ struct gpio_desc *srdy; /* slave-ready gpio */
100
+ struct gpio_desc *mrdy; /* master-ready gpio */
101
+ struct gpio_desc *reset; /* modem-reset gpio */
102
+ struct gpio_desc *po; /* modem-on gpio */
103
+ struct gpio_desc *reset_out; /* modem-in-reset gpio */
104
+ struct gpio_desc *pmu_reset; /* PMU reset gpio */
102105 /* state/stats */
103106 int unack_srdy_int_nb;
104107 } gpio;