mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2006-06-02 Jay Monkman <jtm@lopingdog.com>
* mc9328mxl/include/mc9328mxl.h: Added UART register definitions.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
2006-06-02 Jay Monkman
|
||||
2006-06-02 Jay Monkman <jtm@lopingdog.com>
|
||||
|
||||
* mc9328mxl/include/mc9328mxl.h: Added UART register definitions.
|
||||
|
||||
2006-06-02 Jay Monkman <jtm@lopingdog.com>
|
||||
|
||||
* shared/arm920/mmu.c: Fixed bug in mmu_get_ctrl(),
|
||||
added mmu_set_cpu_async() function.
|
||||
|
||||
2006-06-02 Jay Monkman
|
||||
2006-06-02 Jay Monkman <jtm@lopingdog.com>
|
||||
|
||||
* at91rm9200/irq/bsp_irq_init.c, mc9328mxl/clock/clockdrv.c,
|
||||
mc9328mxl/irq/bsp_irq_asm.S, mc9328mxl/irq/bsp_irq_init.c,
|
||||
|
||||
@@ -131,6 +131,33 @@
|
||||
#define MC9328MXL_UART2_MPR4 (*((volatile uint32_t *)((MC9328MXL_UART2_BASE) + 0xcc)))
|
||||
#define MC9328MXL_UART2_TS (*((volatile uint32_t *)((MC9328MXL_UART2_BASE) + 0xd0)))
|
||||
|
||||
typedef struct {
|
||||
volatile uint32_t rxd;
|
||||
volatile uint32_t _res0[15];
|
||||
volatile uint32_t txd;
|
||||
volatile uint32_t _res1[15];
|
||||
volatile uint32_t cr1;
|
||||
volatile uint32_t cr2;
|
||||
volatile uint32_t cr3;
|
||||
volatile uint32_t cr4;
|
||||
volatile uint32_t fcr;
|
||||
volatile uint32_t sr1;
|
||||
volatile uint32_t sr2;
|
||||
volatile uint32_t esc;
|
||||
volatile uint32_t tim;
|
||||
volatile uint32_t bir;
|
||||
volatile uint32_t bmr;
|
||||
volatile uint32_t brc;
|
||||
volatile uint32_t ipr1;
|
||||
volatile uint32_t ipr2;
|
||||
volatile uint32_t ipr3;
|
||||
volatile uint32_t ipr4;
|
||||
volatile uint32_t mpr1;
|
||||
volatile uint32_t mpr2;
|
||||
volatile uint32_t mpr3;
|
||||
volatile uint32_t mpr4;
|
||||
volatile uint32_t ts;
|
||||
} mc9328mxl_uart_regs_t;
|
||||
|
||||
#define MC9328MXL_UART_RXD_CHARRDY (bit(15))
|
||||
#define MC9328MXL_UART_RXD_ERR (bit(14))
|
||||
@@ -205,6 +232,17 @@
|
||||
#define MC9328MXL_UART_CR4_OREN (bit(1))
|
||||
#define MC9328MXL_UART_CR4_DREN (bit(0))
|
||||
|
||||
#define MC9328MXL_UART_FCR_TXTL(x) (((x) & 0x3f) << 10)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_1 (5 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_2 (4 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_3 (3 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_4 (2 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_5 (1 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_6 (0 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_7 (6 << 7)
|
||||
#define MC9328MXL_UART_FCR_RFDIV_MASK (7 << 7)
|
||||
#define MC9328MXL_UART_FCR_RXTL(x) (((x) & 0x3f) << 0)
|
||||
|
||||
#define MC9328MXL_UART_SR1_PARERR (bit(15))
|
||||
#define MC9328MXL_UART_SR1_RTSS (bit(14))
|
||||
#define MC9328MXL_UART_SR1_TRDY (bit(13))
|
||||
|
||||
Reference in New Issue
Block a user