On 2/5/21 6:00 PM, Peter Maydell wrote: > 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.mayd...@linaro.org> > --- > include/hw/misc/mps2-fpgaio.h | 5 ++++- > hw/misc/mps2-fpgaio.c | 31 +++++++++++++++++++++++-------- > 2 files changed, 27 insertions(+), 9 deletions(-)
All LEDs are green so we are good for now. Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>