.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0+ |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
---|
2 | 2 | /* |
---|
3 | 3 | * include/linux/atmel_serial.h |
---|
4 | 4 | * |
---|
.. | .. |
---|
78 | 78 | #define ATMEL_US_OVER BIT(19) /* Oversampling Mode */ |
---|
79 | 79 | #define ATMEL_US_INACK BIT(20) /* Inhibit Non Acknowledge */ |
---|
80 | 80 | #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) |
---|
82 | 83 | #define ATMEL_US_FILTER BIT(28) /* Infrared Receive Line Filter */ |
---|
83 | 84 | |
---|
84 | 85 | #define ATMEL_US_IER 0x08 /* Interrupt Enable Register */ |
---|