mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
This commit is contained in:
parent
e8556f435e
commit
b2234223fd
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue