diff options
author | Gedare Bloom <gedare@rtems.org> | 2011-11-27 17:26:25 +0000 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2011-11-27 17:26:25 +0000 |
commit | 6fa94b75f065ec47d384b46bfcdaf0e08e1ccc6a (patch) | |
tree | 4fe7c0e983029c6f5f90d5cae8e728846957eacb /c/src/lib/libbsp/lm32/milkymist/include/system_conf.h | |
parent | 2011-11-26 Gedare Bloom <gedare@rtems.org> (diff) | |
download | rtems-6fa94b75f065ec47d384b46bfcdaf0e08e1ccc6a.tar.bz2 |
2011-11-27 Sebastien Bourdeauducq <seb@tmplab.org>
PR 1966/bsps
* include/system_conf.h: support for the new UART core and interrupt
map
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/lm32/milkymist/include/system_conf.h | 57 |
1 files changed, 37 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h b/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h index 6588e8f5eb..104578443a 100644 --- a/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h +++ b/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h @@ -26,6 +26,16 @@ /* UART */ #define MM_UART_RXTX (0xe0000000) #define MM_UART_DIV (0xe0000004) +#define MM_UART_STAT (0xe0000008) +#define MM_UART_CTRL (0xe000000c) + +#define UART_STAT_THRE (0x1) +#define UART_STAT_RX_EVT (0x2) +#define UART_STAT_TX_EVT (0x4) + +#define UART_CTRL_RX_INT (0x1) +#define UART_CTRL_TX_INT (0x2) +#define UART_CTRL_THRU (0x4) /* Timers */ #define MM_TIMER1_COMPARE (0xe0001024) @@ -225,8 +235,17 @@ /* MIDI */ #define MM_MIDI_RXTX (0xe000b000) -#define MM_MIDI_DIVISOR (0xe000b004) -#define MM_MIDI_THRU (0xe000b008) +#define MM_MIDI_DIV (0xe000b004) +#define MM_MIDI_STAT (0xe000b008) +#define MM_MIDI_CTRL (0xe000b00c) + +#define MIDI_STAT_THRE (0x1) +#define MIDI_STAT_RX_EVT (0x2) +#define MIDI_STAT_TX_EVT (0x4) + +#define MIDI_CTRL_RX_INT (0x1) +#define MIDI_CTRL_TX_INT (0x2) +#define MIDI_CTRL_THRU (0x4) /* IR */ #define MM_IR_RX (0xe000e000) @@ -248,24 +267,22 @@ #define BT656_FILTER_INFRAME (0x4) /* Interrupts */ -#define MM_IRQ_UARTRX (0) -#define MM_IRQ_UARTTX (1) -#define MM_IRQ_GPIO (2) -#define MM_IRQ_TIMER0 (3) -#define MM_IRQ_TIMER1 (4) -#define MM_IRQ_AC97CRREQUEST (5) -#define MM_IRQ_AC97CRREPLY (6) -#define MM_IRQ_AC97DMAR (7) -#define MM_IRQ_AC97DMAW (8) -#define MM_IRQ_PFPU (9) -#define MM_IRQ_TMU (10) -#define MM_IRQ_ETHRX (11) -#define MM_IRQ_ETHTX (12) -#define MM_IRQ_VIDEOIN (13) -#define MM_IRQ_MIDIRX (14) -#define MM_IRQ_MIDITX (15) -#define MM_IRQ_IR (16) -#define MM_IRQ_USB (17) +#define MM_IRQ_UART (0) +#define MM_IRQ_GPIO (1) +#define MM_IRQ_TIMER0 (2) +#define MM_IRQ_TIMER1 (3) +#define MM_IRQ_AC97CRREQUEST (4) +#define MM_IRQ_AC97CRREPLY (5) +#define MM_IRQ_AC97DMAR (6) +#define MM_IRQ_AC97DMAW (7) +#define MM_IRQ_PFPU (8) +#define MM_IRQ_TMU (9) +#define MM_IRQ_ETHRX (10) +#define MM_IRQ_ETHTX (11) +#define MM_IRQ_VIDEOIN (12) +#define MM_IRQ_MIDI (13) +#define MM_IRQ_IR (14) +#define MM_IRQ_USB (15) /* Flash layout */ #define FLASH_BASE (0x80000000) |