All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V1 00/10] Clock framework API.
@ 2016-10-05 22:10 fred.konrad
  2016-10-05 22:10 ` [Qemu-devel] [PATCH V1 01/10] qemu-clk: introduce qemu-clk qom object fred.konrad
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: fred.konrad @ 2016-10-05 22:10 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.maydell, edgar.iglesias, alistair.francis, mark.burton,
	fred.konrad

From: KONRAD Frederic <fred.konrad@greensocs.com>

Hi,

This is the first version of the clock framework API it contains:

  * The first 6 patches which introduce the framework.
  * The 7th 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
    qemu-clk "dbg_trace" 0
    qemu-clk "dp_stc_ref" 0
    qemu-clk "dpll_to_lpd" 12500000
    qemu-clk "acpu_clk" 0
    qemu-clk "pcie_ref" 0
    qemu-clk "topsw_main" 0
    qemu-clk "topsw_lsbus" 0
    qemu-clk "dp_audio_ref" 0
    qemu-clk "sata_ref" 0
    qemu-clk "dp_video_ref" 1428571
    qemu-clk "vpll_clk" 50000000
    qemu-clk "apll_to_lpd" 12500000
    qemu-clk "dpll_clk" 50000000
    qemu-clk "gpu_ref" 0
    qemu-clk "aux_refclk" 0
    qemu-clk "video_clk" 27000000
    qemu-clk "gdma_ref" 0
    qemu-clk "gt_crx_ref_clk" 0
    qemu-clk "dbg_fdp" 0
    qemu-clk "apll_clk" 50000000
    qemu-clk "pss_alt_ref_clk" 0
    qemu-clk "ddr" 0
    qemu-clk "dbg_tstmp" 0
    qemu-clk "pss_ref_clk" 50000000
    qemu-clk "dpdma_ref" 0
    qemu-clk "vpll_to_lpd" 12500000
    mmio 00000000fd1a0000/000000000000010c
    
This series is based on the current master
(bbc4c3f4f3c624e2de64fdcb79f4dd8c1a508e9d).

Thanks,
Fred

RFC -> V1:
  * Rebased on current master.
  * The docs has been fixed.
  * qemu_clk_init_device helper has been provided to ease the initialization
    of the devices.

KONRAD Frederic (10):
  qemu-clk: introduce qemu-clk qom object
  qemu-clk: allow to attach a clock to a device
  qemu-clk: allow to bind two clocks together
  qemu-clk: introduce an init array to help the device construction
  qdev-monitor: print the device's clock with info qtree
  docs: add qemu-clock documentation
  introduce fixed-clock
  introduce zynqmp_crf
  zynqmp: add the zynqmp_crf to the platform
  zynqmp: add reference clock

 Makefile.objs                 |   1 +
 docs/clock.txt                | 109 +++++
 hw/arm/xlnx-zynqmp.c          |  49 +++
 hw/misc/Makefile.objs         |   2 +
 hw/misc/fixed-clock.c         |  88 ++++
 hw/misc/xilinx_zynqmp_crf.c   | 968 ++++++++++++++++++++++++++++++++++++++++++
 include/hw/arm/xlnx-zynqmp.h  |   8 +
 include/hw/misc/fixed-clock.h |  30 ++
 include/qemu/qemu-clock.h     | 160 +++++++
 qdev-monitor.c                |   2 +
 qemu-clock.c                  | 174 ++++++++
 11 files changed, 1591 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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-10-18  7:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 22:10 [Qemu-devel] [PATCH V1 00/10] Clock framework API fred.konrad
2016-10-05 22:10 ` [Qemu-devel] [PATCH V1 01/10] qemu-clk: introduce qemu-clk qom object fred.konrad
2016-10-05 22:10 ` [Qemu-devel] [PATCH V1 02/10] qemu-clk: allow to attach a clock to a device fred.konrad
2016-10-17 18:13   ` Peter Maydell
2016-10-18  7:20     ` KONRAD Frederic
2016-10-05 22:10 ` [Qemu-devel] [PATCH V1 03/10] qemu-clk: allow to bind two clocks together fred.konrad
2016-10-17 18:19   ` Peter Maydell
2016-10-17 20:17     ` KONRAD Frederic
2016-10-05 22:10 ` [Qemu-devel] [PATCH V1 04/10] qemu-clk: introduce an init array to help the device construction fred.konrad
2016-10-05 22:10 ` [Qemu-devel] [PATCH V1 05/10] qdev-monitor: print the device's clock with info qtree fred.konrad
2016-10-05 22:11 ` [Qemu-devel] [PATCH V1 06/10] docs: add qemu-clock documentation fred.konrad
2016-10-17 18:31   ` Peter Maydell
2016-10-18  7:03     ` KONRAD Frederic
2016-10-05 22:11 ` [Qemu-devel] [PATCH V1 07/10] introduce fixed-clock fred.konrad
2016-10-05 22:11 ` [Qemu-devel] [PATCH V1 08/10] introduce zynqmp_crf fred.konrad
2016-10-05 22:11 ` [Qemu-devel] [PATCH V1 09/10] zynqmp: add the zynqmp_crf to the platform fred.konrad
2016-10-05 22:11 ` [Qemu-devel] [PATCH V1 10/10] zynqmp: add reference clock fred.konrad

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.