hw/misc/mps2-fpgaio: Support SWITCH register
commitb2234223fd511230e933bba2572928ca97028bb8
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Feb 2021 11:51:20 +0000 (15 11:51 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 6 Mar 2021 13:30:38 +0000 (6 13:30 +0000)
tree7ed4b414b4f68cb71917d3af35f7291bbc888b3e
parente8556f435eee97d508b58c06c156990d537823ab
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
hw/misc/mps2-fpgaio.c
include/hw/misc/mps2-fpgaio.h