[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] grlib_apbuart: always enable tx and rx
From: |
KONRAD Frederic |
Subject: |
[Qemu-trivial] [PATCH] grlib_apbuart: always enable tx and rx |
Date: |
Thu, 1 Mar 2018 11:02:16 +0100 |
We often use a bootloader for this board. So lets set the uart in a state
which it can emit characters as if we were using a bootloader.
Signed-off-by: KONRAD Frederic <address@hidden>
---
hw/char/grlib_apbuart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/char/grlib_apbuart.c b/hw/char/grlib_apbuart.c
index bac11be..a8020ea 100644
--- a/hw/char/grlib_apbuart.c
+++ b/hw/char/grlib_apbuart.c
@@ -265,8 +265,8 @@ static void grlib_apbuart_reset(DeviceState *d)
/* Transmitter FIFO and shift registers are always empty in QEMU */
uart->status = UART_TRANSMIT_FIFO_EMPTY | UART_TRANSMIT_SHIFT_EMPTY;
- /* Everything is off */
- uart->control = 0;
+ /* Enable Tx and Rx as the bootloader would do */
+ uart->control = UART_RECEIVE_ENABLE | UART_TRANSMIT_ENABLE;
/* Flush receive FIFO */
uart->len = 0;
uart->current = 0;
--
1.8.3.1
- [Qemu-trivial] [PATCH] grlib_apbuart: always enable tx and rx,
KONRAD Frederic <=