]> Git Repo - qemu.git/commitdiff
char: cadence: correct reset value for baud rate registers
authorPrasad J Pandit <[email protected]>
Fri, 28 Oct 2016 13:12:31 +0000 (14:12 +0100)
committerPeter Maydell <[email protected]>
Fri, 28 Oct 2016 14:51:27 +0000 (15:51 +0100)
The Cadence UART device emulator stores 'baud rate generator'
and 'baud rate divider' values, used in computing speed, in two
registers. The device specification defines their range and
their reset value. Use their correct value when resetting the
device in cadence_uart_reset.

Signed-off-by: Prasad J Pandit <[email protected]>
Message-id: 1477378140[email protected]
Reviewed-by: Edgar E. Iglesias <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/char/cadence_uart.c

index c2b9154305de252191cc96174cbd7e57dc96e5bd..def34cd0d2a1723848bc2bfd9388e22eb52c1e0b 100644 (file)
@@ -450,7 +450,8 @@ static void cadence_uart_reset(DeviceState *dev)
     s->r[R_IMR] = 0;
     s->r[R_CISR] = 0;
     s->r[R_RTRIG] = 0x00000020;
-    s->r[R_BRGR] = 0x0000000F;
+    s->r[R_BRGR] = 0x0000028B;
+    s->r[R_BDIV] = 0x0000000F;
     s->r[R_TTRIG] = 0x00000020;
 
     uart_rx_reset(s);
This page took 0.026701 seconds and 4 git commands to generate.