aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial_reg.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@nokia.com>2010-11-30 17:11:49 -0500
committerTony Lindgren <tony@atomide.com>2010-11-30 17:11:49 -0500
commit498cb95175c29ed96bf32f30df2d11ec1c7f3879 (patch)
treef46ffac45790929c8e7f1bf2838f537bc9e31e48 /include/linux/serial_reg.h
parente8a7e48bb248a1196484d3f8afa53bded2b24e71 (diff)
OMAP: Serial: Define OMAP uart MDR1 reg and remove magic numbers
Define MDR1 register serial definitions used in serial and bluetooth drivers. Change magic number to ones defined in serial_reg for omap1/2 serial driver. Remove redefined MDR1 register definitions in omap-serial driver. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com> Acked-by: G, Manjunath Kondaiah <manjugk@ti.com> Acked-by: Govindraj.R <govindraj.raja@ti.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/serial_reg.h')
-rw-r--r--include/linux/serial_reg.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/serial_reg.h b/include/linux/serial_reg.h
index c7a0ce11cd47..6f3823474e6c 100644
--- a/include/linux/serial_reg.h
+++ b/include/linux/serial_reg.h
@@ -341,5 +341,17 @@
341#define UART_OMAP_SYSS 0x16 /* System status register */ 341#define UART_OMAP_SYSS 0x16 /* System status register */
342#define UART_OMAP_WER 0x17 /* Wake-up enable register */ 342#define UART_OMAP_WER 0x17 /* Wake-up enable register */
343 343
344/*
345 * These are the definitions for the MDR1 register
346 */
347#define UART_OMAP_MDR1_16X_MODE 0x00 /* UART 16x mode */
348#define UART_OMAP_MDR1_SIR_MODE 0x01 /* SIR mode */
349#define UART_OMAP_MDR1_16X_ABAUD_MODE 0x02 /* UART 16x auto-baud */
350#define UART_OMAP_MDR1_13X_MODE 0x03 /* UART 13x mode */
351#define UART_OMAP_MDR1_MIR_MODE 0x04 /* MIR mode */
352#define UART_OMAP_MDR1_FIR_MODE 0x05 /* FIR mode */
353#define UART_OMAP_MDR1_CIR_MODE 0x06 /* CIR mode */
354#define UART_OMAP_MDR1_DISABLE 0x07 /* Disable (default state) */
355
344#endif /* _LINUX_SERIAL_REG_H */ 356#endif /* _LINUX_SERIAL_REG_H */
345 357