1 /*******************************************************************************
\r
2 * (c) Copyright 2011-2013 Microsemi SoC Products Group. All rights reserved.
\r
4 * Register bit offsets and masks defintions for SmartFusion2 MSS MMUART.
\r
6 * SVN $Revision: 5610 $
\r
7 * SVN $Date: 2013-04-05 14:19:30 +0100 (Fri, 05 Apr 2013) $
\r
9 #ifndef MSS_UART_REGS_H_
\r
10 #define MSS_UART_REGS_H_
\r
16 /*******************************************************************************
\r
17 Register Bit definitions
\r
20 /* Line Control register bit definitions */
\r
21 #define SB 6u /* Set break */
\r
22 #define DLAB 7u /* Divisor latch access bit */
\r
24 /* FIFO Control register bit definitions */
\r
25 #define RXRDY_TXRDYN_EN 0u /* Enable TXRDY and RXRDY signals */
\r
26 #define CLEAR_RX_FIFO 1u /* Clear receiver FIFO */
\r
27 #define CLEAR_TX_FIFO 2u /* Clear transimtter FIFO */
\r
28 #define RDYMODE 3u /* Mode 0 or Mode 1 for TXRDY and RXRDY */
\r
30 /* Modem Control register bit definitions */
\r
31 #define LOOP 4u /* Local loopback */
\r
32 #define RLOOP 5u /* Remote loopback */
\r
33 #define ECHO 6u /* Automatic echo */
\r
34 #define RLOOP_MASK 0x6u /* Remote loopback & Automatic echo*/
\r
36 /* Line Status register bit definitions */
\r
37 #define DR 0u /* Data ready */
\r
38 #define THRE 5u /* Transmitter holding register empty */
\r
39 #define TEMT 6u /* Transitter empty */
\r
41 /* Interrupt Enable register bit definitions */
\r
42 #define ERBFI 0u /* Enable receiver buffer full interrupt */
\r
43 #define ETBEI 1u /* Enable transmitter buffer empty interrupt */
\r
44 #define ELSI 2u /* Enable line status interrupt */
\r
45 #define EDSSI 3u /* Enable modem status interrupt */
\r
47 /* Multimode register 0 bit definitions */
\r
48 #define ELIN 3u /* Enable LIN header detection */
\r
49 #define ETTG 5u /* Enable transmitter time guard */
\r
50 #define ERTO 6u /* Enable receiver time-out */
\r
51 #define EFBR 7u /* Enable fractional baud rate mode */
\r
53 /* Multimode register 1 bit definitions */
\r
54 #define E_MSB_RX 0u /* MSB / LSB first for receiver */
\r
55 #define E_MSB_TX 1u /* MSB / LSB first for transmitter */
\r
56 #define EIRD 2u /* Enable IrDA modem */
\r
57 #define EIRX 3u /* Input polarity for IrDA modem */
\r
58 #define EITX 4u /* Output polarity for IrDA modem */
\r
59 #define EITP 5u /* Output pulse width for IrDA modem */
\r
61 /* Multimode register 2 bit definitions */
\r
62 #define EERR 0u /* Enable ERR / NACK during stop time */
\r
63 #define EAFM 1u /* Enable 9-bit address flag mode */
\r
64 #define EAFC 2u /* Enable address flag clear */
\r
65 #define ESWM 3u /* Enable single wire half-duplex mode */
\r
67 /* Multimode Interrupt Enable register and
\r
68 Multimode Interrupt Identification register definitions */
\r
69 #define ERTOI 0u /* Enable receiver timeout interrupt */
\r
70 #define ENACKI 1u /* Enable NACK / ERR interrupt */
\r
71 #define EPID_PEI 2u /* Enable PID parity error interrupt */
\r
72 #define ELINBI 3u /* Enable LIN break interrupt */
\r
73 #define ELINSI 4u /* Enable LIN sync detection interrupt */
\r
80 #endif /* MSS_UART_REGS_H_ */
\r