OSDN Git Service

hw/char/cadence_uart: add clock support
authorDamien Hedde <damien.hedde@greensocs.com>
Mon, 6 Apr 2020 13:52:49 +0000 (15:52 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Apr 2020 14:35:41 +0000 (15:35 +0100)
commitb636db306e06ee1c267d6e15e3b5bc109252617f
tree14208dc493429ed2095af75b5c6a8d6a7631ce30
parent38867cb7ec90253289cab22c13282a3ef6530f69
hw/char/cadence_uart: add clock support

Switch the cadence uart to multi-phase reset and add the
reference clock input.

The input clock frequency is added to the migration structure.

The reference clock controls the baudrate generation. If it disabled,
any input characters and events are ignored.

If this clock remains unconnected, the uart behaves as before
(it default to a 50MHz ref clock).

Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200406135251.157596-8-damien.hedde@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/cadence_uart.c
hw/char/trace-events
include/hw/char/cadence_uart.h