Received: from eggs.gnu.org ([208.118.235.92]:45479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQIru-0000xA-2z for qemu-devel@nongnu.org; Mon, 22 Oct 2012 10:20:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQIrs-0003mx-OH for qemu-devel@nongnu.org; Mon, 22 Oct 2012 10:20:37 -0400 Received: from mailserver6.natinst.com ([130.164.80.6]:36894 helo=spamkiller06.natinst.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQIrs-0003mc-Ha for qemu-devel@nongnu.org; Mon, 22 Oct 2012 10:20:36 -0400 Date: Mon, 22 Oct 2012 09:20:40 -0500 From: Josh Cartwright Message-ID: <20121022142040.GA15461@beefymiracle.amer.corp.natinst.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] cadence_uart: enable tx/rx on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: qemu-devel@nongnu.org Change the cadence_uart such that tx/rx is enabled on reset. Assuming both are enabled makes debugging early Linux kernel bootup a little bit easier. Signed-off-by: Josh Cartwright --- I've used this patch mostly for my own testing, but it may be of general use. On a real system, I would expect the bootloader to leave the uart in an enabled state, but I'm not using a bootloader for my testing :). hw/cadence_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/cadence_uart.c b/hw/cadence_uart.c index f8afc4e..2fb21a6 100644 --- a/hw/cadence_uart.c +++ b/hw/cadence_uart.c @@ -421,7 +421,7 @@ static const MemoryRegionOps uart_ops = { static void cadence_uart_reset(UartState *s) { - s->r[R_CR] = 0x00000128; + s->r[R_CR] = UART_CR_RX_EN | UART_CR_TX_EN | UART_CR_STOPBRK; s->r[R_IMR] = 0; s->r[R_CISR] = 0; s->r[R_RTRIG] = 0x00000020; -- 1.7.12.4