From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: patches@linaro.org
Subject: [Qemu-devel] [PATCH 0/5] mps2: Implement FPGAIO counters and dual-timer
Date: Mon, 30 Jul 2018 17:24:53 +0100 [thread overview]
Message-ID: <20180730162458.23186-1-peter.maydell@linaro.org> (raw)
This patchset adds some missing timer and counter devices
to the MPS2 boards:
* the MPS2 "fpgaio" register bank includes some registers
which provide various kinds of free-running counter
* the boards have an instance fo the CMSDK "dual timer module"
Together these are sufficient for QEMU's mps2-an505
emulation to pass the "timer test" subsection of the
self-test program which can be found (behind a clickthrough
EULA) in the Cortex-M33_IoT_kit_2_0.zip at:
https://developer.arm.com/products/system-design/development-boards/fpga-prototyping-boards/download-fpga-images
The dual-timer patch ended up a bit big; I can try to split
that up if people would prefer that for review.
thanks
-- PMM
Peter Maydell (5):
hw/misc/mps2-fpgaio: Implement 1Hz and 100Hz counters
hw/misc/mps2-fpgaio: Implement PSCNTR and COUNTER
hw/timer/cmsdk-apb-dualtimer: Implement CMSDK dual timer module
hw/arm/iotkit: Wire up the dualtimer
hw/arm/mps2: Wire up dual-timer in mps2-an385 and mps2-an511
hw/timer/Makefile.objs | 1 +
include/hw/arm/iotkit.h | 3 +-
include/hw/misc/mps2-fpgaio.h | 10 +
include/hw/timer/cmsdk-apb-dualtimer.h | 72 ++++
hw/arm/iotkit.c | 8 +-
hw/arm/mps2.c | 11 +
hw/misc/mps2-fpgaio.c | 146 ++++++-
hw/timer/cmsdk-apb-dualtimer.c | 515 +++++++++++++++++++++++++
MAINTAINERS | 2 +
default-configs/arm-softmmu.mak | 1 +
hw/timer/trace-events | 5 +
11 files changed, 767 insertions(+), 7 deletions(-)
create mode 100644 include/hw/timer/cmsdk-apb-dualtimer.h
create mode 100644 hw/timer/cmsdk-apb-dualtimer.c
--
2.17.1
next reply other threads:[~2018-07-30 16:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-30 16:24 Peter Maydell [this message]
2018-07-30 16:24 ` [Qemu-devel] [PATCH 1/5] hw/misc/mps2-fpgaio: Implement 1Hz and 100Hz counters Peter Maydell
2018-07-30 16:24 ` [Qemu-devel] [PATCH 2/5] hw/misc/mps2-fpgaio: Implement PSCNTR and COUNTER Peter Maydell
2018-07-30 22:09 ` Alistair Francis
2018-07-30 16:24 ` [Qemu-devel] [PATCH 3/5] hw/timer/cmsdk-apb-dualtimer: Implement CMSDK dual timer module Peter Maydell
2018-07-30 16:24 ` [Qemu-devel] [PATCH 4/5] hw/arm/iotkit: Wire up the dualtimer Peter Maydell
2018-07-30 16:24 ` [Qemu-devel] [PATCH 5/5] hw/arm/mps2: Wire up dual-timer in mps2-an385 and mps2-an511 Peter Maydell
2018-07-30 21:00 ` [Qemu-devel] [PATCH 0/5] mps2: Implement FPGAIO counters and dual-timer no-reply
2018-07-31 5:26 ` no-reply
2018-08-16 12:20 ` Peter Maydell
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=20180730162458.23186-1-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=patches@linaro.org \
--cc=qemu-arm@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).