summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinda Chen <minda.chen@starfivetech.com>2023-06-25 04:40:29 +0300
committerMinda Chen <minda.chen@starfivetech.com>2023-06-25 04:51:51 +0300
commit3708a9b57a9e31b010e4d8fe6ffc1d05400aeaa6 (patch)
treeac4d78ed410b88b21a4fce1769fee08c93b4e6bd /include
parent89832c4c4c1392cf290192cc91ad1149a86c27a5 (diff)
downloadlinux-3708a9b57a9e31b010e4d8fe6ffc1d05400aeaa6.tar.xz
uart: 8250: Add dw auto flow ctrl support
Add designeware 8250 auto flow ctrl support. Enable it by add auto-flow-control in dts. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/serial_8250.h1
-rw-r--r--include/uapi/linux/serial_core.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h
index 19376bee9667..c6a48cdfd87a 100644
--- a/include/linux/serial_8250.h
+++ b/include/linux/serial_8250.h
@@ -113,6 +113,7 @@ struct uart_8250_port {
unsigned char probe;
struct mctrl_gpios *gpios;
#define UART_PROBE_RSA (1 << 0)
+#define UART_PROBE_AFE (1 << 1)
/*
* Some bits in registers are cleared on a read, so they must
diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h
index 3ba34d8378bd..a7eb1a8f540d 100644
--- a/include/uapi/linux/serial_core.h
+++ b/include/uapi/linux/serial_core.h
@@ -276,4 +276,6 @@
/* Sunplus UART */
#define PORT_SUNPLUS 123
+#define PORT_16550A_AFE 124
+
#endif /* _UAPILINUX_SERIAL_CORE_H */