forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/atmel_serial.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /*
33 * include/linux/atmel_serial.h
44 *
....@@ -78,7 +78,8 @@
7878 #define ATMEL_US_OVER BIT(19) /* Oversampling Mode */
7979 #define ATMEL_US_INACK BIT(20) /* Inhibit Non Acknowledge */
8080 #define ATMEL_US_DSNACK BIT(21) /* Disable Successive NACK */
81
-#define ATMEL_US_MAX_ITER GENMASK(26, 24) /* Max Iterations */
81
+#define ATMEL_US_MAX_ITER_MASK GENMASK(26, 24) /* Max Iterations */
82
+#define ATMEL_US_MAX_ITER(n) (((n) << 24) & ATMEL_US_MAX_ITER_MASK)
8283 #define ATMEL_US_FILTER BIT(28) /* Infrared Receive Line Filter */
8384
8485 #define ATMEL_US_IER 0x08 /* Interrupt Enable Register */