hw/misc/mps2-fpgaio: Make number of LEDs configurable by board
commite8556f435eee97d508b58c06c156990d537823ab
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Feb 2021 11:51:19 +0000 (15 11:51 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 6 Mar 2021 13:30:38 +0000 (6 13:30 +0000)
treecc136f29cedb83c9181aac191e0939f73155a1ed
parentf7c71b21f27b9cbac2c30eda11a93eb7f8722161
hw/misc/mps2-fpgaio: Make number of LEDs configurable by board

The MPS2 board has 2 LEDs, but the MPS3 board has 10 LEDs.  The
FPGAIO device is similar on both sets of boards, but the LED0
register has correspondingly more bits that have an effect.  Add a
device property for number of LEDs.

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-6-peter.maydell@linaro.org
hw/misc/mps2-fpgaio.c
include/hw/misc/mps2-fpgaio.h