summaryrefslogtreecommitdiffstats
path: root/include/linux/atmel_serial.h
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2016-08-25 15:47:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-31 15:39:58 +0200
commit5bf5635ac1705b8d58fdef5ff0666ef0e72b4629 (patch)
tree3f1aebb7026dd29035806f3ca7e7bad93be8a52d /include/linux/atmel_serial.h
parent2426fbc77faef57c80a573303af6543531e2efa3 (diff)
downloadlinux-stable-5bf5635ac1705b8d58fdef5ff0666ef0e72b4629.tar.gz
linux-stable-5bf5635ac1705b8d58fdef5ff0666ef0e72b4629.tar.bz2
linux-stable-5bf5635ac1705b8d58fdef5ff0666ef0e72b4629.zip
tty/serial: atmel: add fractional baud rate support
The USART device provides a fractional baud rate generator to get a more accurate baud rate. It can be used only when the USART is configured in 'normal mode' and this feature is not available on AT91RM9200 SoC. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/atmel_serial.h')
-rw-r--r--include/linux/atmel_serial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/atmel_serial.h b/include/linux/atmel_serial.h
index 5a4d664af87a..f8e452aa48d7 100644
--- a/include/linux/atmel_serial.h
+++ b/include/linux/atmel_serial.h
@@ -118,6 +118,7 @@
#define ATMEL_US_BRGR 0x20 /* Baud Rate Generator Register */
#define ATMEL_US_CD GENMASK(15, 0) /* Clock Divider */
+#define ATMEL_US_FP_OFFSET 16 /* Fractional Part */
#define ATMEL_US_RTOR 0x24 /* Receiver Time-out Register for USART */
#define ATMEL_UA_RTOR 0x28 /* Receiver Time-out Register for UART */