diff options
| author | Peter Maydell | 2021-02-15 12:51:20 +0100 |
|---|---|---|
| committer | Peter Maydell | 2021-03-06 14:30:38 +0100 |
| commit | b2234223fd511230e933bba2572928ca97028bb8 (patch) | |
| tree | 7ed4b414b4f68cb71917d3af35f7291bbc888b3e /include | |
| parent | hw/misc/mps2-fpgaio: Make number of LEDs configurable by board (diff) | |
| download | qemu-b2234223fd511230e933bba2572928ca97028bb8.tar.gz qemu-b2234223fd511230e933bba2572928ca97028bb8.tar.xz qemu-b2234223fd511230e933bba2572928ca97028bb8.zip | |
hw/misc/mps2-fpgaio: Support SWITCH register
MPS3 boards have an extra SWITCH register in the FPGAIO block which
reports the value of some switches. Implement this, governed by a
property the board code can use to specify whether whether it exists.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210215115138.20465-7-peter.maydell@linaro.org
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/misc/mps2-fpgaio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/mps2-fpgaio.h b/include/hw/misc/mps2-fpgaio.h index bfe73134e7..0d3c8eef56 100644 --- a/include/hw/misc/mps2-fpgaio.h +++ b/include/hw/misc/mps2-fpgaio.h @@ -38,6 +38,7 @@ struct MPS2FPGAIO { MemoryRegion iomem; LEDState *led[MPS2FPGAIO_MAX_LEDS]; uint32_t num_leds; + bool has_switches; uint32_t led0; uint32_t prescale; |
