]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: add clock input&output support to devices.
authorDamien Hedde <damien.hedde@greensocs.com>
Mon, 6 Apr 2020 13:52:45 +0000 (15:52 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Apr 2020 14:35:40 +0000 (15:35 +0100)
commit0e6934f26484abef4a96946078a34746f8855801
tree0bdc3532609498a48f3c8c9168cde67a7245ea83
parentb8d38bd5256362355cbc115889213e4892e16ea9
qdev: add clock input&output support to devices.

Add functions to easily handle clocks with devices.
Clock inputs and outputs should be used to handle clock propagation
between devices.
The API is very similar the GPIO API.

This is based on the original work of Frederic Konrad.

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-4-damien.hedde@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/Makefile.objs
hw/core/qdev-clock.c [new file with mode: 0644]
hw/core/qdev.c
include/hw/qdev-clock.h [new file with mode: 0644]
include/hw/qdev-core.h
tests/Makefile.include