1 /*******************************************************************************
\r
2 * (c) Copyright 2007-2017 Microsemi SoC Products Group. All rights reserved.
\r
4 * SVN $Revision: 9082 $
\r
5 * SVN $Date: 2017-04-28 11:51:36 +0530 (Fri, 28 Apr 2017) $
\r
8 #ifndef __CORE_UART_APB_REGISTERS
\r
9 #define __CORE_UART_APB_REGISTERS 1
\r
15 /*------------------------------------------------------------------------------
\r
16 * TxData register details
\r
18 #define TXDATA_REG_OFFSET 0x0u
\r
23 #define TXDATA_OFFSET 0x0u
\r
24 #define TXDATA_MASK 0xFFu
\r
25 #define TXDATA_SHIFT 0u
\r
27 /*------------------------------------------------------------------------------
\r
28 * RxData register details
\r
30 #define RXDATA_REG_OFFSET 0x4u
\r
35 #define RXDATA_OFFSET 0x4u
\r
36 #define RXDATA_MASK 0xFFu
\r
37 #define RXDATA_SHIFT 0u
\r
39 /*------------------------------------------------------------------------------
\r
40 * ControReg1 register details
\r
42 #define CTRL1_REG_OFFSET 0x8u
\r
45 * Baud value (Lower 8-bits)
\r
47 #define CTRL1_BAUDVALUE_OFFSET 0x8u
\r
48 #define CTRL1_BAUDVALUE_MASK 0xFFu
\r
49 #define CTRL1_BAUDVALUE_SHIFT 0u
\r
51 /*------------------------------------------------------------------------------
\r
52 * ControReg2 register details
\r
54 #define CTRL2_REG_OFFSET 0xCu
\r
59 #define CTRL2_BIT_LENGTH_OFFSET 0xCu
\r
60 #define CTRL2_BIT_LENGTH_MASK 0x01u
\r
61 #define CTRL2_BIT_LENGTH_SHIFT 0u
\r
66 #define CTRL2_PARITY_EN_OFFSET 0xCu
\r
67 #define CTRL2_PARITY_EN_MASK 0x02u
\r
68 #define CTRL2_PARITY_EN_SHIFT 1u
\r
71 * Odd/even parity selection.
\r
73 #define CTRL2_ODD_EVEN_OFFSET 0xCu
\r
74 #define CTRL2_ODD_EVEN_MASK 0x04u
\r
75 #define CTRL2_ODD_EVEN_SHIFT 2u
\r
78 * Baud value (Higher 5-bits)
\r
80 #define CTRL2_BAUDVALUE_OFFSET 0xCu
\r
81 #define CTRL2_BAUDVALUE_MASK 0xF8u
\r
82 #define CTRL2_BAUDVALUE_SHIFT 3u
\r
84 /*------------------------------------------------------------------------------
\r
85 * StatusReg register details
\r
87 #define StatusReg_REG_OFFSET 0x10u
\r
89 #define STATUS_REG_OFFSET 0x10u
\r
94 #define STATUS_TXRDY_OFFSET 0x10u
\r
95 #define STATUS_TXRDY_MASK 0x01u
\r
96 #define STATUS_TXRDY_SHIFT 0u
\r
101 #define STATUS_RXFULL_OFFSET 0x10u
\r
102 #define STATUS_RXFULL_MASK 0x02u
\r
103 #define STATUS_RXFULL_SHIFT 1u
\r
108 #define STATUS_PARITYERR_OFFSET 0x10u
\r
109 #define STATUS_PARITYERR_MASK 0x04u
\r
110 #define STATUS_PARITYERR_SHIFT 2u
\r
115 #define STATUS_OVERFLOW_OFFSET 0x10u
\r
116 #define STATUS_OVERFLOW_MASK 0x08u
\r
117 #define STATUS_OVERFLOW_SHIFT 3u
\r
122 #define STATUS_FRAMERR_OFFSET 0x10u
\r
123 #define STATUS_FRAMERR_MASK 0x10u
\r
124 #define STATUS_FRAMERR_SHIFT 4u
\r
130 #endif /* __CORE_UART_APB_REGISTERS */
\r