diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-12-21 11:42:50 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2010-12-21 11:42:50 +0100 |
commit | bb8e7336e4248b21517ed18a75b4d0343a3a0d53 (patch) | |
tree | 3f0c841ee1298a846f2d2a05202a219f6c6ef4b2 /uart.h | |
parent | 5da40cbf6daae35ad4948476bac7827f81ee7904 (diff) |
Diffstat (limited to 'uart.h')
-rw-r--r-- | uart.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -11,13 +11,22 @@ #ifndef _UART_H_ #define _UART_H_ -#define UART_BASE 0x80681000 +#define UART_BASE 0x84842020 #define UART_SIZE 32 +#define UART_REG_COUNT (UART_SIZE / sizeof(uint32_t)) #define UART_RXDATA_REG 0 #define UART_TXDATA_REG 1 #define UART_STATUS_REG 2 #define UART_CONTROL_REG 3 +#define UART_DIVISOR_REG 4 +#define UART_EOP_REG 5 + +#define UART_STATUS_TRDY_MASK 0x40 +#define UART_STATUS_RRDY_MASK 0x80 + +#define UART_CONTROL_TRDY_MASK 0x40 +#define UART_CONTROL_RRDY_MASK 0x80 extern struct device uart_core; |