OSDN Git Service

malta: Fix display for LED array
authorStefan Weil <sw@weilnetz.de>
Sat, 28 Jan 2012 05:18:19 +0000 (05:18 +0000)
committerStefan Weil <sw@weilnetz.de>
Thu, 15 Mar 2012 19:55:45 +0000 (20:55 +0100)
The 8-LED array was already implemented in the first commit to Malta,
but this implementation was incomplete.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
hw/mips_malta.c

index d8c8c35..4752bb2 100644 (file)
@@ -338,9 +338,9 @@ static void malta_fpga_write(void *opaque, target_phys_addr_t addr,
         break;
 
     /* LEDBAR Register */
-    /* XXX: implement a 8-LED array */
     case 0x00408:
         s->leds = val & 0xff;
+        malta_fpga_update_display(s);
         break;
 
     /* ASCIIWORD Register */