diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-14 15:59:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-05-14 15:59:09 +0000 |
commit | 28fe96b798c2b0a7abd07b2631f6d4abeaf9d4dd (patch) | |
tree | b36e50567ba4c3b69bd47cea4479e37b2d394d35 /sim/bfin/ChangeLog | |
parent | ba4a8bdd81e55d45b97cdf9b91eb111a7ac0d3f9 (diff) | |
download | gdb-28fe96b798c2b0a7abd07b2631f6d4abeaf9d4dd.zip gdb-28fe96b798c2b0a7abd07b2631f6d4abeaf9d4dd.tar.gz gdb-28fe96b798c2b0a7abd07b2631f6d4abeaf9d4dd.tar.bz2 |
sim: bfin: implement loop back support in the UARTs
The UART has a LOOP_ENA bit in its MCR register where writes to the THR
go to the RBR. Implement support for this mode.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/bfin/ChangeLog')
-rw-r--r-- | sim/bfin/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 6785044..a69d6e2 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,3 +1,18 @@ +2011-05-14 Mike Frysinger <vapier@gentoo.org> + + * dv-bfin_uart.c (bfin_uart_write_byte): Add a mcr arg. Declare a + local uart. When LOOP_ENA is set in mcr, write to the saved byte + and count fields of the uart. + (bfin_uart_io_write_buffer): Pass uart->mcr to bfin_uart_write_byte + and bfin_uart_get_next_byte. + (bfin_uart_get_next_byte): Add a mcr arg. Move uart->saved_count + check first, and skip the remaining code when LOOP_ENA is set in mcr. + * dv-bfin_uart.h (bfin_uart_write_byte): Add an mcr argument. + (bfin_uart_get_next_byte): Likewise. + (XOFF, MRTS, RFIT, RFRT, LOOP_ENA, FCPOL, ARTS, ACTS): Define. + * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Padd uart->mcr when + calling bfin_uart_write_byte and bfin_uart_get_next_byte. + 2011-05-09 Mike Frysinger <vapier@gentoo.org> * dv-bfin_uart2.c (bfin_uart_io_read_buffer): Clear DR/THRE/TEMT bits |