hw/misc/zynq_slcr: add clock generation for uarts
commit38867cb7ec90253289cab22c13282a3ef6530f69
authorDamien Hedde <damien.hedde@greensocs.com>
Mon, 6 Apr 2020 13:52:48 +0000 (6 15:52 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Apr 2020 14:35:41 +0000 (30 15:35 +0100)
treef0a5967577182bbbbd91916f38f3e6ef07ffb68b
parent31e5784a0d822269dc2674495f9f17e3ee0fb68f
hw/misc/zynq_slcr: add clock generation for uarts

Add some clocks to zynq_slcr
+ the main input clock (ps_clk)
+ the reference clock outputs for each uart (uart0 & 1)

This commit also transitional the slcr to multi-phase reset as it is
required to initialize the clocks correctly.

The clock frequencies are computed using the internal pll & uart configuration
registers and the input ps_clk frequency.

Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200406135251.157596-7-damien.hedde@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/zynq_slcr.c