From 28fe96b798c2b0a7abd07b2631f6d4abeaf9d4dd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 14 May 2011 15:59:09 +0000 Subject: 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 --- sim/bfin/ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'sim/bfin/ChangeLog') 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 + + * 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 * dv-bfin_uart2.c (bfin_uart_io_read_buffer): Clear DR/THRE/TEMT bits -- cgit v1.1