diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2021-02-15 11:51:20 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2021-03-06 13:30:38 +0000 |
| commit | b2234223fd511230e933bba2572928ca97028bb8 (patch) | |
| tree | 7ed4b414b4f68cb71917d3af35f7291bbc888b3e /include/hw/misc/mps2-fpgaio.h | |
| parent | e8556f435eee97d508b58c06c156990d537823ab (diff) | |
| download | focaccia-qemu-b2234223fd511230e933bba2572928ca97028bb8.tar.gz focaccia-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/hw/misc/mps2-fpgaio.h')
| -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; |