Ignore:
Timestamp:
Jun 3, 2006, 3:16:18 AM (14 years ago)
Author:
Jay Monkman <jtm@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9cdfb0e
Parents:
7afe5a2
Message:

2006-06-02 Jay Monkman <jtm@…>

  • mc9328mxl/include/mc9328mxl.h: Added UART register definitions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/mc9328mxl/include/mc9328mxl.h

    r7afe5a2 rbc19e2a  
    132132#define MC9328MXL_UART2_TS    (*((volatile uint32_t *)((MC9328MXL_UART2_BASE) + 0xd0)))
    133133
     134typedef struct {
     135    volatile uint32_t rxd;
     136    volatile uint32_t _res0[15];
     137    volatile uint32_t txd;
     138    volatile uint32_t _res1[15];
     139    volatile uint32_t cr1;
     140    volatile uint32_t cr2;
     141    volatile uint32_t cr3;
     142    volatile uint32_t cr4;
     143    volatile uint32_t fcr;
     144    volatile uint32_t sr1;
     145    volatile uint32_t sr2;
     146    volatile uint32_t esc;
     147    volatile uint32_t tim;
     148    volatile uint32_t bir;
     149    volatile uint32_t bmr;
     150    volatile uint32_t brc;
     151    volatile uint32_t ipr1;
     152    volatile uint32_t ipr2;
     153    volatile uint32_t ipr3;
     154    volatile uint32_t ipr4;
     155    volatile uint32_t mpr1;
     156    volatile uint32_t mpr2;
     157    volatile uint32_t mpr3;
     158    volatile uint32_t mpr4;
     159    volatile uint32_t ts;
     160} mc9328mxl_uart_regs_t;
    134161
    135162#define MC9328MXL_UART_RXD_CHARRDY    (bit(15))
     
    205232#define MC9328MXL_UART_CR4_OREN       (bit(1))
    206233#define MC9328MXL_UART_CR4_DREN       (bit(0))
     234
     235#define MC9328MXL_UART_FCR_TXTL(x)    (((x) & 0x3f) << 10)
     236#define MC9328MXL_UART_FCR_RFDIV_1    (5 << 7)
     237#define MC9328MXL_UART_FCR_RFDIV_2    (4 << 7)
     238#define MC9328MXL_UART_FCR_RFDIV_3    (3 << 7)
     239#define MC9328MXL_UART_FCR_RFDIV_4    (2 << 7)
     240#define MC9328MXL_UART_FCR_RFDIV_5    (1 << 7)
     241#define MC9328MXL_UART_FCR_RFDIV_6    (0 << 7)
     242#define MC9328MXL_UART_FCR_RFDIV_7    (6 << 7)
     243#define MC9328MXL_UART_FCR_RFDIV_MASK (7 << 7)
     244#define MC9328MXL_UART_FCR_RXTL(x)    (((x) & 0x3f) << 0)
    207245
    208246#define MC9328MXL_UART_SR1_PARERR     (bit(15))
Note: See TracChangeset for help on using the changeset viewer.