Skip to content

hw/arm: New board model mps3-an524

Peter Maydell qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest24 patches 31 repliesIn review
  2. v124 patches 25 repliesSuperseded

Changes in v2 from the cover letter

* renamed have-switches to has_switches
* added missing initializations of num_leds and has_switches for new board model
Patches still needing review: 10 - 18, 20

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24hw/arm/mps2-tz: Make SYSCLK frequency board-specifichw/arm/mps2-tz.c+6 -41 reply
2/24hw/misc/mps2-scc: Support configurable number of OSCCLK valueshw/arm/mps2-tz.c hw/arm/mps2.c hw/misc/mps2-scc.c +1 more+26 -153 replies
3/24hw/arm/mps2-tz: Correct the OSCCLK settings for mps2-an505 and mps2-an511hw/arm/mps2-tz.c+2 -21 reply
4/24hw/arm/mps2-tz: Make the OSCCLK settings be configurable per-boardhw/arm/mps2-tz.c+18 -51 reply
5/24hw/misc/mps2-fpgaio: Make number of LEDs configurable by boardhw/misc/mps2-fpgaio.c include/hw/misc/mps2-fpgaio.h+27 -91 reply
6/24hw/misc/mps2-fpgaio: Support SWITCH registerhw/misc/mps2-fpgaio.c include/hw/misc/mps2-fpgaio.h+11 -01 reply
7/24hw/arm/mps2-tz: Make FPGAIO switch and LED config per-boardhw/arm/mps2-tz.c+9 -01 reply
8/24hw/arm/mps2-tz: Condition IRQ splitting on number of CPUs, not board typehw/arm/mps2-tz.c+9 -102 replies
9/24hw/arm/mps2-tz: Make number of IRQs board-specifichw/arm/mps2-tz.c+10 -51 reply
10/24hw/misc/mps2-scc: Implement CFG_REG5 and CFG_REG6 for MPS3 AN524hw/misc/mps2-scc.c include/hw/misc/mps2-scc.h+72 -21 reply
11/24hw/arm/mps2-tz: Correct wrong interrupt numbers for DMA and SPIhw/arm/mps2-tz.c+17 -71 reply
12/24hw/arm/mps2-tz: Allow PPCPortInfo structures to specify device interruptshw/arm/mps2-tz.c+24 -121 reply
13/24hw/arm/mps2-tz: Move device IRQ info to data structureshw/arm/mps2-tz.c+25 -271 reply
14/24hw/arm/mps2-tz: Size the uart-irq-orgate based on the number of UARTshw/arm/mps2-tz.c+8 -32 replies
15/24hw/arm/mps2-tz: Allow boards to have different PPCInfo datahw/arm/mps2-tz.c+14 -21 reply
16/24hw/arm/mps2-tz: Make RAM arrangement board-specifichw/arm/mps2-tz.c+138 -371 reply
17/24hw/arm/mps2-tz: Set MachineClass default_ram info from RAMInfo datahw/arm/mps2-tz.c+22 -21 reply
18/24hw/arm/mps2-tz: Support ROMs as well as RAMshw/arm/mps2-tz.c+6 -02 replies
19/24hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfohw/arm/mps2-tz.c+16 -11 reply
20/24hw/arm/mps2-tz: Add new mps3-an524 boardhw/arm/mps2-tz.c+135 -41 reply
21/24hw/arm/mps2-tz: Stub out USB controller for mps3-an524hw/arm/mps2-tz.c+47 -11 reply
22/24hw/arm/mps2-tz: Provide PL031 RTC on mps3-an524hw/arm/mps2-tz.c+20 -21 reply
23/24docs/system/arm/mps2.rst: Document the new mps3-an524 boarddocs/system/arm/mps2.rst+18 -61 reply
24/24hw/arm/mps2: Update old infocenter.arm.com URLshw/arm/mps2-tz.c hw/misc/armsse-cpuid.c hw/misc/armsse-mhu.c +11 more+19 -202 replies

Reviews trailers per patch

All 24 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéRichard Henderson
SeriesT-b
1/24R-b R-b
2/24R-b R-b R-b
3/24R-b R-b
4/24R-b R-b
5/24R-b R-b
6/24R-b R-b
7/24R-b R-b
8/24R-b R-b R-b
9/24R-b R-b
10/24R-b
11/24R-b
12/24R-b
13/24R-b
14/24R-b R-b
15/24R-b
16/24R-b
17/24R-b
18/24R-b R-b
19/24R-b R-b
20/24R-b
21/24R-b R-b
22/24R-b R-b
23/24R-b R-b
24/24R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/24] hw/arm: New board model mps3-an524

This patchseries implements a new board model in the mps2/mps3 family, based on Application Note AN524:
https://developer.arm.com/documentation/dai0524/latest/

v1->v2 changes (very minor):
* renamed have-switches to has_switches
* added missing initializations of num_leds and has_switches for new board model
Patches still needing review: 10 - 18, 20

Like the other MPS models, this board is an FPGA image; the AN524 image is based on the SSE-200, like the mps2-an521, but it is for the MPS3 board rather than the MPS2+. The major differences are QSPI flash and USB (which we don't model), and support for 2GB of RAM (which we do). Since the MPS3 is very similar to the MPS2, I've implemented mps3-an524 as a subclass of TYPE_MPS2TZ_MACHINE, sharing most of the code with mps2-an505 and mps2-an521.

The motivation for this model is two-fold:
* Linaro's Zephyr team would like it, so they can test their code targeting the MPS3 on QEMU
* It's a useful stepping-stone towards a future MPS family model which uses the SSE-300 and Cortex-M55. All the "make various bits of mps2-tz.c be driven by per-board data structures rather than hardcoding them" changes will be needed for that future board model. This way they can be code-reviewed now, rather than making the future patchseries even bigger (it will be pretty large even so, because of all the "implement SSE-300 model" patches).

thanks
-- PMM

Peter Maydell (24):
hw/arm/mps2-tz: Make SYSCLK frequency board-specific hw/misc/mps2-scc: Support configurable number of OSCCLK values hw/arm/mps2-tz: Correct the OSCCLK settings for mps2-an505 and

    mps2-an511

hw/arm/mps2-tz: Make the OSCCLK settings be configurable per-board hw/misc/mps2-fpgaio: Make number of LEDs configurable by board hw/misc/mps2-fpgaio: Support SWITCH register hw/arm/mps2-tz: Make FPGAIO switch and LED config per-board hw/arm/mps2-tz: Condition IRQ splitting on number of CPUs, not board
type
hw/arm/mps2-tz: Make number of IRQs board-specific hw/misc/mps2-scc: Implement CFG_REG5 and CFG_REG6 for MPS3 AN524 hw/arm/mps2-tz: Correct wrong interrupt numbers for DMA and SPI hw/arm/mps2-tz: Allow PPCPortInfo structures to specify device
interrupts
hw/arm/mps2-tz: Move device IRQ info to data structures hw/arm/mps2-tz: Size the uart-irq-orgate based on the number of UARTs hw/arm/mps2-tz: Allow boards to have different PPCInfo data hw/arm/mps2-tz: Make RAM arrangement board-specific hw/arm/mps2-tz: Set MachineClass default_ram info from RAMInfo data hw/arm/mps2-tz: Support ROMs as well as RAMs hw/arm/mps2-tz: Get armv7m_load_kernel() size argument from RAMInfo hw/arm/mps2-tz: Add new mps3-an524 board
hw/arm/mps2-tz: Stub out USB controller for mps3-an524 hw/arm/mps2-tz: Provide PL031 RTC on mps3-an524 docs/system/arm/mps2.rst: Document the new mps3-an524 board hw/arm/mps2: Update old infocenter.arm.com URLs

 docs/system/arm/mps2.rst         |  24 +-
 include/hw/arm/armsse.h          |   4 +-
 include/hw/misc/armsse-cpuid.h   |   2 +-
 include/hw/misc/armsse-mhu.h     |   2 +-
 include/hw/misc/iotkit-secctl.h  |   2 +-
 include/hw/misc/iotkit-sysctl.h  |   2 +-
 include/hw/misc/iotkit-sysinfo.h |   2 +-
 include/hw/misc/mps2-fpgaio.h    |   8 +-
 include/hw/misc/mps2-scc.h       |  10 +-
 hw/arm/mps2-tz.c                 | 632 +++++++++++++++++++++++++------
 hw/arm/mps2.c                    |   5 +
 hw/misc/armsse-cpuid.c           |   2 +-
 hw/misc/armsse-mhu.c             |   2 +-
 hw/misc/iotkit-sysctl.c          |   2 +-
 hw/misc/iotkit-sysinfo.c         |   2 +-
 hw/misc/mps2-fpgaio.c            |  43 ++-
 hw/misc/mps2-scc.c               |  93 ++++-
 17 files changed, 680 insertions(+), 157 deletions(-)
Signature · 1 line
2.20.1