From: fred.konrad@greensocs.com
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, edgar.iglesias@xilinx.com,
alistair.francis@xilinx.com, mark.burton@greensocs.com,
fred.konrad@greensocs.com
Subject: [Qemu-devel] [RFC PATCH 00/11] Clock framework API.
Date: Mon, 13 Jun 2016 18:27:28 +0200 [thread overview]
Message-ID: <1465835259-21449-1-git-send-email-fred.konrad@greensocs.com> (raw)
From: KONRAD Frederic <fred.konrad@greensocs.com>
Hi,
This is a first draft of the clock framework API it contains:
* The first 5 patches which introduce the framework.
* The 6th patch which introduces a fixed-clock model.
* The rest which gives an example how to model a PLL from the existing
zynqmp-crf extracted from the qemu xilinx tree.
No specific behavior is expected yet when the CRF register set is accessed but
the user can see for example the dp_video_ref and vpll_to_lpd rate changing in
the monitor with the "info qtree" command when the vpll_ctrl register is
modified.
bus: main-system-bus
type System
dev: xlnx.zynqmp_crf, id ""
gpio-out "sysbus-irq" 1
gpio-out "RST_A9" 4
qemu-clk "dbg_trace" 0.0
qemu-clk "vpll_to_lpd" 12500000.0
qemu-clk "dp_stc_ref" 0.0
qemu-clk "dpll_to_lpd" 12500000.0
qemu-clk "acpu_clk" 0.0
qemu-clk "pcie_ref" 0.0
qemu-clk "topsw_main" 0.0
qemu-clk "topsw_lsbus" 0.0
qemu-clk "dp_audio_ref" 0.0
qemu-clk "sata_ref" 0.0
qemu-clk "dp_video_ref" 1428571.4
qemu-clk "vpll_clk" 50000000.0
qemu-clk "apll_to_lpd" 12500000.0
qemu-clk "dpll_clk" 50000000.0
qemu-clk "gpu_ref" 0.0
qemu-clk "aux_refclk" 0.0
qemu-clk "video_clk" 27000000.0
qemu-clk "gdma_ref" 0.0
qemu-clk "gt_crx_ref_clk" 0.0
qemu-clk "dbg_fdp" 0.0
qemu-clk "apll_clk" 50000000.0
qemu-clk "pss_alt_ref_clk" 0.0
qemu-clk "ddr" 0.0
qemu-clk "pss_ref_clk" 50000000.0
qemu-clk "dpdma_ref" 0.0
qemu-clk "dbg_tstmp" 0.0
mmio 00000000fd1a0000/000000000000010c
This series is based on the current master
(d6550e9ed2e1a60d889dfb721de00d9a4e3bafbe) with the data-driven register
patch-set from Alistair.
Note that the omap clock infrastructure is really far from what we need so I
think it's worse implement the clock framework and then rework the omaps
platforms to use it.
TODO:
* reshape the omap clock tree to use this one.
Any comment on that?
Thanks,
Fred
KONRAD Frederic (11):
qemu-clk: introduce qemu-clk qom object
qemu-clk: allow to attach a clock to a device
qemu-clk: allow to bound two clocks together
qdev-monitor: print the device's clock with info qtree
docs: add qemu-clock documentation
introduce fixed-clock
introduce zynqmp_crf
zynqmp_crf: fix against AF_EX32 changes
zynqmp_crf: add the clock mechanism
zynqmp: add the zynqmp_crf to the platform
zynqmp: add reference clock
Makefile.objs | 1 +
docs/clock.txt | 112 +++++
hw/arm/xlnx-zynqmp.c | 49 +++
hw/misc/Makefile.objs | 3 +
hw/misc/fixed-clock.c | 87 ++++
hw/misc/xilinx_zynqmp_crf.c | 972 ++++++++++++++++++++++++++++++++++++++++++
include/hw/arm/xlnx-zynqmp.h | 7 +
include/hw/misc/fixed-clock.h | 30 ++
include/qemu/qemu-clock.h | 136 ++++++
qdev-monitor.c | 2 +
qemu-clock.c | 153 +++++++
11 files changed, 1552 insertions(+)
create mode 100644 docs/clock.txt
create mode 100644 hw/misc/fixed-clock.c
create mode 100644 hw/misc/xilinx_zynqmp_crf.c
create mode 100644 include/hw/misc/fixed-clock.h
create mode 100644 include/qemu/qemu-clock.h
create mode 100644 qemu-clock.c
--
2.5.5
next reply other threads:[~2016-06-13 16:27 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 16:27 fred.konrad [this message]
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 01/11] qemu-clk: introduce qemu-clk qom object fred.konrad
2016-06-29 0:15 ` Alistair Francis
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 02/11] qemu-clk: allow to attach a clock to a device fred.konrad
2016-06-29 0:15 ` Alistair Francis
2016-08-02 7:47 ` KONRAD Frederic
2016-08-04 0:26 ` Alistair Francis
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 03/11] qemu-clk: allow to bound two clocks together fred.konrad
2016-06-29 0:30 ` Alistair Francis
2016-07-29 13:39 ` Peter Maydell
2016-08-02 12:29 ` KONRAD Frederic
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 04/11] qdev-monitor: print the device's clock with info qtree fred.konrad
2016-06-29 0:33 ` Alistair Francis
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 05/11] docs: add qemu-clock documentation fred.konrad
2016-06-29 0:38 ` Alistair Francis
2016-08-02 9:29 ` KONRAD Frederic
2016-08-04 0:28 ` Alistair Francis
2016-07-29 13:47 ` Peter Maydell
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 06/11] introduce fixed-clock fred.konrad
2016-07-01 23:07 ` Alistair Francis
2016-08-02 11:56 ` KONRAD Frederic
2016-08-04 0:29 ` Alistair Francis
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 07/11] introduce zynqmp_crf fred.konrad
2016-06-29 0:41 ` Alistair Francis
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 08/11] zynqmp_crf: fix against AF_EX32 changes fred.konrad
2016-07-29 13:48 ` Peter Maydell
2016-08-02 12:34 ` KONRAD Frederic
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 09/11] zynqmp_crf: add the clock mechanism fred.konrad
2016-07-01 23:23 ` Alistair Francis
2016-08-02 12:26 ` KONRAD Frederic
2016-07-29 13:51 ` Peter Maydell
2016-08-03 7:38 ` KONRAD Frederic
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 10/11] zynqmp: add the zynqmp_crf to the platform fred.konrad
2016-07-01 23:11 ` Alistair Francis
2016-08-02 12:36 ` KONRAD Frederic
2016-06-13 16:27 ` [Qemu-devel] [RFC PATCH 11/11] zynqmp: add reference clock fred.konrad
2016-07-29 13:59 ` [Qemu-devel] [RFC PATCH 00/11] Clock framework API Peter Maydell
2016-08-02 6:28 ` KONRAD Frederic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1465835259-21449-1-git-send-email-fred.konrad@greensocs.com \
--to=fred.konrad@greensocs.com \
--cc=alistair.francis@xilinx.com \
--cc=edgar.iglesias@xilinx.com \
--cc=mark.burton@greensocs.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.