summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Khoruzhick2011-02-20 20:23:59 +0100
committerAurelien Jarno2011-02-20 20:28:45 +0100
commit9dda2465472d2252c7172549606f246ec6823592 (patch)
treed8d2816b0c4cfa86e1cb6d58c1bd2b62fc5fd9f6
parentpxa2xx_keypad: Handle 0xe0xx keycodes (diff)
downloadqemu-9dda2465472d2252c7172549606f246ec6823592.tar.gz
qemu-9dda2465472d2252c7172549606f246ec6823592.tar.xz
qemu-9dda2465472d2252c7172549606f246ec6823592.zip
Fix obvious mistake in pxa2xx i2s driver
RST bit is (1 << 4) bit, not (1 << 3), fix condition that enables i2s if ENB is set and RST is not set. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--hw/pxa2xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c
index 9ebbce60d7..dc595f332a 100644
--- a/hw/pxa2xx.c
+++ b/hw/pxa2xx.c
@@ -1661,7 +1661,7 @@ static void pxa2xx_i2s_write(void *opaque, target_phys_addr_t addr,
}
if (value & (1 << 4)) /* EFWR */
printf("%s: Attempt to use special function\n", __FUNCTION__);
- s->enable = ((value ^ 4) & 5) == 5; /* ENB && !RST*/
+ s->enable = (value & 9) == 1; /* ENB && !RST*/
pxa2xx_i2s_update(s);
break;
case SACR1: